]> code.delx.au - gnu-emacs/commitdiff
Honor docstring of gnus-group-get-new-news
authorEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 15 Jan 2016 05:00:40 +0000 (05:00 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 15 Jan 2016 05:00:40 +0000 (05:00 +0000)
* lisp/gnus/gnus-start.el (gnus-get-unread-articles): If the prefix arg is t,
but non-numeric, unconditionally consider all groups to need updating.

lisp/gnus/gnus-start.el

index 4efec86f6e037d910b437721e2feb828a8b7d3ad..10f93d8e52667678018859c39eb7d72b76fe517a 100644 (file)
@@ -122,7 +122,6 @@ This variable can be a list of select methods which Gnus will query with
 the `ask-server' method in addition to the primary, secondary, and archive
 servers.
 
-
 E.g.:
   (setq gnus-check-new-newsgroups
        \\='((nntp \"some.server\") (nntp \"other.server\")))
@@ -1673,10 +1672,11 @@ backend check whether the group actually exists."
        (push (setq method-group-list (list method method-type nil nil))
              type-cache))
       ;; Only add groups that need updating.
-      (if (funcall (if one-level #'= #'<=) (gnus-info-level info)
-             (if (eq (cadr method-group-list) 'foreign)
-                 foreign-level
-               alevel))
+      (if (or (and foreign-level (null (numberp foreign-level)))
+             (funcall (if one-level #'= #'<=) (gnus-info-level info)
+                      (if (eq (cadr method-group-list) 'foreign)
+                          foreign-level
+                        alevel)))
          (setcar (nthcdr 2 method-group-list)
                  (cons info (nth 2 method-group-list)))
        ;; The group is inactive, so we nix out the number of unread articles.