emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 3448304 340/495: go.tools/oracle: change -mode arg


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 3448304 340/495: go.tools/oracle: change -mode argument into subcommand.
Date: Sat, 7 Aug 2021 09:05:44 -0400 (EDT)

branch: elpa/go-mode
commit 344830475ddc60d923dc70dde37f8d188864bca7
Author: Alan Donovan <adonovan@google.com>
Commit: Dominik Honnef <dominik@honnef.co>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]