From: Andrew Cohen Date: Thu, 16 Dec 2010 17:31:34 +0000 (-0500) Subject: nnir.el: Improve customizations. X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=148f7f65298c33b7e04e8c36bb82cd2cd75721f6;p=gnus nnir.el: Improve customizations. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9aa553c45..9036447bd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2010-12-16 Andrew Cohen + + * nnir.el: Improve customizations. + 2010-12-16 Lars Magne Ingebrigtsen * gnus-start.el (gnus-subscribe-newsgroup): Notify the backend. diff --git a/lisp/nnir.el b/lisp/nnir.el index 0f07bb140..f2348bf40 100644 --- a/lisp/nnir.el +++ b/lisp/nnir.el @@ -305,13 +305,6 @@ is `(valuefunc member)'." "Search groups in Gnus with assorted seach engines." :group 'gnus) -(defcustom nnir-method-default-engines - '((nnimap . imap) - (nntp . gmane)) - "*Alist of default search engines keyed by server method." - :type '(alist) - :group 'nnir) - (defcustom nnir-ignored-newsgroups "" "*A regexp to match newsgroups in the active file that should be skipped when searching." @@ -329,7 +322,7 @@ with three items unique to nnir summary buffers: %g Article original short group name (string) If nil this will use `gnus-summary-line-format'." - :type '(regexp) + :type '(string) :group 'nnir) (defcustom nnir-retrieve-headers-override-function nil @@ -347,7 +340,8 @@ result, `gnus-retrieve-headers' will be called instead." "*The default IMAP search key for an nnir search. Must be one of the keys in `nnir-imap-search-arguments'. To use raw imap queries by default set this to \"Imap\"." - :type '(string) + :type `(choice ,@(mapcar (lambda (elem) (list 'const (car elem))) + nnir-imap-search-arguments)) :group 'nnir) (defcustom nnir-swish++-configuration-file @@ -546,6 +540,18 @@ needs the variables `nnir-namazu-program', Add an entry here when adding a new search engine.") +(defcustom nnir-method-default-engines + '((nnimap . imap) + (nntp . gmane)) + "*Alist of default search engines keyed by server method." + :type `(repeat (cons (choice (const nnimap) (const nttp) (const nnspool) + (const nneething) (const nndir) (const nnmbox) + (const nnml) (const nnmh) (const nndraft) + (const nnfolder) (const nnmaildir)) + (choice + ,@(mapcar (lambda (elem) (list 'const (car elem))) + nnir-engines)))) + :group 'nnir) ;; Gnus glue.