changeset 83257:bcf610fb9517

Fix line/column number positioning in emacsclient. (Reported by Han Boetes.) * lisp/server.el (server-process-filter): When processing -position command, don't change the request string until the parameters are extracted. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-297
author Karoly Lorentey <lorentey@elte.hu>
date Sun, 20 Feb 2005 20:15:41 +0000
parents 389421e988c2
children 73700d004690
files lisp/server.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/server.el	Sun Feb 20 18:47:54 2005 +0000
+++ b/lisp/server.el	Sun Feb 20 20:15:41 2005 +0000
@@ -677,9 +677,9 @@
 
 		 ;; -position LINE:COLUMN:  Set point to the given position in the next file.
 		 ((and (equal "-position" arg) (string-match "\\+\\([0-9]+\\):\\([0-9]+\\) " request))
-		  (setq request (substring request (match-end 0))
-			lineno (string-to-int (match-string 1 request))
-			columnno (string-to-int (match-string 2 request))))
+		  (setq lineno (string-to-int (match-string 1 request))
+			columnno (string-to-int (match-string 2 request))
+			request (substring request (match-end 0))))
 
 		 ;; -file FILENAME:  Load the given file.
 		 ((and (equal "-file" arg) (string-match "\\([^ ]+\\) " request))