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

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

[nongnu] elpa/go-mode ac6dd8c 430/495: Fix go-remove-unused-imports


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode ac6dd8c 430/495: Fix go-remove-unused-imports
Date: Sat, 7 Aug 2021 09:06:02 -0400 (EDT)

branch: elpa/go-mode
commit ac6dd8c1f4b969fb93ecb8ac62b0700eeb1b62fd
Author: Kris <krismolendyke@users.noreply.github.com>
Commit: Peter Sanford <psanford@sanford.io>

    Fix go-remove-unused-imports
    
    Handle column number output introduced in Go 1.9.
    
    This fixes #221 and fixes #250
    
    Closes: #254 [via git-merge-pr]
---
 go-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index 78a0cd4..a7620e1 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1507,7 +1507,7 @@ It looks for archive files in /pkg/."
   (reverse (remove nil
                    (mapcar
                     (lambda (line)
-                      (when (string-match "^\\(.+\\):\\([[:digit:]]+\\): 
imported and not used: \".+\".*$" line)
+                      (when (string-match 
"^\\(.+\\):\\([[:digit:]]+\\):\\([[:digit:]]+\\): imported and not used: 
\".+\".*$" line)
                         (let ((error-file-name (match-string 1 line))
                               (error-line-num (match-string 2 line)))
                           (if (string= (file-truename error-file-name) 
(file-truename buffer-file-name))



reply via email to

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