summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2023-02-10 12:42:09 +0100
committerJonas Bernoulli <jonas@bernoul.li>2023-02-10 12:42:09 +0100
commitf2f61a2c1812c19e911bf843e79ca6a95829244f (patch)
tree5ad200f34ae58e6f0e34fbdca95ff639ed33ae53 /lisp
parent391e76a256aeec6b9e4cbd733088f30c677d965b (diff)
with-editor--setup: Shell-quote executable again
Quoting is the right thing to do. Applications that fail because of that, are the ones that need fixing, in the case of shell script, by using: eval "$EDITOR" file Fixes #121.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/with-editor.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/with-editor.el b/lisp/with-editor.el
index 990aae6..c68720c 100644
--- a/lisp/with-editor.el
+++ b/lisp/with-editor.el
@@ -511,8 +511,10 @@ at run-time.
(server-start))
;; Tell $EDITOR to use the Emacsclient.
(push (concat with-editor--envvar "="
- (replace-regexp-in-string
- "\s" "\\\\\\&" with-editor-emacsclient-executable)
+ ;; Quoting is the right thing to do. Applications that
+ ;; fail because of that, are the ones that need fixing,
+ ;; e.g., by using 'eval "$EDITOR" file'. See #121.
+ (shell-quote-argument with-editor-emacsclient-executable)
;; Tell the process where the server file is.
(and (not server-use-tcp)
(concat " --socket-name="