diff options
| author | Eric Abrahamsen | 2016-02-04 11:14:39 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2016-02-04 11:14:39 +0000 |
| commit | 1f5eeb7be4ac31986baae6abc279b1685ad57a5b (patch) | |
| tree | 8a349a18a771146a92ae3820d0a5bc965f3150c5 | |
| parent | 4531b03ec98b50fc61baad2b75f6faf439894583 (diff) | |
| download | emacs-1f5eeb7be4ac31986baae6abc279b1685ad57a5b.tar.gz emacs-1f5eeb7be4ac31986baae6abc279b1685ad57a5b.zip | |
Honor docstring of gnus-group-get-new-news
* 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.
| -rw-r--r-- | lisp/gnus/gnus-start.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 4efec86f6e0..f2e69781fc1 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -122,7 +122,6 @@ This variable can be a list of select methods which Gnus will query with | |||
| 122 | the `ask-server' method in addition to the primary, secondary, and archive | 122 | the `ask-server' method in addition to the primary, secondary, and archive |
| 123 | servers. | 123 | servers. |
| 124 | 124 | ||
| 125 | |||
| 126 | E.g.: | 125 | E.g.: |
| 127 | (setq gnus-check-new-newsgroups | 126 | (setq gnus-check-new-newsgroups |
| 128 | \\='((nntp \"some.server\") (nntp \"other.server\"))) | 127 | \\='((nntp \"some.server\") (nntp \"other.server\"))) |
| @@ -1673,10 +1672,11 @@ backend check whether the group actually exists." | |||
| 1673 | (push (setq method-group-list (list method method-type nil nil)) | 1672 | (push (setq method-group-list (list method method-type nil nil)) |
| 1674 | type-cache)) | 1673 | type-cache)) |
| 1675 | ;; Only add groups that need updating. | 1674 | ;; Only add groups that need updating. |
| 1676 | (if (funcall (if one-level #'= #'<=) (gnus-info-level info) | 1675 | (if (or (and foreign-level (null (numberp foreign-level))) |
| 1677 | (if (eq (cadr method-group-list) 'foreign) | 1676 | (funcall (if one-level #'= #'<=) (gnus-info-level info) |
| 1678 | foreign-level | 1677 | (if (eq (cadr method-group-list) 'foreign) |
| 1679 | alevel)) | 1678 | foreign-level |
| 1679 | alevel))) | ||
| 1680 | (setcar (nthcdr 2 method-group-list) | 1680 | (setcar (nthcdr 2 method-group-list) |
| 1681 | (cons info (nth 2 method-group-list))) | 1681 | (cons info (nth 2 method-group-list))) |
| 1682 | ;; The group is inactive, so we nix out the number of unread articles. | 1682 | ;; The group is inactive, so we nix out the number of unread articles. |