1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:54:45 -07:00
go/refactor
Dominik Honnef 9c7ccd869c refactor/rename: emacs: kill go-rename buffer correctly
Match gofmt's behaviour of closing the status buffer. Don't display the
buffer in case of success as we were going to hide it instantly again,
anyway. Also, instead of using delete-window, use
gofmt--kill-error-buffer. gofmt--kill-error-buffer uses quit-window if
there's a window for the buffer, kill-buffer otherwise.

quit-window only deletes the window if it was created explicitly for the
status buffer and if it is still displaying it. This way, we won't close
windows that the user created or repurposed himself.

Additionally, this change ensures that we don't leave a *go-rename*
buffer lying around when gorename succeeded.

Fixes golang/go#10972.

Change-Id: Id1efb60d399f0062d870e925138aa827e12f3e58
Reviewed-on: https://go-review.googlesource.com/10453
Reviewed-by: Alan Donovan <adonovan@google.com>
2015-05-29 16:50:48 +00:00
..
eg refactor/eg: fix crash while unifying wildcard with KeyValueExpr, which has no type 2015-05-29 16:42:57 +00:00
importgraph go/ssa: change import path of synthetic test package to "test$main" 2015-01-21 22:21:01 +00:00
lexical go/loader: rename SourceImports flag to ImportFromBinary and invert sense 2015-02-23 23:01:10 +00:00
rename refactor/rename: emacs: kill go-rename buffer correctly 2015-05-29 16:50:48 +00:00
satisfy go/types: expose IsInterface predicate, eliminating 6 copies 2015-01-21 18:49:27 +00:00
README go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00

golang.org/x/tools/refactor: libraries for refactoring tools.