From: Eric Eisner Date: Tue, 24 May 2011 02:47:25 +0000 (-0400) Subject: misc/emacs: don't select the mark after gofmt X-Git-Tag: weekly.2011-06-02~133 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ed0c0f2c808b67190679692e6607b80f380e724d;p=gostls13.git misc/emacs: don't select the mark after gofmt R=ajmani CC=golang-dev https://golang.org/cl/4553054 --- diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index 532f464ed9..03f0a2a8bc 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -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