Revert "* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)"
authorEli Zaretskii <eliz@gnu.org>
Sun, 23 Oct 2016 13:02:11 +0000 (16:02 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 23 Oct 2016 13:02:11 +0000 (16:02 +0300)
This reverts commit cf3c19b0298236293d9c56d5ba425af4f42c1f8e.
Do not merge to master!

lisp/ibuffer.el

index 1295ed7a82d46cc5a418d333dc6e975b6fb30d28..9d23e64cd81484be7e8fc8377ea9a5fa78211f1a 100644 (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