diff options
| author | Richard M. Stallman | 1997-03-25 02:22:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-03-25 02:22:04 +0000 |
| commit | 5d0e8ddd8e31227a48a333a02b4769fda5b87da1 (patch) | |
| tree | 9683f2fcb663ff52f69ad3cbacb5a53082b57b80 | |
| parent | 201bf3329c1699f641b8ee9218ab9e0c3660494b (diff) | |
| download | emacs-5d0e8ddd8e31227a48a333a02b4769fda5b87da1.tar.gz emacs-5d0e8ddd8e31227a48a333a02b4769fda5b87da1.zip | |
(mh-find-progs): When looking for mh-lib, construct
likely paths based on mh-progs rather than using a static list.
| -rw-r--r-- | lisp/mail/mh-utils.el | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/lisp/mail/mh-utils.el b/lisp/mail/mh-utils.el index d2505918c86..e7c7460ceab 100644 --- a/lisp/mail/mh-utils.el +++ b/lisp/mail/mh-utils.el | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Change Log: | 27 | ;;; Change Log: |
| 28 | 28 | ||
| 29 | ;; $Id: mh-utils.el,v 1.9 1996/01/29 23:17:16 kwzh Exp rms $ | 29 | ;; $Id: mh-utils.el,v 1.10 1996/06/28 06:56:17 rms Exp rms $ |
| 30 | 30 | ||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| @@ -576,14 +576,21 @@ Non-nil third argument means not to show the message." | |||
| 576 | "/usr/local/bin/"))) | 576 | "/usr/local/bin/"))) |
| 577 | (or (file-exists-p (expand-file-name "mhl" mh-lib)) | 577 | (or (file-exists-p (expand-file-name "mhl" mh-lib)) |
| 578 | (setq mh-lib | 578 | (setq mh-lib |
| 579 | (or (mh-path-search '("/usr/local/lib/mh/" | 579 | ;; Look for a lib directory roughly parallel to the bin |
| 580 | "/usr/local/mh/lib/" | 580 | ;; directory: Strip any trailing `mh' or `bin' path |
| 581 | "/usr/local/bin/mh/" | 581 | ;; components, then look for lib/mh or mh/lib. |
| 582 | "/usr/lib/mh/" ;Ultrix 4.2 | 582 | (or (let ((mh-base mh-progs)) |
| 583 | "/usr/new/lib/mh/" ;Ultrix <4.2 | 583 | (while (let ((dir-name (file-name-nondirectory |
| 584 | "/usr/contrib/mh/lib/" ;BSDI | 584 | (directory-file-name mh-base)))) |
| 585 | ) | 585 | (or (string= "mh" dir-name) |
| 586 | "mhl") | 586 | (string= "bin" dir-name))) |
| 587 | (setq mh-base | ||
| 588 | (file-name-directory (directory-file-name mh-base)))) | ||
| 589 | (mh-path-search | ||
| 590 | (list (expand-file-name "lib/mh/" mh-base) | ||
| 591 | (expand-file-name "mh/lib/" mh-base)) | ||
| 592 | "mhl")) | ||
| 593 | (mh-path-search '("/usr/local/bin/mh/") "mhl") | ||
| 587 | (mh-path-search exec-path "mhl") ;unlikely | 594 | (mh-path-search exec-path "mhl") ;unlikely |
| 588 | mh-lib | 595 | mh-lib |
| 589 | "/usr/local/lib/mh/")))) | 596 | "/usr/local/lib/mh/")))) |