]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct gnus-newsgroup-limits in gnus when including thread
authorAndrew G Cohen <cohen@andy.bu.edu>
Sun, 23 Apr 2017 00:13:09 +0000 (08:13 +0800)
committerAndrew G Cohen <cohen@andy.bu.edu>
Sun, 23 Apr 2017 00:13:09 +0000 (08:13 +0800)
* 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

index f287bee202f150e90de764832b94625ec03cb424..c86fea015e7c41c77add0f39c448254afdb97a70 100644 (file)
@@ -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)