emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 1a0541c 312/495: Simplify go-packages-go-list by u


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 1a0541c 312/495: Simplify go-packages-go-list by using process-lines
Date: Sat, 7 Aug 2021 09:05:38 -0400 (EDT)

branch: elpa/go-mode
commit 1a0541c6d5fdba0c233aaef82aae3a44a7af7c25
Author: Dominik Honnef <dominik@honnef.co>
Commit: Dominik Honnef <dominik@honnef.co>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]