aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-01-26 23:57:39 +0000
committerRichard M. Stallman1996-01-26 23:57:39 +0000
commit126b6f74c1b659bc7e889a8f70d367a31e83178a (patch)
treebf1abc00308a374a21890262d113e76f593af1e8
parent95d70c422a71985e67522cc54159c9b4a623ed79 (diff)
downloademacs-126b6f74c1b659bc7e889a8f70d367a31e83178a.tar.gz
emacs-126b6f74c1b659bc7e889a8f70d367a31e83178a.zip
(server-process-filter): In file name, collapse multiple slashes to one.
-rw-r--r--lisp/server.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 5dc51cb7e39..7649660b72a 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -202,7 +202,13 @@ Prefix arg means just kill any existing server communications subprocess."
202 (substring request (match-beginning 0) (1- (match-end 0))))) 202 (substring request (match-beginning 0) (1- (match-end 0)))))
203 (setq request (substring request (match-end 0))) 203 (setq request (substring request (match-end 0)))
204 (if (string-match "\\`\\+[0-9]+\\'" arg) 204 (if (string-match "\\`\\+[0-9]+\\'" arg)
205 ;; ARG is a line number option.
205 (setq lineno (read (substring arg 1))) 206 (setq lineno (read (substring arg 1)))
207 ;; ARG is a file name.
208 ;; Collapse multiple slashes to single slashes,
209 ;; since in Emacs a multiple slash is not equiv to one.
210 (while (string-match "//+" arg)
211 (setq arg (replace-match "/" t t arg)))
206 (setq files 212 (setq files
207 (cons (list arg lineno) 213 (cons (list arg lineno)
208 files)) 214 files))