changeset 16805:4b8907e5a574

(server-process-filter): Let-bind `pos'.
author Richard M. Stallman <rms@gnu.org>
date Thu, 02 Jan 1997 00:37:12 +0000
parents 0ba6599135d6
children 9694822642a7
files lisp/server.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/server.el	Wed Jan 01 05:33:42 1997 +0000
+++ b/lisp/server.el	Thu Jan 02 00:37:12 1997 +0000
@@ -205,7 +205,8 @@
 	      (setq request (substring request (match-end 0)))
 	      (while (string-match "[^ ]+ " request)
 		(let ((arg
-		       (substring request (match-beginning 0) (1- (match-end 0)))))
+		       (substring request (match-beginning 0) (1- (match-end 0))))
+		      (pos 0))
 		  (setq request (substring request (match-end 0)))
 		  (if (string-match "\\`-nowait" arg)
 		      (setq nowait t)
@@ -215,7 +216,6 @@
 		      ;; ARG is a file name.
 		      ;; Collapse multiple slashes to single slashes.
 		      (setq arg (command-line-normalize-file-name arg))
-		      (setq pos 0)
 		      ;; Undo the quoting that emacsclient does
 		      ;; for certain special characters.
 		      (while (string-match "&." arg pos)