]> code.delx.au - gnu-emacs/commitdiff
* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)
authorTino Calancha <f92capac@gmail.com>
Wed, 8 Jun 2016 00:35:24 +0000 (20:35 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 8 Jun 2016 00:35:24 +0000 (20:35 -0400)
lisp/ibuffer.el

index dd2687c4d8cf1cb8a5ccdbdbe5c6284c6d458d45..609524ccd205941ec5e37f423f23bd63a3d1d2b8 100644 (file)
@@ -2341,7 +2341,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