mu4e: ensure we check for a _local_ mu

Unless we explicitly use a local directory, the tramp package may cause emacs to
use a _remote_ one, which then fails, as mentioned in issue #2193.
This commit is contained in:
Dirk-Jan C. Binnema 2022-03-07 06:41:23 +02:00
parent 2e3fdfaeac
commit 1fc0a6047f
1 changed files with 2 additions and 1 deletions

View File

@ -339,6 +339,7 @@ The server output is as follows:
(defun mu4e--server-start () (defun mu4e--server-start ()
"Start the mu server process." "Start the mu server process."
(let ((default-directory temporary-file-directory)) ;;ensure it's local.
;; sanity-check 1 ;; sanity-check 1
(unless (and mu4e-mu-binary (file-executable-p mu4e-mu-binary)) (unless (and mu4e-mu-binary (file-executable-p mu4e-mu-binary))
(mu4e-error (mu4e-error
@ -369,7 +370,7 @@ The server output is as follows:
(set-process-query-on-exit-flag mu4e--server-process nil) (set-process-query-on-exit-flag mu4e--server-process nil)
(set-process-coding-system mu4e--server-process 'binary 'utf-8-unix) (set-process-coding-system mu4e--server-process 'binary 'utf-8-unix)
(set-process-filter mu4e--server-process 'mu4e--server-filter) (set-process-filter mu4e--server-process 'mu4e--server-filter)
(set-process-sentinel mu4e--server-process 'mu4e--server-sentinel))) (set-process-sentinel mu4e--server-process 'mu4e--server-sentinel))))
(defun mu4e--server-kill () (defun mu4e--server-kill ()
"Kill the mu server process." "Kill the mu server process."