branch: elpa/go-mode
commit dccb56c1b1b85c3d7b3184a6606024077d4e1775
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>

    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