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

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

[nongnu] elpa/go-mode dccb56c 256/495: go-unused-imports-lines: only com


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode dccb56c 256/495: go-unused-imports-lines: only compile the current file
Date: Sat, 7 Aug 2021 09:05:26 -0400 (EDT)

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

    go-unused-imports-lines: only compile the current file
---
 go-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index 5332e4d..851b937 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1325,7 +1325,9 @@ If IGNORE-CASE is non-nil, the comparison is 
case-insensitive."
                                            (if (string-match "_test\\.go$" 
buffer-file-truename)
                                                " test -c"
                                              " build -o /dev/null")
-                                           " -gcflags=-e")) "\n")))))
+                                           " -gcflags=-e"
+                                           " "
+                                           (shell-quote-argument 
(file-truename buffer-file-name)))) "\n")))))
 
 (defun go-remove-unused-imports (arg)
   "Remove all unused imports.



reply via email to

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