branch: elpa/go-mode
commit 791dfa5e58cb55bef226ebc02ec8721ab0a2546d
Author: John Shahid <[email protected]>
Commit: Dominik Honnef <[email protected]>
require subr-x when interpreting go-guru.el
Otherwise the user will run into the following error when trying to use
`go-guru-set-scope':
Symbol’s function definition is void: string-join
This doesn't affect compiled files.
[fixes #258]
---
go-guru.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/go-guru.el b/go-guru.el
index 6e31e33..7bcccf1 100644
--- a/go-guru.el
+++ b/go-guru.el
@@ -143,6 +143,8 @@
(completing-read-multiple "guru-scope (comma-separated): "
(go-packages) nil nil nil 'go-guru--scope-history))
+(eval-when-compile (require 'subr-x))
+
;;;###autoload
(defun go-guru-set-scope ()
"Set the scope for the Go guru, prompting the user to edit the previous
scope.