]> Cypherpunks repositories - gostls13.git/commit
misc/emacs: Add support for godef
authorDominik Honnef <dominik.honnef@gmail.com>
Tue, 19 Mar 2013 15:29:28 +0000 (11:29 -0400)
committerAlan Donovan <adonovan@google.com>
Tue, 19 Mar 2013 15:29:28 +0000 (11:29 -0400)
commit24f476409cf92193471006e0224b14cc6b3884a3
tree784d86d18cbc06d97d3727adf824b5a673e82272
parent7023a5d19768d1bcb9af737be1defc3bc12a50b8
misc/emacs: Add support for godef

godef[1][2] is a third party tool for printing information about
expressions, especially the location of their definition. This can be
used to implement a "jump to definition" function. Unlike
cross-language solutions like ctags, godef does not require an index,
operates on the Go AST instead of symbols and works across packages,
including the standard library.

This patch implements two new public functions: godef-describe (C-c
C-d) and godef-jump (C-d C-j). godef-describe describes the expression
at point, printing its type, and godef-jump jumps to its definition.

[1]: https://code.google.com/p/rog-go/source/browse/exp/cmd/godef/
[2]: go get code.google.com/p/rog-go/exp/cmd/godef

R=adonovan, cw, patrick.allen.higgins, sameer
CC=golang-dev
https://golang.org/cl/7781043
misc/emacs/go-mode.el