From 1d7a51d2e3a1c3d5caa77587b3e612feda8bdd59 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Tue, 7 May 2019 13:46:22 +0100 Subject: [PATCH] Fix gnus-summary-expand-window placement of point * lisp/gnus/gnus-win.el (gnus-configure-frame): Replace switch-to-buffer with pop-to-buffer-same-window to avoid messing with point. (bug#35613) --- lisp/gnus/gnus-win.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/gnus/gnus-win.el b/lisp/gnus/gnus-win.el index 5f7154c545..c6469f4937 100644 --- a/lisp/gnus/gnus-win.el +++ b/lisp/gnus/gnus-win.el @@ -284,7 +284,7 @@ gnus-configure-frame ;; from a hard-dedicated frame, it creates (and ;; configures) a new frame, leaving the dedicated frame alone. (pop-to-buffer buf)) - (t (switch-to-buffer buf))))) + (t (pop-to-buffer-same-window buf))))) (when (memq 'frame-focus split) (setq gnus-window-frame-focus window)) ;; We return the window if it has the `point' spec. -- 2.20.1