Commit 4e15f072 authored by Karoly Lorentey's avatar Karoly Lorentey

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
parent b5d78df3
......@@ -677,9 +677,9 @@ The following commands are accepted by the client:
;; -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))
......
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