branch: elpa/go-mode
commit 9a5284bc0a45fb5e064f2bde2bab04d83e822e17
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>
cmd/guru: emacs: update scope documentation
Also fix a typo in the tool's help string.
Change-Id: I54a9ed4a5515b137b0fbf1b2391dd6fa84b2d2d8
Reviewed-on: https://go-review.googlesource.com/20474
Reviewed-by: Alan Donovan <[email protected]>
---
guru_import/cmd/guru/go-guru.el | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
diff --git a/guru_import/cmd/guru/go-guru.el b/guru_import/cmd/guru/go-guru.el
index de78d7a..9284a08 100644
--- a/guru_import/cmd/guru/go-guru.el
+++ b/guru_import/cmd/guru/go-guru.el
@@ -68,19 +68,17 @@
;;;###autoload
(defun go-guru-set-scope ()
- "Set the scope for the Go guru, prompting the user to edit the
-previous scope.
-
-The scope specifies a set of arguments, separated by spaces.
-It may be:
-1) a set of packages whose main functions will be analyzed.
-2) a list of *.go filenames; they will treated like as a single
- package (see #3).
-3) a single package whose main function and/or Test* functions
- will be analyzed.
-
-In the common case, this is similar to the argument(s) you would
-specify to 'go build'."
+ "Set the scope for the Go guru, prompting the user to edit the previous
scope.
+
+The scope restricts analysis to the specified packages.
+Its value is a comma-separated list of patterns of these forms:
+ golang.org/x/tools/cmd/guru # a single package
+ golang.org/x/tools/... # all packages beneath dir
+ ... # the entire workspace.
+
+A pattern preceded by '-' is negative, so the scope
+ encoding/...,-encoding/xml
+matches all encoding packages except encoding/xml."
(interactive)
(let ((scope (read-from-minibuffer "Go guru scope: "
go-guru-scope