branch: elpa/with-editor
commit 84ba06ed513e97223630905f4788370e18116f40
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
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 bdc122995f..299e263aef 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="