summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-sum.el
diff options
context:
space:
mode:
authorPankaj Jangid <pankaj@codeisgreat.org>2020-12-16 23:34:20 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-12-16 23:34:20 +0100
commitc51d9140be18697fbff60233d68b18f2f682a3b9 (patch)
tree4976792d34c4d150fa0b64ab27bf126ab605be54 /lisp/gnus/gnus-sum.el
parent922e43ad7db2145f2a93ba66401289e420c129a5 (diff)
downloademacs-c51d9140be18697fbff60233d68b18f2f682a3b9.tar.gz
emacs-c51d9140be18697fbff60233d68b18f2f682a3b9.tar.bz2
emacs-c51d9140be18697fbff60233d68b18f2f682a3b9.zip
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.
Diffstat (limited to 'lisp/gnus/gnus-sum.el')
-rw-r--r--lisp/gnus/gnus-sum.el4
1 files changed, 2 insertions, 2 deletions
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