From 7a73fe1b6ce91a7493a48a51bfe00012901d13a2 Mon Sep 17 00:00:00 2001 From: Konstantin Shaposhnikov Date: Mon, 7 Mar 2016 23:40:07 +0800 Subject: [PATCH] cmd/guru: emacs: add default key binding for whicherrs Bind go-guru-whicherrs to `C-C C-o e' Also remove go-guru-callgraph as callgraph mode is not supported by guru. Change-Id: Id233d178629a3cafc00e4f9640191c3d3c673cf1 Reviewed-on: https://go-review.googlesource.com/20310 Reviewed-by: Alan Donovan --- cmd/guru/go-guru.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/guru/go-guru.el b/cmd/guru/go-guru.el index 1894aa38..de78d7a9 100644 --- a/cmd/guru/go-guru.el +++ b/cmd/guru/go-guru.el @@ -60,6 +60,7 @@ (define-key m "j" #'go-guru-definition) ; j for jump (define-key m "p" #'go-guru-pointsto) (define-key m "s" #'go-guru-callstack) ; s for stack + (define-key m "e" #'go-guru-whicherrs) ; e for error (define-key m "<" #'go-guru-callers) (define-key m ">" #'go-guru-callees)) @@ -237,12 +238,6 @@ set the point to it, switching the current buffer." (interactive) (go-guru--run "callers" t)) -;;;###autoload -(defun go-guru-callgraph () - "Show the callgraph of the current program." - (interactive) - (go-guru--run "callgraph" t)) - ;;;###autoload (defun go-guru-callstack () "Show an arbitrary path from a root of the call graph to the