diff options
| author | Tino Calancha | 2016-06-07 20:35:24 -0400 |
|---|---|---|
| committer | Glenn Morris | 2016-06-07 20:35:24 -0400 |
| commit | f4ef1a1fea15aa58fbb5e7a59bff260720658e49 (patch) | |
| tree | 1d530d742bd42450f3d7532f5adf425c28c75cc4 | |
| parent | e686f4760ca8e4fe3fb414cfeac0948e0f99a4ec (diff) | |
| download | emacs-f4ef1a1fea15aa58fbb5e7a59bff260720658e49.tar.gz emacs-f4ef1a1fea15aa58fbb5e7a59bff260720658e49.zip | |
* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)
| -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'. | |||
| 2341 | (setq other-window-p t)) | 2341 | (setq other-window-p t)) |
| 2342 | (let ((buf (get-buffer-create (or name "*Ibuffer*")))) | 2342 | (let ((buf (get-buffer-create (or name "*Ibuffer*")))) |
| 2343 | (if other-window-p | 2343 | (if other-window-p |
| 2344 | (funcall (if noselect (lambda (buf) (display-buffer buf t)) #'pop-to-buffer) buf) | 2344 | (or (and noselect (display-buffer buf t)) |
| 2345 | (pop-to-buffer buf t)) | ||
| 2345 | (funcall (if noselect #'display-buffer #'switch-to-buffer) buf)) | 2346 | (funcall (if noselect #'display-buffer #'switch-to-buffer) buf)) |
| 2346 | (with-current-buffer buf | 2347 | (with-current-buffer buf |
| 2347 | (save-selected-window | 2348 | (save-selected-window |