]> Cypherpunks repositories - gostls13.git/commitdiff
misc/emacs: Make godef-jump behave more like find-tag by supporting pop-tag-mark
authorDominik Honnef <dominik.honnef@gmail.com>
Wed, 24 Jul 2013 15:20:53 +0000 (11:20 -0400)
committerAlan Donovan <adonovan@google.com>
Wed, 24 Jul 2013 15:20:53 +0000 (11:20 -0400)
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

misc/emacs/go-mode.el

index aac179150bd94a86bc162b65f47f0779b063b3b8..63f8ee2fa18a1617d0d1f485b9c57e9ed19f0937 100644 (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"))))