aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-17 19:21:42 +0200
committerLars Ingebrigtsen2018-04-17 19:21:42 +0200
commit1d5d23a9f69db81927ac802deb2ef7c5573bc6e9 (patch)
treebc2016db89cc2e1f78aed173a0c9635ee5e7dc12
parent950d6cc74426f8d88c1c3985efb336a3a02b3b0e (diff)
downloademacs-1d5d23a9f69db81927ac802deb2ef7c5573bc6e9.tar.gz
emacs-1d5d23a9f69db81927ac802deb2ef7c5573bc6e9.zip
Place point consistently in the Gnus group buffer on exit
* lisp/gnus/gnus-sum.el (gnus-summary-exit): Place point correctly when exiting with `q' (and the like) from the article buffer when only the article buffer is displayed (bug#31195). This is apparently yet another fall-out from the "preserve-visible-point- in-windows" patches of yesteryear...
-rw-r--r--lisp/gnus/gnus-sum.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index b68dfdf6b79..234d527cd10 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -7286,12 +7286,13 @@ If FORCE (the prefix), also save the .newsrc file(s)."
7286 (if quit-config 7286 (if quit-config
7287 (gnus-handle-ephemeral-exit quit-config) 7287 (gnus-handle-ephemeral-exit quit-config)
7288 (goto-char group-point) 7288 (goto-char group-point)
7289 (unless leave-hidden
7290 (gnus-configure-windows 'group 'force))
7289 ;; If gnus-group-buffer is already displayed, make sure we also move 7291 ;; If gnus-group-buffer is already displayed, make sure we also move
7290 ;; the cursor in the window that displays it. 7292 ;; the cursor in the window that displays it.
7291 (let ((win (get-buffer-window (current-buffer) 0))) 7293 (let ((win (get-buffer-window (current-buffer) 0)))
7292 (if win (set-window-point win (point)))) 7294 (goto-char group-point)
7293 (unless leave-hidden 7295 (if win (set-window-point win (point)))))
7294 (gnus-configure-windows 'group 'force)))
7295 7296
7296 ;; If we have several article buffers, we kill them at exit. 7297 ;; If we have several article buffers, we kill them at exit.
7297 (unless single-article-buffer 7298 (unless single-article-buffer