emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master ea9accc 2/4: Correct gnus-newsgroup-limits in gnus


From: Andrew G Cohen
Subject: [Emacs-diffs] master ea9accc 2/4: Correct gnus-newsgroup-limits in gnus when including thread
Date: Sat, 22 Apr 2017 21:15:53 -0400 (EDT)

branch: master
commit ea9acccd643272962831b63d932e283b8ecca7a7
Author: Andrew G Cohen <address@hidden>
Commit: Andrew G Cohen <address@hidden>

    Correct gnus-newsgroup-limits in gnus when including thread
    
    * lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Should
    only add one list of thread-related articles to gnus-newsgroup-limits
    rather than two.
---
 lisp/gnus/gnus-sum.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index f287bee..c86fea0 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -8585,6 +8585,14 @@ article."
        "subject"
        (regexp-quote (gnus-general-simplify-subject
                      (mail-header-subject (gnus-id-to-header id)))))
+      ;; the previous two calls each push a limit onto the limit
+      ;; stack. the first pop remove the articles that match the
+      ;; subject, while the second pop gets us back to the state
+      ;; before we started to deal with the thread. presumably we want
+      ;; to think of the thread and its associated subject matches as
+      ;; a single thing so that we onnly need to pop once to get back
+      ;; to the original view.
+      (pop gnus-newsgroup-limits)
       (gnus-summary-position-point))))
 
 (defun gnus-summary-limit-include-matching-articles (header regexp)



reply via email to

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