gnus-sum.el (gnus-summary-read-group-1): Fix the "contains no messages" logic, which was reversed.

This commit is contained in:
Lars Ingebrigtsen 2011-01-27 23:56:27 +00:00 committed by Katsumi Yamaoka
parent 372fb76be9
commit 8937ef6e5e
2 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,8 @@
2011-01-27 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-sum.el (gnus-summary-read-group-1): Fix the "contains no
messages" logic, which was reversed.
* gnus-art.el (article-update-date-lapsed): Ensure that point stays at
the "same place" even if point is on the line being replaced.
(article-update-date-lapsed): Allow updating both the combined lapsed

View file

@ -3939,11 +3939,9 @@ If NO-DISPLAY, don't generate a summary buffer."
(gnus-group-jump-to-group group)
(gnus-group-next-unread-group 1))
(gnus-handle-ephemeral-exit quit-config)))
(let ((grpinfo (gnus-get-info group)))
(if (null (gnus-info-read grpinfo))
(gnus-message 3 "Group %s contains no messages"
(gnus-group-decoded-name group))
(gnus-message 3 "Can't select group")))
(if (null (gnus-list-of-unread-articles group))
(gnus-message 3 "Group %s contains no messages" group)
(gnus-message 3 "Can't select group"))
nil)
;; The user did a `C-g' while prompting for number of articles,
;; so we exit this group.