1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:34:41 -07:00

misc/emacs: don't select the mark after gofmt

R=ajmani
CC=golang-dev
https://golang.org/cl/4553054
This commit is contained in:
Eric Eisner 2011-05-23 22:47:25 -04:00 committed by Russ Cox
parent 4c945c2cfc
commit ed0c0f2c80

View File

@ -523,7 +523,7 @@ Replace the current buffer on success; display errors on failure."
(erase-buffer)
(insert-buffer-substring outbuf)
(goto-char (min old-point (point-max)))
(if old-mark (set-mark (min old-mark (point-max))))
(if old-mark (push-mark (min old-mark (point-max)) t))
(kill-buffer errbuf))
;; gofmt failed: display the errors