[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r104929: nndraft.el (nndraft-update-u
From: |
Katsumi Yamaoka |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r104929: nndraft.el (nndraft-update-unread-articles): Don't show group having no unread article unless it matches gnus-permanently-visible-groups. |
Date: |
Mon, 04 Jul 2011 02:19:08 +0000 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 104929
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Mon 2011-07-04 02:19:08 +0000
message:
nndraft.el (nndraft-update-unread-articles): Don't show group having no
unread article unless it matches gnus-permanently-visible-groups.
modified:
lisp/gnus/ChangeLog
lisp/gnus/nndraft.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog 2011-07-04 01:14:10 +0000
+++ b/lisp/gnus/ChangeLog 2011-07-04 02:19:08 +0000
@@ -1,5 +1,8 @@
2011-07-04 Katsumi Yamaoka <address@hidden>
+ * 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
=== modified file 'lisp/gnus/nndraft.el'
--- a/lisp/gnus/nndraft.el 2011-07-04 01:14:10 +0000
+++ b/lisp/gnus/nndraft.el 2011-07-04 02:19:08 +0000
@@ -165,11 +165,20 @@
"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."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r104929: nndraft.el (nndraft-update-unread-articles): Don't show group having no unread article unless it matches gnus-permanently-visible-groups.,
Katsumi Yamaoka <=