branch: elpa/go-mode
commit 344830475ddc60d923dc70dde37f8d188864bca7
Author: Alan Donovan <[email protected]>
Commit: Dominik Honnef <[email protected]>
go.tools/oracle: change -mode argument into subcommand.
e.g. "oracle callgraph <package>"
Also: simplified error handling.
Eliminated oracle.errorf because it prepends "file:line:col: "
to the error message so the main function can't safely prepend "Error: ".
The position wasn't interesting though: it was just -pos, more or less.
R=crawshaw, dominik.honnef, r
CC=golang-dev
https://golang.org/cl/13864044
---
guru_import/cmd/oracle/oracle.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/guru_import/cmd/oracle/oracle.el b/guru_import/cmd/oracle/oracle.el
index 57fc88f..03b267b 100644
--- a/guru_import/cmd/oracle/oracle.el
+++ b/guru_import/cmd/oracle/oracle.el
@@ -111,9 +111,7 @@ result."
(setq buffer-read-only nil)
(erase-buffer)
(insert "Go Oracle\n")
- (let ((args (append (list go-oracle-command nil t nil
- posflag
- (format "-mode=%s" mode))
+ (let ((args (append (list go-oracle-command nil t nil posflag mode)
(split-string go-oracle-scope " " t))))
;; Log the command to *Messages*, for debugging.
(message "Command: %s:" args)