1
0
mirror of https://github.com/golang/go synced 2024-11-22 18:14:42 -07:00
go/misc
Dominik Honnef 77ddbf1ff0 misc/emacs: Rewrite gofmt to use own function for applying patch instead of using diff-mode.
Instead of relying on gofmt's diff output (which is a unified
    diff), we manually invoke diff -n and produce an RCS format diff,
    which can easily be parsed in Emacs, with the go--apply-rcs-patch
    function.

    This fixes undocumented issues with the old implementation such as
    skipping over hunks of changes, and it fixes the documented issue
    of not being able to handle file names that include whitespace.

    It can also apply the patch on a buffer that has no file name
    attached at all.

    Last but not least, it greatly simplifies the gofmt function
    itself.

Fixes #4766.
Fixes #4475.

R=adonovan, cw, patrick.allen.higgins, sameer
CC=golang-dev
https://golang.org/cl/7516046
2013-03-07 13:12:37 -05:00
..
arm
bash
bbedit
cgo runtime: fix cgo callbacks on windows 2013-03-07 09:18:48 -05:00
chrome/gophertool gophertool: fix links 2012-10-22 01:05:21 +08:00
dashboard misc/dashboard/builder: make -fail mode faster 2013-03-04 10:31:01 -05:00
dist misc/dist: handle previous installation 2013-02-28 16:09:48 +11:00
emacs misc/emacs: Rewrite gofmt to use own function for applying patch instead of using diff-mode. 2013-03-07 13:12:37 -05:00
fraise
git misc/git: add gofmt git pre-commit hook 2012-11-15 19:58:49 +01:00
goplay cmd/godoc: use go/build to determine package and example files 2013-02-19 11:19:58 -08:00
IntelliJIDEA
kate
notepadplus
swig cmd/go, go/build, misc/swig: add SWIG support to Go tool 2012-08-03 18:08:43 -07:00
vim misc/vim: update installation instructions to work better with some Linux distributions. 2013-02-18 14:03:47 +11:00
xcode misc/xcode: fix typos 2012-03-05 15:50:48 -08:00
zsh testing: change -test.benchtime to a flag.Duration. 2012-10-09 08:57:29 +11:00
benchcmp misc/benchcmp: show byte allocation statistics 2012-12-22 14:51:16 -05:00
pprof misc/pprof: don't look for browser in current directory. 2012-12-21 20:40:44 +01:00