aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2011-07-04 02:19:08 +0000
committerKatsumi Yamaoka2011-07-04 02:19:08 +0000
commitbb9e218d460321560ef2841085bf88349f58009c (patch)
treee475991e68605b2aede66bfdfb24d0f1c4100f30
parent7d47b580380358da3353e4f379f2313ec3411af1 (diff)
downloademacs-bb9e218d460321560ef2841085bf88349f58009c.tar.gz
emacs-bb9e218d460321560ef2841085bf88349f58009c.zip
nndraft.el (nndraft-update-unread-articles): Don't show group having no unread article unless it matches gnus-permanently-visible-groups.
-rw-r--r--lisp/gnus/ChangeLog3
-rw-r--r--lisp/gnus/nndraft.el19
2 files changed, 17 insertions, 5 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 45c051c6913..d621333f287 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,8 @@
12011-07-04 Katsumi Yamaoka <yamaoka@jpl.org> 12011-07-04 Katsumi Yamaoka <yamaoka@jpl.org>
2 2
3 * nndraft.el (nndraft-update-unread-articles): Don't show group having
4 no unread article unless it matches gnus-permanently-visible-groups.
5
3 * nndraft.el (nndraft-update-unread-articles): New function. 6 * nndraft.el (nndraft-update-unread-articles): New function.
4 (nndraft-request-associate-buffer): Use it to update the number of 7 (nndraft-request-associate-buffer): Use it to update the number of
5 unread articles for the nndraft groups in the group buffer when saving 8 unread articles for the nndraft groups in the group buffer when saving
diff --git a/lisp/gnus/nndraft.el b/lisp/gnus/nndraft.el
index 5275468bb6f..459778bf4b3 100644
--- a/lisp/gnus/nndraft.el
+++ b/lisp/gnus/nndraft.el
@@ -165,11 +165,20 @@ are generated if and only if they are also in `message-draft-headers'.")
165 "Update groups' unread articles in the group buffer." 165 "Update groups' unread articles in the group buffer."
166 (nndraft-request-list) 166 (nndraft-request-list)
167 (with-current-buffer gnus-group-buffer 167 (with-current-buffer gnus-group-buffer
168 (let ((gnus-group-marked 168 (let* ((groups (mapcar (lambda (elem)
169 (mapcar (lambda (elem) 169 (gnus-group-prefixed-name (car elem)
170 (gnus-group-prefixed-name (car elem) (list 'nndraft ""))) 170 (list 'nndraft "")))
171 (nnmail-get-active)))) 171 (nnmail-get-active)))
172 (gnus-group-get-new-news-this-group nil t)))) 172 (gnus-group-marked (copy-sequence groups))
173 (inhibit-read-only t))
174 (gnus-group-get-new-news-this-group nil t)
175 (dolist (group groups)
176 (unless (and gnus-permanently-visible-groups
177 (string-match gnus-permanently-visible-groups
178 group))
179 (gnus-group-goto-group group)
180 (when (zerop (gnus-group-group-unread))
181 (gnus-delete-line)))))))
173 182
174(deffoo nndraft-request-associate-buffer (group) 183(deffoo nndraft-request-associate-buffer (group)
175 "Associate the current buffer with some article in the draft group." 184 "Associate the current buffer with some article in the draft group."