From ed0c0f2c808b67190679692e6607b80f380e724d Mon Sep 17 00:00:00 2001 From: Eric Eisner Date: Mon, 23 May 2011 22:47:25 -0400 Subject: [PATCH] misc/emacs: don't select the mark after gofmt R=ajmani CC=golang-dev https://golang.org/cl/4553054 --- misc/emacs/go-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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