[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master f4ef1a1: * lisp/ibuffer.el (ibuffer): Improve 'othe

From: Glenn Morris
Subject: [Emacs-diffs] master f4ef1a1: * lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)
Date: Wed, 8 Jun 2016 00:35:34 +0000 (UTC)

branch: master
commit f4ef1a1fea15aa58fbb5e7a59bff260720658e49
Author: Tino Calancha <address@hidden>
Commit: Glenn Morris <address@hidden>

    * lisp/ibuffer.el (ibuffer): Improve 'other-window' case.  (Bug#23617)
 lisp/ibuffer.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index dd2687c..609524c 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]