Commit b59a6343 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(server-process-filter): Quote with &, not \.

parent f1db6a73
...@@ -212,11 +212,11 @@ Prefix arg means just kill any existing server communications subprocess." ...@@ -212,11 +212,11 @@ Prefix arg means just kill any existing server communications subprocess."
(setq pos 0) (setq pos 0)
;; Undo the quoting that emacsclient does ;; Undo the quoting that emacsclient does
;; for certain special characters. ;; for certain special characters.
(while (string-match "\\\\." arg pos) (while (string-match "&." arg pos)
(setq pos (1+ (match-beginning 0))) (setq pos (1+ (match-beginning 0)))
(let ((nextchar (aref arg pos))) (let ((nextchar (aref arg pos)))
(cond ((= nextchar ?\\) (cond ((= nextchar ?&)
(setq arg (replace-match "\\" t t arg))) (setq arg (replace-match "&" t t arg)))
((= nextchar ?-) ((= nextchar ?-)
(setq arg (replace-match "-" t t arg))) (setq arg (replace-match "-" t t arg)))
(t (t
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment