emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master e0e9519: Fix the %P (line number) thing in Gnus sum


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master e0e9519: Fix the %P (line number) thing in Gnus summary buffers
Date: Wed, 25 Jan 2017 19:59:30 +0000 (UTC)

branch: master
commit e0e95199b93a232e5d4da67823364676ca9cb67c
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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).
---
 lisp/gnus/gnus-salt.el |    4 +---
 lisp/gnus/gnus-sum.el  |    2 ++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/gnus/gnus-salt.el b/lisp/gnus/gnus-salt.el
index 5361c2b..7037328 100644
--- a/lisp/gnus/gnus-salt.el
+++ b/lisp/gnus/gnus-salt.el
@@ -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.
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 6248334..e21d6bd 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -3976,6 +3976,8 @@ 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]