Skip to content

Commit

Permalink
Reduce quoting used for with-editor-emacsclient-executable
Browse files Browse the repository at this point in the history
Only quote whitespace instead of using `shell-quote-argument'.
Closes #119.
  • Loading branch information
tarsius committed Jan 8, 2023
1 parent 7042c02 commit 84ba06e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/with-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -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="
Expand Down

0 comments on commit 84ba06e

Please # to comment.