If being given an explicit level to get unread articles from, then use that for forei...
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 6 Sep 2010 20:22:57 +0000 (22:22 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 6 Sep 2010 20:22:57 +0000 (22:22 +0200)
lisp/ChangeLog
lisp/gnus-start.el

index 739ddb3..4dc2f62 100644 (file)
@@ -1,5 +1,9 @@
 2010-09-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-start.el (gnus-get-unread-articles): If being given an explicit
+       level to get unread articles from, then use that for foreign groups,
+       too.
+
        * gnus-html.el (gnus-html-wash-tags): Remove <a name...> tags, which
        confuses the rest of the function.
 
index a349475..2af55fc 100644 (file)
@@ -1677,14 +1677,16 @@ If SCAN, request a scan of that group as well."
   (let* ((newsrc (cdr gnus-newsrc-alist))
         (alevel (or level gnus-activate-level (1+ gnus-level-subscribed)))
         (foreign-level
-         (min
-          (cond ((and gnus-activate-foreign-newsgroups
-                      (not (numberp gnus-activate-foreign-newsgroups)))
-                 (1+ gnus-level-subscribed))
-                ((numberp gnus-activate-foreign-newsgroups)
-                 gnus-activate-foreign-newsgroups)
-                (t 0))
-          alevel))
+         (or
+          level
+          (min
+           (cond ((and gnus-activate-foreign-newsgroups
+                       (not (numberp gnus-activate-foreign-newsgroups)))
+                  (1+ gnus-level-subscribed))
+                 ((numberp gnus-activate-foreign-newsgroups)
+                  gnus-activate-foreign-newsgroups)
+                 (t 0))
+           alevel)))
         (methods-cache nil)
         (type-cache nil)
         (gnus-agent-article-local-times 0)