]> git.eshelyaron.com Git - emacs.git/commitdiff
(mh-find-progs): Try /etc/nmh and lib/nmh dirs.
authorRichard M. Stallman <rms@gnu.org>
Wed, 7 Apr 1999 23:48:18 +0000 (23:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 7 Apr 1999 23:48:18 +0000 (23:48 +0000)
lisp/mail/mh-utils.el

index 8ef8bbf4ecf7e46ac1aaa8e741027c5b8e8080f0..7aa98b70687b1072224552e9d0a83d7595398eaa 100644 (file)
@@ -628,18 +628,16 @@ directory names."
                  ;; directory:  Strip any trailing `mh' or `bin' path
                  ;; components, then look for lib/mh or mh/lib.
                  (or (mh-path-search
-                      (list (expand-file-name "lib/mh" mh-base)
-                            (expand-file-name "etc/nmh" mh-base) ; NetBSD
-                            (expand-file-name "mh/lib" mh-base))
+                      (mapcar (lambda (p) (expand-file-name p mh-base))
+                              '("lib/mh" "etc/nmh" "/etc/nmh" "mh/lib"))
                       "components"
                       'file-exists-p))))
        (or (and mh-lib-progs
                 (mh-file-command-p (expand-file-name "mhl" mh-lib-progs)))
            (setq mh-lib-progs
                  (or (mh-path-search
-                      (list (expand-file-name "lib/mh" mh-base)
-                            (expand-file-name "libexec/nmh" mh-base) ; NetBSD
-                            (expand-file-name "mh/lib" mh-base))
+                      (mapcar (lambda (p) (expand-file-name p mh-base))
+                              '("lib/mh" "libexec/nmh" "lib/nmh" "mh/lib"))
                       "mhl")
                      (mh-path-search '("/usr/local/bin/mh/") "mhl")
                      (mh-path-search exec-path "mhl") ;unlikely