From: Pankaj Jangid Date: Wed, 16 Dec 2020 22:34:20 +0000 (+0100) Subject: Fix resetting of gnus-pick-line-number X-Git-Tag: emacs-28.0.90~4682 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c51d9140be18697fbff60233d68b18f2f682a3b9;p=emacs.git Fix resetting of gnus-pick-line-number * lisp/gnus/gnus-sum.el (gnus-summary-read-group-1): Move setting gnus-pick-line-number from here (bug#45269)... (gnus-summary-prepare): To here. This ensures that the number is reset when regenerating the buffer, for instance when limiting it. --- diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 9488b324878..16152e252a0 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -4100,8 +4100,6 @@ If SELECT-ARTICLES, only select those articles from GROUP." ;; The group was successfully selected. (t (gnus-set-global-variables) - (when (boundp 'gnus-pick-line-number) - (setq gnus-pick-line-number 0)) (when (boundp 'spam-install-hooks) (spam-initialize)) ;; Save the active value in effect when the group was entered. @@ -4226,6 +4224,8 @@ If SELECT-ARTICLES, only select those articles from GROUP." gnus-newsgroup-data-reverse nil) (gnus-run-hooks 'gnus-summary-generate-hook) ;; Generate the buffer, either with threads or without. + (when (boundp 'gnus-pick-line-number) + (setq gnus-pick-line-number 0)) (when gnus-newsgroup-headers (gnus-summary-prepare-threads (if gnus-show-threads