diff options
| author | Richard M. Stallman | 1997-07-21 04:59:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-21 04:59:04 +0000 |
| commit | 59fed028fe15e8c4998ede9cc8e09d8c414f7e8f (patch) | |
| tree | 66f64738b6ee6fd793813c7de0b4785cdc94eaa0 /lisp | |
| parent | 1d29eec2b9dcfdbc136d88d16c705e3d99ee80b1 (diff) | |
| download | emacs-59fed028fe15e8c4998ede9cc8e09d8c414f7e8f.tar.gz emacs-59fed028fe15e8c4998ede9cc8e09d8c414f7e8f.zip | |
(mh-find-path): Handle mh-auto-folder-collect here,
not when this file is loaded.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mail/mh-utils.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/mail/mh-utils.el b/lisp/mail/mh-utils.el index 03be2a5348f..32079d8bc76 100644 --- a/lisp/mail/mh-utils.el +++ b/lisp/mail/mh-utils.el | |||
| @@ -537,6 +537,11 @@ Non-nil third argument means not to show the message." | |||
| 537 | ;; From profile file, set mh-user-path, mh-draft-folder, | 537 | ;; From profile file, set mh-user-path, mh-draft-folder, |
| 538 | ;; mh-unseen-seq, mh-previous-seq, mh-inbox. | 538 | ;; mh-unseen-seq, mh-previous-seq, mh-inbox. |
| 539 | (mh-find-progs) | 539 | (mh-find-progs) |
| 540 | (and mh-auto-folder-collect | ||
| 541 | (let ((mh-no-install t)) ;only get folders if MH installed | ||
| 542 | (condition-case err | ||
| 543 | (mh-make-folder-list-background) | ||
| 544 | (file-error)))) ;so don't complain if not installed | ||
| 540 | (save-excursion | 545 | (save-excursion |
| 541 | ;; Be sure profile is fully expanded before switching buffers | 546 | ;; Be sure profile is fully expanded before switching buffers |
| 542 | (let ((profile (expand-file-name (or (getenv "MH") "~/.mh_profile")))) | 547 | (let ((profile (expand-file-name (or (getenv "MH") "~/.mh_profile")))) |
| @@ -971,11 +976,4 @@ Set the `mh-progs' and `mh-lib' variables to the file names." | |||
| 971 | 976 | ||
| 972 | (provide 'mh-utils) | 977 | (provide 'mh-utils) |
| 973 | 978 | ||
| 974 | (and (not noninteractive) | ||
| 975 | mh-auto-folder-collect | ||
| 976 | (let ((mh-no-install t)) ;only get folders if MH installed | ||
| 977 | (condition-case err | ||
| 978 | (mh-make-folder-list-background) | ||
| 979 | (file-error)))) ;so don't complain if not installed | ||
| 980 | |||
| 981 | ;;; mh-utils.el ends here | 979 | ;;; mh-utils.el ends here |