aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2010-09-09 06:15:13 +0000
committerKatsumi Yamaoka2010-09-09 06:15:13 +0000
commit55c9cbb07830329fc3b915145abd7a5c0a2252ca (patch)
tree29cec9f2f697bd41bfab366a08f845210fc77cc8
parentc46e7097b0ba020ea58caad4b34cb4c615116519 (diff)
downloademacs-55c9cbb07830329fc3b915145abd7a5c0a2252ca.tar.gz
emacs-55c9cbb07830329fc3b915145abd7a5c0a2252ca.zip
gnus-start.el (gnus-get-unread-articles): Set the number of unread articles of every unchecked group to t, which means unknown since the server has never been opened.
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-start.el20
2 files changed, 19 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index f518536685d..d810df8c7e9 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12010-09-09 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus-start.el (gnus-get-unread-articles): Set the number of unread
4 articles of every unchecked group to t, which means unknown since the
5 server has never been opened.
6
12010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org> 72010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 8
3 * gnus-html.el (gnus-html-show-alt-text): New command. 9 * gnus-html.el (gnus-html-show-alt-text): New command.
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 2af55fc7a86..891777d864b 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -1692,7 +1692,7 @@ If SCAN, request a scan of that group as well."
1692 (gnus-agent-article-local-times 0) 1692 (gnus-agent-article-local-times 0)
1693 (archive-method (gnus-server-to-method "archive")) 1693 (archive-method (gnus-server-to-method "archive"))
1694 infos info group active method cmethod 1694 infos info group active method cmethod
1695 method-type method-group-list) 1695 method-type method-group-list entry)
1696 (gnus-message 6 "Checking new news...") 1696 (gnus-message 6 "Checking new news...")
1697 1697
1698 (while newsrc 1698 (while newsrc
@@ -1737,12 +1737,18 @@ If SCAN, request a scan of that group as well."
1737 (push (setq method-group-list (list method method-type nil)) 1737 (push (setq method-group-list (list method method-type nil))
1738 type-cache)) 1738 type-cache))
1739 ;; Only add groups that need updating. 1739 ;; Only add groups that need updating.
1740 (when (<= (gnus-info-level info) 1740 (if (<= (gnus-info-level info)
1741 (if (eq (cadr method-group-list) 'foreign) 1741 (if (eq (cadr method-group-list) 'foreign)
1742 foreign-level 1742 foreign-level
1743 alevel)) 1743 alevel))
1744 (setcar (nthcdr 2 method-group-list) 1744 (setcar (nthcdr 2 method-group-list)
1745 (cons info (nth 2 method-group-list))))) 1745 (cons info (nth 2 method-group-list)))
1746 ;; The group is inactive, so we nix out the number of unread articles.
1747 ;; It leads `(gnus-group-unread group)' to return t. See also
1748 ;; `gnus-group-prepare-flat'.
1749 (unless active
1750 (when (setq entry (gnus-group-entry group))
1751 (setcar entry t)))))
1746 1752
1747 ;; Sort the methods based so that the primary and secondary 1753 ;; Sort the methods based so that the primary and secondary
1748 ;; methods come first. This is done for legacy reasons to try to 1754 ;; methods come first. This is done for legacy reasons to try to