mirror of https://github.com/djcb/mu.git
mu4e-server: attempt to avoid tramp error
Try to ensure default-directory is local; it seems tramp can screw up shell-command-to-string.
This commit is contained in:
parent
e6d6f5014d
commit
fdc0834951
|
@ -396,6 +396,7 @@ As per issue #2198."
|
|||
|
||||
(defun mu4e--version-check ()
|
||||
;; sanity-check 1
|
||||
(let ((default-directory temporary-file-directory)) ;;ensure it's local.
|
||||
(unless (and mu4e-mu-binary (file-executable-p mu4e-mu-binary))
|
||||
(mu4e-error
|
||||
"Cannot find mu, please set `mu4e-mu-binary' to the mu executable path"))
|
||||
|
@ -411,7 +412,7 @@ As per issue #2198."
|
|||
"; please set `mu4e-mu-binary' "
|
||||
"accordingly")
|
||||
version mu4e-mu-version)
|
||||
(mu4e-message "Found mu version %s" version))))
|
||||
(mu4e-message "Found mu version %s" version)))))
|
||||
|
||||
(defun mu4e-server-repl ()
|
||||
"Start a mu4e-server repl.
|
||||
|
@ -433,7 +434,6 @@ You cannot run the repl when mu4e is running (or vice-versa)."
|
|||
(defun mu4e--server-start ()
|
||||
"Start the mu server process."
|
||||
(mu4e--version-check)
|
||||
(let ((default-directory temporary-file-directory)) ;;ensure it's local.
|
||||
;; kill old/stale servers, if any.
|
||||
(mu4e--kill-stale)
|
||||
(let* ((process-connection-type nil) ;; use a pipe
|
||||
|
@ -450,7 +450,7 @@ You cannot run the repl when mu4e is running (or vice-versa)."
|
|||
(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."
|
||||
|
|
Loading…
Reference in New Issue