Further registry ignored-groups fixes.
authorTed Zlatanov <tzz@lifelogs.com>
Thu, 21 Apr 2011 16:34:34 +0000 (11:34 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Thu, 21 Apr 2011 16:34:34 +0000 (11:34 -0500)
* gnus.el (gnus-registry-ignored-groups): Provide default in gnus.el,
not gnus-registry.el.

* gnus-registry.el (gnus-registry-ignored-groups): Remove defcustom.
Explain why in comments.

lisp/ChangeLog
lisp/gnus-registry.el

index cff9d06..bc0e776 100644 (file)
@@ -1,5 +1,11 @@
 2011-04-21  Teodor Zlatanov  <tzz@lifelogs.com>
 
+       * gnus-registry.el (gnus-registry-ignored-groups): Remove defcustom.
+       Explain why in comments.
+
+       * gnus.el (gnus-registry-ignored-groups): Provide default in gnus.el,
+       not gnus-registry.el.
+
        * gnus-registry.el (gnus-registry-ignored-groups): Adjust defaults to
        match the parameter.
        (gnus-registry-ignore-group-p): Adjust to take either a group/topic
index 672ef9c..306f29d 100644 (file)
@@ -137,18 +137,6 @@ nnmairix groups are specifically excluded because they are ephemeral."
   :group 'gnus-registry
   :type '(repeat regexp))
 
-(defcustom gnus-registry-ignored-groups
-  (mapcar (lambda (g) (list g t))
-          '("delayed$" "drafts$" "queue$" "INBOX$" "^nnmairix:" "archive"))
-  "List of groups that the Gnus Registry will ignore.
-The group names are matched, they don't have to be fully
-qualified.
-
-nnmairix groups are specifically excluded because they are ephemeral."
-  :group 'gnus-registry
-  :type '(repeat (list regexp (choice (const :tag "Do not ignore" nil)
-                                      (const :tag "Ignore" t)))))
-
 (defcustom gnus-registry-install 'ask
   "Whether the registry should be installed."
   :group 'gnus-registry
@@ -657,12 +645,18 @@ Consults `gnus-registry-unfollowed-groups' and
                  group
                  nnmail-split-fancy-with-parent-ignore-groups)))))
 
+;; note that gnus-registry-ignored-groups is defined in gnus.el as a
+;; group/topic parameter and an associated variable!
+
+;; we do special logic for ignoring to accept regular expressions and
+;; nnmail-split-fancy-with-parent-ignore-groups as well
 (defun gnus-registry-ignore-group-p (group)
   "Determines if a group name should be ignored.
 Consults `gnus-registry-ignored-groups' and
 `nnmail-split-fancy-with-parent-ignore-groups'."
   (and group
-       (or (gnus-grep-in-list
+       (or (gnus-parameter-registry-ignore group)
+           (gnus-grep-in-list
             group
             (delq nil (mapcar (lambda (g)
                                 (cond