Mercurial > emacs
diff lisp/mh-e/mh-customize.el @ 68192:2cfa649fa39d
* mh-customize.el (mh-index): Rename group to mh-search and sort group
definition and options accordingly.
(mh-index-program): Rename to mh-search-program.
(mh-kill-folder-suppress-prompt-hooks): Rename mh-index-p to
mh-search-p.
(mh-search-mode-hook): Change group from mh-index to mh-search.
(mh-index-folder): Rename to mh-search-folder. Change group from
mh-index to mh-search.
* mh-e.el (mh-folder-font-lock-keywords): Rename mh-index-folder to
mh-search-folder.
* mh-search.el (mh-indexer) Rename to mh-searcher. The commands pick
and grep are searchers too but aren't indexed.
(mh-index-execute-search-function): Rename to mh-search-function.
(mh-index-next-result-function): Rename to
mh-search-next-result-function.
(mh-index-regexp-builder): Rename to mh-search-regexp-builder.
(mh-search): Since redo-search-flag defaults to nil and is of lesser
importance, make it an optional argument and place it after the folder
and search-regexp arguments. Sync docstring with manual.
(mh-search-mode-map): Autoload so that keys are shown in help even
before mh-search is loaded.
(mh-search-mode): Sync docstring with manual.
(mh-index-do-search): Rename argument indexer to searcher. Sync
docstring with manual.
(mh-pick-do-search): Sync docstring with manual.
(mh-index-p): Rename to mh-search-p.
(mh-indexer-choices): Rename to mh-search-choices.
(mh-index-choose): Rename to mh-search-choose. Rename argument indexer
to searcher.
(mh-swish++-execute-search, mh-swish-execute-search)
(mh-mairix-execute-search, mh-namazu-execute-search): Drop "and read
the results" from docstring since these functions don't.
(mh-pick-execute-search, mh-grep-execute-search): Sync docstring with
manual.
(mh-index-generate-pretty-name): Prune -search from string so that
folder names for pick searches are the same as those of other
searches.
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Sat, 14 Jan 2006 21:17:37 +0000 |
parents | 3b7532a82079 |
children | 5012e59a73c7 |
line wrap: on
line diff
--- a/lisp/mh-e/mh-customize.el Sat Jan 14 13:39:38 2006 +0000 +++ b/lisp/mh-e/mh-customize.el Sat Jan 14 21:17:37 2006 +0000 @@ -134,12 +134,6 @@ :link '(custom-manual "(mh-e)Incorporating Mail") :group 'mh-e) -(defgroup mh-index nil - "Searching." - :link '(custom-manual "(mh-e)Searching") - :prefix "mh-index-" - :group 'mh-e) - (defgroup mh-junk nil "Dealing with junk mail." :link '(custom-manual "(mh-e)Junk") @@ -164,6 +158,12 @@ :prefix "mh-" :group 'mh-e) +(defgroup mh-search nil + "Searching." + :link '(custom-manual "(mh-e)Searching") + :prefix "mh-search-" + :group 'mh-e) + (defgroup mh-sending-mail nil "Sending mail." :prefix "mh-" @@ -713,30 +713,6 @@ -;;; Searching (:group 'mh-index) - -(defcustom mh-index-program nil - "Indexing program that MH-E shall use. - -The default setting of this option is \"Auto-detect\" which means -that MH-E will automatically choose one of swish++, swish-e, -mairix, namazu, pick and grep in that order. If, for example, you -have both swish++ and mairix installed and you want to use -mairix, then you can set this option to \"mairix\". - -More information about setting up an indexing program to use with -MH-E can be found in the documentation of `mh-search'." - :type '(choice (const :tag "Auto-detect" nil) - (const :tag "swish++" swish++) - (const :tag "swish-e" swish) - (const :tag "mairix" mairix) - (const :tag "namazu" namazu) - (const :tag "pick" pick) - (const :tag "grep" grep)) - :group 'mh-index) - - - ;;; Dealing with Junk Mail (:group 'mh-junk) ;; Spam fighting program chosen @@ -1114,6 +1090,30 @@ +;;; Searching (:group 'mh-search) + +(defcustom mh-search-program nil + "Search program that MH-E shall use. + +The default setting of this option is \"Auto-detect\" which means +that MH-E will automatically choose one of swish++, swish-e, +mairix, namazu, pick and grep in that order. If, for example, you +have both swish++ and mairix installed and you want to use +mairix, then you can set this option to \"mairix\". + +More information about setting up an indexing program to use with +MH-E can be found in the documentation of `mh-search'." + :type '(choice (const :tag "Auto-detect" nil) + (const :tag "swish++" swish++) + (const :tag "swish-e" swish) + (const :tag "mairix" mairix) + (const :tag "namazu" namazu) + (const :tag "pick" pick) + (const :tag "grep" grep)) + :group 'mh-search) + + + ;;; Sending Mail (:group 'mh-sending-mail) (defcustom mh-compose-forward-as-mime-flag t @@ -2400,15 +2400,15 @@ :group 'mh-hooks :group 'mh-letter) -(defcustom mh-kill-folder-suppress-prompt-hooks '(mh-index-p) +(defcustom mh-kill-folder-suppress-prompt-hooks '(mh-search-p) "Abnormal hook run at the beginning of \\<mh-folder-mode-map>\\[mh-kill-folder]. The hook functions are called with no arguments and should return a non-nil value to suppress the normal prompt when you remove a folder. This is useful for folders that are easily regenerated. -The default value of `mh-index-p' suppresses the prompt on -folders generated by an index search. +The default value of `mh-search-p' suppresses the prompt on +folders generated by searching. WARNING: Use this hook with care. If there is a bug in your hook which returns t on \"+inbox\" and you hit \\[mh-kill-folder] by @@ -2444,7 +2444,7 @@ \\[mh-search] is run on a new pattern." :type 'hook :group 'mh-hooks - :group 'mh-index) + :group 'mh-search) (defcustom mh-quit-hook nil "Hook run by \\<mh-folder-mode-map>\\[mh-quit] after quitting MH-E. @@ -2629,7 +2629,7 @@ :group 'mh-faces :group 'mh-folder) -(defface mh-index-folder +(defface mh-search-folder '((((class color) (background light)) (:foreground "dark green" :bold t)) (((class color) (background dark)) @@ -2638,7 +2638,7 @@ (:bold t))) "Folder heading face in MH-Folder buffers created by searches." :group 'mh-faces - :group 'mh-index) + :group 'mh-search) (defface mh-letter-header-field '((((class color) (background light))