From 84ba06ed513e97223630905f4788370e18116f40 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sun, 8 Jan 2023 14:05:04 +0100 Subject: [PATCH] Reduce quoting used for with-editor-emacsclient-executable Only quote whitespace instead of using `shell-quote-argument'. Closes #119. --- lisp/with-editor.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/with-editor.el b/lisp/with-editor.el index bdc1229..299e263 100644 --- a/lisp/with-editor.el +++ b/lisp/with-editor.el @@ -508,7 +508,8 @@ at run-time. (server-start)) ;; Tell $EDITOR to use the Emacsclient. (push (concat with-editor--envvar "=" - (shell-quote-argument with-editor-emacsclient-executable) + (replace-regexp-in-string + "\s" "\\\\\\&" with-editor-emacsclient-executable) ;; Tell the process where the server file is. (and (not server-use-tcp) (concat " --socket-name="