From b1848c6026ca5b1d6d33918f557f3e019c523e7a Mon Sep 17 00:00:00 2001 From: yamaoka Date: Tue, 18 Jan 2000 05:39:16 +0000 Subject: [PATCH] (gnus-summary-exit): Recenter the group buffer if the point is out of view. --- lisp/gnus-sum.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index 01ad746..adfbaba 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -5440,7 +5440,9 @@ If FORCE (the prefix), also save the .newsrc file(s)." (if (not quit-config) (progn (goto-char group-point) - (gnus-configure-windows 'group 'force)) + (gnus-configure-windows 'group 'force) + (unless (pos-visible-in-window-p) + (recenter))) (gnus-handle-ephemeral-exit quit-config)) ;; Clear the current group name. (unless quit-config -- 1.7.10.4