[gnus git] branch master updated: n0-17-75-g5c3f677 =1= * gnus-registry.el (gnus-registry-remove-ignored): New function to remove entries with groups we ignore.
Ted Zlatanov <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 5c3f6777aaa6fed01367a5d5845157c610cc83e4 (commit)
from c19ae8d02b2066e6e4d6b5e5765f4326e72a378e (commit)
- Log -----------------------------------------------------------------
commit 5c3f6777aaa6fed01367a5d5845157c610cc83e4
Author: Ted Zlatanov <[email protected]>
Date: Wed Jun 1 12:26:33 2011 -0500
* gnus-registry.el (gnus-registry-remove-ignored): New function to remove entries with groups we ignore.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a62ef42..35d4e09 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-01 Teodor Zlatanov <[email protected]>
+
+ * gnus-registry.el (gnus-registry-remove-ignored): New function to
+ remove entries with groups we ignore.
+
2011-05-31 Lars Magne Ingebrigtsen <[email protected]>
* shr.el (shr-rescale-image): Add an :ascent of 100 to images so that
diff --git a/lisp/gnus-registry.el b/lisp/gnus-registry.el
index f6c0daa..a44986e 100644
--- a/lisp/gnus-registry.el
+++ b/lisp/gnus-registry.el
@@ -321,6 +321,20 @@ This is not required after changing `gnus-registry-cache-file'."
(gnus-message 5 "Saving Gnus registry (size %d) to %s...done"
(registry-size db) file)))
+(defun gnus-registry-remove-ignored ()
+ (interactive)
+ (let* ((db gnus-registry-db)
+ (grouphashtb (registry-lookup-secondary db 'group))
+ (old-size (registry-size db)))
+ (registry-reindex db)
+ (loop for k being the hash-keys of grouphashtb
+ using (hash-values v)
+ when (gnus-registry-ignore-group-p k)
+ do (registry-delete db v nil))
+ (registry-reindex db)
+ (gnus-message 4 "Removed %d ignored entries from the Gnus registry"
+ (- old-size (registry-size db)))))
+
;; article move/copy/spool/delete actions
(defun gnus-registry-action (action data-header from &optional to method)
(let* ((id (mail-header-id data-header))
-----------------------------------------------------------------------
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 | 5 +++++
lisp/gnus-registry.el | 14 ++++++++++++++
2 files changed, 19 insertions(+), 0 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