diff options
author | Miha Rihtaršič <miha@kamnitnik.top> | 2021-05-18 17:08:58 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-05-18 17:08:58 +0200 |
commit | 304a3b9ee8fdde52d7379fc5ac5be71a54fdfeb0 (patch) | |
tree | fefe131edb9a89a9d21aa1edd40a0fe8a02d7998 /lisp/ibuffer.el | |
parent | ab20f385a7bae0c2938e50545c1045378a3e0575 (diff) | |
download | emacs-304a3b9ee8fdde52d7379fc5ac5be71a54fdfeb0.tar.gz emacs-304a3b9ee8fdde52d7379fc5ac5be71a54fdfeb0.tar.bz2 emacs-304a3b9ee8fdde52d7379fc5ac5be71a54fdfeb0.zip |
Fix problem with focusing in `C-o' in ibuffer in some circumstances
* lisp/ibuffer.el (ibuffer-visit-buffer-other-window-noselect):
Use display-buffer instead of pop-to-buffer and selecting the old
window. `pop-to-buffer' focuses the new frame, but
`select-window' usually fails to focus the original frame. This
simple patch fixes that (bug#48218).
Diffstat (limited to 'lisp/ibuffer.el')
-rw-r--r-- | lisp/ibuffer.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index b484dd717ca..c80222ed0f4 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el @@ -988,9 +988,7 @@ one window." (let ((buf (ibuffer-current-buffer t))) (bury-buffer (current-buffer)) (if noselect - (let ((curwin (selected-window))) - (pop-to-buffer buf) - (select-window curwin)) + (display-buffer buf) (switch-to-buffer-other-window buf)))) (defun ibuffer-visit-buffer-other-window-noselect () |