branch: elpa/go-mode
commit 7580ac39896ec8653449fd06f1d3d949b7504f13
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>
cmd/guru: emacs: allow passing tags to guru
Change-Id: I2e49d050add1f764a0e41300b2cca8da699f418a
Reviewed-on: https://go-review.googlesource.com/20302
Reviewed-by: Alan Donovan <[email protected]>
---
guru_import/cmd/guru/go-guru.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/guru_import/cmd/guru/go-guru.el b/guru_import/cmd/guru/go-guru.el
index bd69384..def03a2 100644
--- a/guru_import/cmd/guru/go-guru.el
+++ b/guru_import/cmd/guru/go-guru.el
@@ -45,6 +45,11 @@
nil
"History of values supplied to `go-guru-set-scope'.")
+(defcustom go-guru-build-tags ""
+ "Build tags passed to guru."
+ :type 'string
+ :group 'go-guru)
+
;; Extend go-mode-map.
(let ((m (define-prefix-command 'go-guru-map)))
(define-key m "d" #'go-guru-describe)
@@ -131,7 +136,8 @@ a scope if not already set. Return the output buffer."
(erase-buffer)
(go-guru--insert-modified-files)
(let* ((args (append (list "-modified"
- "-scope" go-guru-scope)
+ "-scope" go-guru-scope
+ "-tags" go-guru-build-tags)
flags
(list mode posn))))
;; Log the command to *Messages*, for debugging.