From 1fc0a6047fbd09a55f9cd61f9f4837c5b2218832 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 7 Mar 2022 06:41:23 +0200 Subject: [PATCH] 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. --- mu4e/mu4e-server.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-server.el b/mu4e/mu4e-server.el index 92a05882..bf6942f6 100644 --- a/mu4e/mu4e-server.el +++ b/mu4e/mu4e-server.el @@ -339,6 +339,7 @@ The server output is as follows: (defun mu4e--server-start () "Start the mu server process." + (let ((default-directory temporary-file-directory)) ;;ensure it's local. ;; sanity-check 1 (unless (and mu4e-mu-binary (file-executable-p mu4e-mu-binary)) (mu4e-error @@ -369,7 +370,7 @@ The server output is as follows: (set-process-query-on-exit-flag mu4e--server-process nil) (set-process-coding-system mu4e--server-process 'binary 'utf-8-unix) (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 () "Kill the mu server process."