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

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

[nongnu] elpa/go-mode 0f0fe35 127/495: actually avoid using process-line


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 0f0fe35 127/495: actually avoid using process-lines
Date: Sat, 7 Aug 2021 09:04:57 -0400 (EDT)

branch: elpa/go-mode
commit 0f0fe35508674586a25268896e706a1a6ffc4513
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    actually avoid using process-lines
---
 go-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index e164f49..d1388f4 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -702,7 +702,7 @@ uncommented, otherwise a new import will be added."
           ('none (insert "\nimport (\n\t" line "\n)\n")))))))
 
 (defun go-root-and-paths ()
-  (let* ((output (process-lines "go" "env" "GOROOT" "GOPATH"))
+  (let* ((output (split-string (shell-command-to-string "go env GOROOT 
GOPATH") "\n"))
          (root (car output))
          (paths (split-string (car (cdr output)) ":")))
     (append (list root) paths)))



reply via email to

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