emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 9408e36: Fix gnus-summary-expand-window placement o


From: Basil L. Contovounesios
Subject: [Emacs-diffs] master 9408e36: Fix gnus-summary-expand-window placement of point
Date: Thu, 16 May 2019 19:58:03 -0400 (EDT)

branch: master
commit 9408e36b84b8e81dd9f4d1465c4f20f125d4bd06
Author: Basil L. Contovounesios <address@hidden>
Commit: Basil L. Contovounesios <address@hidden>

    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 a992fe7..40c5b42 100644
--- a/lisp/gnus/gnus-win.el
+++ b/lisp/gnus/gnus-win.el
@@ -285,7 +285,7 @@ See the Gnus manual for an explanation of the syntax used.")
                 ;; 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]