1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:04:43 -07:00

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 <adonovan@google.com>
This commit is contained in:
Dominik Honnef 2016-03-09 15:06:31 +01:00 committed by Alan Donovan
parent 498e5ca207
commit b023cf6107
2 changed files with 10 additions and 12 deletions

View File

@ -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.
"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.
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.
In the common case, this is similar to the argument(s) you would
specify to 'go build'."
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

View File

@ -91,7 +91,7 @@ The -scope flag restricts analysis to the specified packages.
... # the entire workspace.
A pattern preceded by '-' is negative, so the scope
encoding/...,-encoding/xml
matches all encoding packages except encoding/xml:
matches all encoding packages except encoding/xml.
User manual: http://golang.org/s/oracle-user-manual