1
0
mirror of https://github.com/golang/go synced 2024-11-13 18:40:22 -07:00

misc/emacs: Make godef-jump behave more like find-tag by supporting pop-tag-mark

Push point to the find-tag marker ring to support pop-tag-mark.

Fixes #5804.

R=adonovan
CC=golang-dev
https://golang.org/cl/11457044
This commit is contained in:
Dominik Honnef 2013-07-24 11:20:53 -04:00 committed by Alan Donovan
parent f011282578
commit 9c6fecc2da

View File

@ -5,7 +5,9 @@
;; license that can be found in the LICENSE file.
(require 'cl)
(require 'etags)
(require 'ffap)
(require 'ring)
(require 'url)
;; XEmacs compatibility guidelines
@ -925,6 +927,7 @@ description at POINT."
(message "%s" file))
(t
(push-mark)
(ring-insert find-tag-marker-ring (point-marker))
(godef--find-file-line-column file other-window))))
(file-error (message "Could not run godef binary"))))