[gnus git] branch master updated: n0-17-157-g785434c =1= nndraft.el (nndraft-update-unread-articles): Don't show group having no unread article unless it matches gnus-permanently-visible-groups.
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 785434c47d6a557d61e7c5f698357dd17f481b25 (commit)
from 74e64f736c6e1bde9360fbed2e0f5d6739820bec (commit)
- Log -----------------------------------------------------------------
commit 785434c47d6a557d61e7c5f698357dd17f481b25
Author: Katsumi Yamaoka <[email protected]>
Date: Mon Jul 4 02:16:17 2011 +0000
nndraft.el (nndraft-update-unread-articles): Don't show group having no unread article unless it matches gnus-permanently-visible-groups.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0bd234e..bd702de 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
2011-07-04 Katsumi Yamaoka <[email protected]>
+ * nndraft.el (nndraft-update-unread-articles): Don't show group having
+ no unread article unless it matches gnus-permanently-visible-groups.
+
* nndraft.el (nndraft-update-unread-articles): New function.
(nndraft-request-associate-buffer): Use it to update the number of
unread articles for the nndraft groups in the group buffer when saving
diff --git a/lisp/nndraft.el b/lisp/nndraft.el
index 5275468..459778b 100644
--- a/lisp/nndraft.el
+++ b/lisp/nndraft.el
@@ -165,11 +165,20 @@ are generated if and only if they are also in `message-draft-headers'.")
"Update groups' unread articles in the group buffer."
(nndraft-request-list)
(with-current-buffer gnus-group-buffer
- (let ((gnus-group-marked
- (mapcar (lambda (elem)
- (gnus-group-prefixed-name (car elem) (list 'nndraft "")))
- (nnmail-get-active))))
- (gnus-group-get-new-news-this-group nil t))))
+ (let* ((groups (mapcar (lambda (elem)
+ (gnus-group-prefixed-name (car elem)
+ (list 'nndraft "")))
+ (nnmail-get-active)))
+ (gnus-group-marked (copy-sequence groups))
+ (inhibit-read-only t))
+ (gnus-group-get-new-news-this-group nil t)
+ (dolist (group groups)
+ (unless (and gnus-permanently-visible-groups
+ (string-match gnus-permanently-visible-groups
+ group))
+ (gnus-group-goto-group group)
+ (when (zerop (gnus-group-group-unread))
+ (gnus-delete-line)))))))
(deffoo nndraft-request-associate-buffer (group)
"Associate the current buffer with some article in the draft 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/nndraft.el | 19 ++++++++++++++-----
2 files changed, 17 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