diff options
author | Tino Calancha <f92capac@gmail.com> | 2016-06-07 20:35:24 -0400 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2016-06-07 20:35:24 -0400 |
commit | f4ef1a1fea15aa58fbb5e7a59bff260720658e49 (patch) | |
tree | 1d530d742bd42450f3d7532f5adf425c28c75cc4 /lisp/ibuffer.el | |
parent | e686f4760ca8e4fe3fb414cfeac0948e0f99a4ec (diff) | |
download | emacs-f4ef1a1fea15aa58fbb5e7a59bff260720658e49.tar.gz |
* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)
Diffstat (limited to 'lisp/ibuffer.el')
-rw-r--r-- | lisp/ibuffer.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index dd2687c4d8c..609524ccd20 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 (save-selected-window |