]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] misc/emacs: Use patch output of gofmt instead of replacing the...
authorJean-Marc Eurin <jmeurin@google.com>
Wed, 13 Jun 2012 20:24:29 +0000 (16:24 -0400)
committerSameer Ajmani <sameer@golang.org>
Wed, 13 Jun 2012 20:24:29 +0000 (16:24 -0400)
commit39c6f00c9afd29a0ce5183bdad48c6a7eb9497ad
treefb9c31d2429290a516dca6c73c9c094a02cb467a
parentf12183ff6aa3aaa8581e1d1a24735a523ac8ac97
[release-branch.go1] misc/emacs: Use patch output of gofmt instead of replacing the buffer.

««« backport 6c2e9ed1f714
misc/emacs: Use patch output of gofmt instead of replacing the buffer.

This uses the patch output of gofmt (-d option) and applies each
chunk to the buffer, instead of replacing the whole buffer.  The
main advantage is that the undo history is kept across gofmt'ings,
so it can really be used as a before-save-hook.

R=sameer, sameer
CC=golang-dev
https://golang.org/cl/6198047

»»»
misc/emacs/go-mode.el