mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)
(cherry picked from commit f4ef1a1fea
)
This commit is contained in:
parent
99892eeec8
commit
cf3c19b029
@ -2336,7 +2336,8 @@ FORMATS is the value to use for `ibuffer-formats'.
|
||||
(setq other-window-p t))
|
||||
(let ((buf (get-buffer-create (or name "*Ibuffer*"))))
|
||||
(if other-window-p
|
||||
(funcall (if noselect (lambda (buf) (display-buffer buf t)) #'pop-to-buffer) buf)
|
||||
(or (and noselect (display-buffer buf t))
|
||||
(pop-to-buffer buf t))
|
||||
(funcall (if noselect #'display-buffer #'switch-to-buffer) buf))
|
||||
(with-current-buffer buf
|
||||
(save-selected-window
|
||||
|
Loading…
Reference in New Issue
Block a user