aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1997-01-02 00:37:12 +0000
committerRichard M. Stallman1997-01-02 00:37:12 +0000
commit8226e01e77fb265751284d74f9a90e72229c951e (patch)
tree8bac854475e7d99ef1add96f1f004f7fad75c4ca /lisp
parent7509d39795815a6678967231aba1fb217c4834e6 (diff)
downloademacs-8226e01e77fb265751284d74f9a90e72229c951e.tar.gz
emacs-8226e01e77fb265751284d74f9a90e72229c951e.zip
(server-process-filter): Let-bind `pos'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/server.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 4348e9a5134..78f10f422df 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -205,7 +205,8 @@ Prefix arg means just kill any existing server communications subprocess."
205 (setq request (substring request (match-end 0))) 205 (setq request (substring request (match-end 0)))
206 (while (string-match "[^ ]+ " request) 206 (while (string-match "[^ ]+ " request)
207 (let ((arg 207 (let ((arg
208 (substring request (match-beginning 0) (1- (match-end 0))))) 208 (substring request (match-beginning 0) (1- (match-end 0))))
209 (pos 0))
209 (setq request (substring request (match-end 0))) 210 (setq request (substring request (match-end 0)))
210 (if (string-match "\\`-nowait" arg) 211 (if (string-match "\\`-nowait" arg)
211 (setq nowait t) 212 (setq nowait t)
@@ -215,7 +216,6 @@ Prefix arg means just kill any existing server communications subprocess."
215 ;; ARG is a file name. 216 ;; ARG is a file name.
216 ;; Collapse multiple slashes to single slashes. 217 ;; Collapse multiple slashes to single slashes.
217 (setq arg (command-line-normalize-file-name arg)) 218 (setq arg (command-line-normalize-file-name arg))
218 (setq pos 0)
219 ;; Undo the quoting that emacsclient does 219 ;; Undo the quoting that emacsclient does
220 ;; for certain special characters. 220 ;; for certain special characters.
221 (while (string-match "&." arg pos) 221 (while (string-match "&." arg pos)