Commit e0e95199 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen
Browse files

Fix the %P (line number) thing in Gnus summary buffers

* lisp/gnus/gnus-salt.el (gnus-pick-line-number): Remove hack.

* lisp/gnus/gnus-sum.el (gnus-summary-read-group-1): Reset the
"pick" mode line number on entry instead of relying in a hack (bug#18311).
parent 36cbe217
......@@ -131,9 +131,7 @@ It accepts the same format specs that `gnus-summary-line-format' does."
(defvar gnus-pick-line-number 1)
(defun gnus-pick-line-number ()
"Return the current line number."
(if (bobp)
(setq gnus-pick-line-number 1)
(incf gnus-pick-line-number)))
(incf gnus-pick-line-number))
(defun gnus-pick-start-reading (&optional catch-up)
"Start reading the picked articles.
......@@ -3976,6 +3976,8 @@ If SELECT-ARTICLES, only select those articles from GROUP."
;; The group was successfully selected.
(when (boundp 'gnus-pick-line-number)
(setq gnus-pick-line-number 0))
(when (boundp 'spam-install-hooks)
;; Save the active value in effect when the group was entered.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment