]> Cypherpunks repositories - gostls13.git/commitdiff
misc/emacs: don't select the mark after gofmt
authorEric Eisner <eric.d.eisner@gmail.com>
Tue, 24 May 2011 02:47:25 +0000 (22:47 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 24 May 2011 02:47:25 +0000 (22:47 -0400)
R=ajmani
CC=golang-dev
https://golang.org/cl/4553054

misc/emacs/go-mode.el

index 532f464ed9479ad157d68ecc70e30dee876eaa95..03f0a2a8bc1d9f45b62825f198cc50837480e68c 100644 (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