1
0
mirror of https://github.com/golang/go synced 2024-11-15 11:50:31 -07:00
go/misc/emacs
Jean-Marc Eurin 39c6f00c9a [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

»»»
2012-06-13 16:24:29 -04:00
..
go-mode-load.el
go-mode.el [release-branch.go1] misc/emacs: Use patch output of gofmt instead of replacing the buffer. 2012-06-13 16:24:29 -04:00