[gnus git] branch master updated: =1= (gnus-summary-read-group-1): Fix the "contains no messages" logic, which was reversed.

Lars Magne Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  2e7b1c7480393a205dac7c5bfb91ba498fb2e00e (commit)
      from  2b4fe5a591927e60593e5d8f8ad6c099700ac13d (commit)


- Log -----------------------------------------------------------------
commit 2e7b1c7480393a205dac7c5bfb91ba498fb2e00e
Author: Lars Magne Ingebrigtsen <[email protected]>
Date:   Thu Jan 27 15:42:30 2011 -0800

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

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0fd2756..09c1490 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
 2011-01-27  Lars Ingebrigtsen  <[email protected]>
 
+	* 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
diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el
index e709b71..8ee5964 100644
--- a/lisp/gnus-sum.el
+++ b/lisp/gnus-sum.el
@@ -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.

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog   |    3 +++
 lisp/gnus-sum.el |    8 +++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.