branch: elpa/go-mode
commit 1a0541c6d5fdba0c233aaef82aae3a44a7af7c25
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>
Simplify go-packages-go-list by using process-lines
---
go-mode.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index 6658bed..c0e4ebb 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1407,9 +1407,7 @@ archive files in /pkg/"
(defun go-packages-go-list ()
"Return a list of all Go packages, using `go list'"
- (with-temp-buffer
- (call-process go-command nil (current-buffer) nil "list" "-e" "all")
- (split-string (buffer-string) "\n" t)))
+ (process-lines go-command "list" "-e" "all"))
(defun go-unused-imports-lines ()
(reverse (remove nil