aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPankaj Jangid2020-12-16 23:34:20 +0100
committerLars Ingebrigtsen2020-12-16 23:34:20 +0100
commitc51d9140be18697fbff60233d68b18f2f682a3b9 (patch)
tree4976792d34c4d150fa0b64ab27bf126ab605be54
parent922e43ad7db2145f2a93ba66401289e420c129a5 (diff)
downloademacs-c51d9140be18697fbff60233d68b18f2f682a3b9.tar.gz
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.
-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."
4100 ;; The group was successfully selected. 4100 ;; The group was successfully selected.
4101 (t 4101 (t
4102 (gnus-set-global-variables) 4102 (gnus-set-global-variables)
4103 (when (boundp 'gnus-pick-line-number)
4104 (setq gnus-pick-line-number 0))
4105 (when (boundp 'spam-install-hooks) 4103 (when (boundp 'spam-install-hooks)
4106 (spam-initialize)) 4104 (spam-initialize))
4107 ;; Save the active value in effect when the group was entered. 4105 ;; Save the active value in effect when the group was entered.
@@ -4226,6 +4224,8 @@ If SELECT-ARTICLES, only select those articles from GROUP."
4226 gnus-newsgroup-data-reverse nil) 4224 gnus-newsgroup-data-reverse nil)
4227 (gnus-run-hooks 'gnus-summary-generate-hook) 4225 (gnus-run-hooks 'gnus-summary-generate-hook)
4228 ;; Generate the buffer, either with threads or without. 4226 ;; Generate the buffer, either with threads or without.
4227 (when (boundp 'gnus-pick-line-number)
4228 (setq gnus-pick-line-number 0))
4229 (when gnus-newsgroup-headers 4229 (when gnus-newsgroup-headers
4230 (gnus-summary-prepare-threads 4230 (gnus-summary-prepare-threads
4231 (if gnus-show-threads 4231 (if gnus-show-threads