aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-21 20:30:49 +0000
committerRichard M. Stallman1997-07-21 20:30:49 +0000
commiteaff57bb126defa4507588ae2a9463b380d62422 (patch)
tree28167955e440bc4866739e4dbe164436daee14ea
parentc6b530ed93cce351fb5c87cfecaa9298ba7a9698 (diff)
downloademacs-eaff57bb126defa4507588ae2a9463b380d62422.tar.gz
emacs-eaff57bb126defa4507588ae2a9463b380d62422.zip
(mh-make-folder-list-background):
Don't call mh-find-path if we were called from there. (mh-find-path): Move mh-make-folder-list-background call to the end.
-rw-r--r--lisp/mail/mh-utils.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/mail/mh-utils.el b/lisp/mail/mh-utils.el
index 32079d8bc76..3ee71e412df 100644
--- a/lisp/mail/mh-utils.el
+++ b/lisp/mail/mh-utils.el
@@ -537,11 +537,6 @@ 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
545 (save-excursion 540 (save-excursion
546 ;; Be sure profile is fully expanded before switching buffers 541 ;; Be sure profile is fully expanded before switching buffers
547 (let ((profile (expand-file-name (or (getenv "MH") "~/.mh_profile")))) 542 (let ((profile (expand-file-name (or (getenv "MH") "~/.mh_profile"))))
@@ -579,7 +574,12 @@ Non-nil third argument means not to show the message."
579 (if mh-previous-seq 574 (if mh-previous-seq
580 (setq mh-previous-seq (intern mh-previous-seq))) 575 (setq mh-previous-seq (intern mh-previous-seq)))
581 (setq mail-user-agent 'mh-e-user-agent) 576 (setq mail-user-agent 'mh-e-user-agent)
582 (run-hooks 'mh-find-path-hook)))) 577 (run-hooks 'mh-find-path-hook)))
578 (and mh-auto-folder-collect
579 (let ((mh-no-install t)) ;only get folders if MH installed
580 (condition-case err
581 (mh-make-folder-list-background)
582 (file-error))))) ;so don't complain if not installed
583 583
584(defun mh-file-command-p (file) 584(defun mh-file-command-p (file)
585 "Return t if file FILE is the name of a executable regular file." 585 "Return t if file FILE is the name of a executable regular file."
@@ -764,7 +764,8 @@ Set the `mh-progs' and `mh-lib' variables to the file names."
764 ;; Call mh-set-folder-list to wait for the result. 764 ;; Call mh-set-folder-list to wait for the result.
765 (cond 765 (cond
766 ((not mh-make-folder-list-process) 766 ((not mh-make-folder-list-process)
767 (mh-find-path) 767 (unless mh-inbox
768 (mh-find-path))
768 (let ((process-connection-type nil)) 769 (let ((process-connection-type nil))
769 (setq mh-make-folder-list-process 770 (setq mh-make-folder-list-process
770 (start-process "folders" nil (expand-file-name "folders" mh-progs) 771 (start-process "folders" nil (expand-file-name "folders" mh-progs)