aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Cohen2011-09-01 13:25:09 +0000
committerKatsumi Yamaoka2011-09-01 13:25:09 +0000
commit6ed17f119f52dee3199a3efbdf8a92b93f5f8fd0 (patch)
tree90fd8b7564ae4d0df81860de7f36a871b0748a43
parentfc27895144163576d2907debf52dd39749e75ded (diff)
downloademacs-6ed17f119f52dee3199a3efbdf8a92b93f5f8fd0.tar.gz
emacs-6ed17f119f52dee3199a3efbdf8a92b93f5f8fd0.zip
gnus-sum.el: When adding article headers to a summary buffer also update gnus-newsgroup-articles (bug#9386).
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/gnus-sum.el10
2 files changed, 14 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 71872b21adb..8646f687420 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12011-09-01 Andrew Cohen <cohen@andy.bu.edu>
2
3 * gnus-sum.el: When adding article headers to a summary buffer also
4 update gnus-newsgroup-articles (bug#9386).
5
12011-08-30 Katsumi Yamaoka <yamaoka@jpl.org> 62011-08-30 Katsumi Yamaoka <yamaoka@jpl.org>
2 7
3 * auth-source.el: Autoload help-mode. 8 * auth-source.el: Autoload help-mode.
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index c01f91973a0..fd441c46d17 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -8630,6 +8630,8 @@ fetched for this group."
8630 'list gnus-newsgroup-headers 8630 'list gnus-newsgroup-headers
8631 (gnus-fetch-headers articles nil t) 8631 (gnus-fetch-headers articles nil t)
8632 'gnus-article-sort-by-number)) 8632 'gnus-article-sort-by-number))
8633 (setq gnus-newsgroup-articles
8634 (gnus-sorted-nunion gnus-newsgroup-articles articles))
8633 (gnus-summary-limit (append articles gnus-newsgroup-limit)))) 8635 (gnus-summary-limit (append articles gnus-newsgroup-limit))))
8634 8636
8635(defun gnus-summary-limit-exclude-dormant () 8637(defun gnus-summary-limit-exclude-dormant ()
@@ -9022,9 +9024,11 @@ non-numeric or nil fetch the number specified by the
9022 (keep-lines 9024 (keep-lines
9023 (regexp-opt ',(append refs (list id subject))))))) 9025 (regexp-opt ',(append refs (list id subject)))))))
9024 (gnus-fetch-headers (list last) (if (numberp limit) 9026 (gnus-fetch-headers (list last) (if (numberp limit)
9025 (* 2 limit) limit) t))))) 9027 (* 2 limit) limit) t))))
9028 article-ids)
9026 (when (listp new-headers) 9029 (when (listp new-headers)
9027 (dolist (header new-headers) 9030 (dolist (header new-headers)
9031 (push (mail-header-number header) article-ids)
9028 (when (member (mail-header-number header) gnus-newsgroup-unselected) 9032 (when (member (mail-header-number header) gnus-newsgroup-unselected)
9029 (push (mail-header-number header) gnus-newsgroup-unreads) 9033 (push (mail-header-number header) gnus-newsgroup-unreads)
9030 (setq gnus-newsgroup-unselected 9034 (setq gnus-newsgroup-unselected
@@ -9035,6 +9039,8 @@ non-numeric or nil fetch the number specified by the
9035 (gnus-merge 9039 (gnus-merge
9036 'list gnus-newsgroup-headers new-headers 9040 'list gnus-newsgroup-headers new-headers
9037 'gnus-article-sort-by-number))) 9041 'gnus-article-sort-by-number)))
9042 (setq gnus-newsgroup-articles
9043 (gnus-sorted-nunion gnus-newsgroup-articles (nreverse article-ids)))
9038 (gnus-summary-limit-include-thread id)))) 9044 (gnus-summary-limit-include-thread id))))
9039 9045
9040(defun gnus-summary-refer-article (message-id) 9046(defun gnus-summary-refer-article (message-id)
@@ -12743,6 +12749,8 @@ returned."
12743 gnus-newsgroup-headers 12749 gnus-newsgroup-headers
12744 (gnus-fetch-headers articles) 12750 (gnus-fetch-headers articles)
12745 'gnus-article-sort-by-number)) 12751 'gnus-article-sort-by-number))
12752 (setq gnus-newsgroup-articles
12753 (gnus-sorted-nunion gnus-newsgroup-articles articles))
12746 ;; Suppress duplicates? 12754 ;; Suppress duplicates?
12747 (when gnus-suppress-duplicates 12755 (when gnus-suppress-duplicates
12748 (gnus-dup-suppress-articles)) 12756 (gnus-dup-suppress-articles))