[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 cf3c19b 1/3: * lisp/ibuffer.el (ibuffer): Improve
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] emacs-25 cf3c19b 1/3: * lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617) |
Date: |
Mon, 17 Oct 2016 06:39:13 +0000 (UTC) |
branch: emacs-25
commit cf3c19b0298236293d9c56d5ba425af4f42c1f8e
Author: Tino Calancha <address@hidden>
Commit: Glenn Morris <address@hidden>
* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)
(cherry picked from commit f4ef1a1fea15aa58fbb5e7a59bff260720658e49)
---
lisp/ibuffer.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 9d23e64..1295ed7 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -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