]> git.eshelyaron.com Git - emacs.git/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>
Mon, 17 Oct 2016 06:35:28 +0000 (23:35 -0700)
(cherry picked from commit f4ef1a1fea15aa58fbb5e7a59bff260720658e49)

lisp/ibuffer.el

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