Mercurial > emacs
comparison lisp/mail/mh-utils.el @ 18889:438ea21518f7
(mh-find-path): Handle mh-auto-folder-collect here,
not when this file is loaded.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 21 Jul 1997 04:59:04 +0000 |
parents | ad5fda4d4c36 |
children | b9b03935853a |
comparison
equal
deleted
inserted
replaced
18888:436555108230 | 18889:438ea21518f7 |
---|---|
535 ;; Set mh-progs and mh-lib. | 535 ;; Set mh-progs and mh-lib. |
536 ;; (This step is necessary if MH was installed after this Emacs was dumped.) | 536 ;; (This step is necessary if MH was installed after this Emacs was dumped.) |
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")))) |
543 (set-buffer (get-buffer-create mh-temp-buffer)) | 548 (set-buffer (get-buffer-create mh-temp-buffer)) |
544 (setq buffer-offer-save nil) ;for people who set default to t | 549 (setq buffer-offer-save nil) ;for people who set default to t |
969 (setq l (cdr l))) | 974 (setq l (cdr l))) |
970 new-list)) | 975 new-list)) |
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 |