aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wohler2005-12-10 01:41:43 +0000
committerBill Wohler2005-12-10 01:41:43 +0000
commit97c688edf844fa4688c26f69dff7ed19729a0365 (patch)
tree97958b8c16770a2bebab34095feaf9f265dd44ce
parent332ee54425a3a0710a83960945168a8e465ff5e0 (diff)
downloademacs-97c688edf844fa4688c26f69dff7ed19729a0365.tar.gz
emacs-97c688edf844fa4688c26f69dff7ed19729a0365.zip
* mh-customize.el (mh-path): Move here from mh-init.el.
(mh-variant): Mention that mh-path can be customized. (mh-invisible-header-fields-internal): Add X-ContentStamp, X-MAIL-INFO, and X-UNTD- from NetZero. * mh-init.el (mh-path): Move defcustom to mh-customize.el.
-rw-r--r--lisp/mh-e/ChangeLog9
-rw-r--r--lisp/mh-e/mh-customize.el17
-rw-r--r--lisp/mh-e/mh-init.el57
3 files changed, 47 insertions, 36 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index e88a64f3dc7..dafa37c6b3d 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,12 @@
12005-12-09 Bill Wohler <wohler@newt.com>
2
3 * mh-customize.el (mh-path): Move here from mh-init.el.
4 (mh-variant): Mention that mh-path can be customized.
5 (mh-invisible-header-fields-internal): Add X-ContentStamp,
6 X-MAIL-INFO, and X-UNTD- from NetZero.
7
8 * mh-init.el (mh-path): Move defcustom to mh-customize.el.
9
12005-12-04 Bill Wohler <wohler@newt.com> 102005-12-04 Bill Wohler <wohler@newt.com>
2 11
3 * mh-customize.el (mh-sortm-args): Sync docstrings with manual. 12 * mh-customize.el (mh-sortm-args): Sync docstrings with manual.
diff --git a/lisp/mh-e/mh-customize.el b/lisp/mh-e/mh-customize.el
index 2b834c5913e..49aceae3b61 100644
--- a/lisp/mh-e/mh-customize.el
+++ b/lisp/mh-e/mh-customize.el
@@ -260,15 +260,21 @@ mailutils."
260(eval-when (compile) 260(eval-when (compile)
261 (setq mh-variant 'none)) 261 (setq mh-variant 'none))
262 262
263(defcustom mh-path nil
264 "*Additional list of directories to search for MH.
265See `mh-variant'."
266 :group 'mh-e
267 :type '(repeat (directory)))
268
263(defcustom mh-variant 'autodetect 269(defcustom mh-variant 'autodetect
264 "*Specifies the variant used by MH-E. 270 "*Specifies the variant used by MH-E.
265 271
266The default setting of this option is `Auto-detect' which means that MH-E will 272The default setting of this option is `Auto-detect' which means that MH-E will
267automatically choose the first of nmh, MH, or GNU mailutils that it finds in 273automatically choose the first of nmh, MH, or GNU mailutils that it finds in
268the directories listed in `mh-path', `mh-sys-path', and `exec-path'. If, for 274the directories listed in `mh-path' (which you can customize), `mh-sys-path',
269example, you have both nmh and mailutils installed and `mh-variant-in-use' was 275and `exec-path'. If, for example, you have both nmh and mailutils installed
270initialized to nmh but you want to use mailutils, then you can set this option 276and `mh-variant-in-use' was initialized to nmh but you want to use mailutils,
271to `mailutils'. 277then you can set this option to `mailutils'.
272 278
273When this variable is changed, MH-E resets `mh-progs', `mh-lib', 279When this variable is changed, MH-E resets `mh-progs', `mh-lib',
274`mh-lib-progs', `mh-flists-present-flag', and `mh-variant-in-use' 280`mh-lib-progs', `mh-flists-present-flag', and `mh-variant-in-use'
@@ -1421,6 +1427,7 @@ of citations entirely, choose \"None\"."
1421 "X-Bogosity:" ; bogofilter 1427 "X-Bogosity:" ; bogofilter
1422 "X-Bugzilla-*" ; Bugzilla 1428 "X-Bugzilla-*" ; Bugzilla
1423 "X-Complaints-To:" 1429 "X-Complaints-To:"
1430 "X-ContentStamp:" ; NetZero
1424 "X-Cron-Env:" 1431 "X-Cron-Env:"
1425 "X-DMCA" 1432 "X-DMCA"
1426 "X-Delivered" 1433 "X-Delivered"
@@ -1453,6 +1460,7 @@ of citations entirely, choose \"None\"."
1453 "X-Listprocessor-" ; ListProc(tm) by CREN 1460 "X-Listprocessor-" ; ListProc(tm) by CREN
1454 "X-Listserver:" ; Unknown mailing list managers 1461 "X-Listserver:" ; Unknown mailing list managers
1455 "X-Loop:" ; Unknown mailing list managers 1462 "X-Loop:" ; Unknown mailing list managers
1463 "X-MAIL-INFO:" ; NetZero
1456 "X-MHE-Checksum" ; Checksum added during index search 1464 "X-MHE-Checksum" ; Checksum added during index search
1457 "X-MIME-Autoconverted:" ; sendmail 1465 "X-MIME-Autoconverted:" ; sendmail
1458 "X-MIMETrack:" 1466 "X-MIMETrack:"
@@ -1506,6 +1514,7 @@ of citations entirely, choose \"None\"."
1506 "X-Trace:" 1514 "X-Trace:"
1507 "X-UID" 1515 "X-UID"
1508 "X-UIDL:" 1516 "X-UIDL:"
1517 "X-UNTD-" ; NetZero
1509 "X-USANET-" ; usa.net 1518 "X-USANET-" ; usa.net
1510 "X-UserInfo1:" 1519 "X-UserInfo1:"
1511 "X-Virus-Scanned" ; amavisd-new 1520 "X-Virus-Scanned" ; amavisd-new
diff --git a/lisp/mh-e/mh-init.el b/lisp/mh-e/mh-init.el
index 3ef478fd55f..79f779810e2 100644
--- a/lisp/mh-e/mh-init.el
+++ b/lisp/mh-e/mh-init.el
@@ -73,6 +73,31 @@ This directory contains, among other things, the mhl program.")
73;;;###autoload 73;;;###autoload
74(put 'mh-lib-progs 'risky-local-variable t) 74(put 'mh-lib-progs 'risky-local-variable t)
75 75
76(defvar mh-variants nil
77 "List describing known MH variants.
78Created by the function `mh-variants'")
79
80;;;###mh-autoload
81(defun mh-variants ()
82 "Return a list of installed variants of MH on the system.
83This function looks for MH in `mh-sys-path', `mh-path' and
84`exec-path'. The format of the list of variants that is returned is described
85by the variable `mh-variants'."
86 (if mh-variants
87 mh-variants
88 (let ((list-unique))
89 ;; Make a unique list of directories, keeping the given order.
90 ;; We don't want the same MH variant to be listed multiple times.
91 (loop for dir in (append mh-path mh-sys-path exec-path) do
92 (setq dir (file-chase-links (directory-file-name dir)))
93 (add-to-list 'list-unique dir))
94 (loop for dir in (nreverse list-unique) do
95 (when (and dir (file-directory-p dir) (file-readable-p dir))
96 (let ((variant (mh-variant-info dir)))
97 (if variant
98 (add-to-list 'mh-variants variant)))))
99 mh-variants)))
100
76(defvar mh-variant-in-use nil 101(defvar mh-variant-in-use nil
77 "The MH variant currently in use; a string with variant and version number. 102 "The MH variant currently in use; a string with variant and version number.
78This differs from `mh-variant' when the latter is set to `autodetect'.") 103This differs from `mh-variant' when the latter is set to `autodetect'.")
@@ -171,17 +196,6 @@ The list `exec-path' is searched in addition to this list.
171There's no need for users to modify this list. Instead add extra 196There's no need for users to modify this list. Instead add extra
172directories to the customizable variable `mh-path'.") 197directories to the customizable variable `mh-path'.")
173 198
174(defcustom mh-path nil
175 "*List of directories to search for variants of the MH variant.
176The directories will be searched for `mhparam' in addition to directories
177listed in `mh-sys-path' and `exec-path'."
178 :group 'mh-e
179 :type '(repeat (directory)))
180
181(defvar mh-variants nil
182 "List describing known MH variants.
183Created by the function `mh-variants'")
184
185(defun mh-variant-mh-info (dir) 199(defun mh-variant-mh-info (dir)
186 "Return info for MH variant in DIR assuming a temporary buffer is setup." 200 "Return info for MH variant in DIR assuming a temporary buffer is setup."
187 ;; MH does not have the -version option. 201 ;; MH does not have the -version option.
@@ -281,27 +295,6 @@ This assumes that a temporary buffer is setup."
281 ((mh-variant-nmh-info dir)) 295 ((mh-variant-nmh-info dir))
282 ((mh-variant-mu-mh-info dir)))))) 296 ((mh-variant-mu-mh-info dir))))))
283 297
284;;;###mh-autoload
285(defun mh-variants ()
286 "Return a list of installed variants of MH on the system.
287This function looks for MH in `mh-sys-path', `mh-path' and
288`exec-path'. The format of the list of variants that is returned is described
289by the variable `mh-variants'."
290 (if mh-variants
291 mh-variants
292 (let ((list-unique))
293 ;; Make a unique list of directories, keeping the given order.
294 ;; We don't want the same MH variant to be listed multiple times.
295 (loop for dir in (append mh-path mh-sys-path exec-path) do
296 (setq dir (file-chase-links (directory-file-name dir)))
297 (add-to-list 'list-unique dir))
298 (loop for dir in (nreverse list-unique) do
299 (when (and dir (file-directory-p dir) (file-readable-p dir))
300 (let ((variant (mh-variant-info dir)))
301 (if variant
302 (add-to-list 'mh-variants variant)))))
303 mh-variants)))
304
305 298
306 299
307(defvar mh-image-load-path-called-flag nil) 300(defvar mh-image-load-path-called-flag nil)