1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-19 04:10:18 -08:00

Revert "* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)"

This reverts commit cf3c19b029.
Do not merge to master!
This commit is contained in:
Eli Zaretskii 2016-10-23 16:02:11 +03:00
parent 50fa7d64d3
commit 1dd7b54a7e

View file

@ -2336,8 +2336,7 @@ 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
(or (and noselect (display-buffer buf t))
(pop-to-buffer buf t))
(funcall (if noselect (lambda (buf) (display-buffer buf t)) #'pop-to-buffer) buf)
(funcall (if noselect #'display-buffer #'switch-to-buffer) buf))
(with-current-buffer buf
(save-selected-window