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

    refactor/rename: require cl-lib, use cl- namespace
    
    go-rename.el used the cl list* macro without requiring cl. This only
    worked for people who required it for other code. go-guru.el, before its
    removal from the tree, changed from cl to cl-lib, indirectly breaking
    go-rename.el for some users.
    
    Switch to using cl-list* and require cl-lib.
    
    Fixes golang/go#17468
    
    Change-Id: I70f2052b9fd3d1a8671794d9a3954be218026af2
    Reviewed-on: https://go-review.googlesource.com/31471
    Reviewed-by: Alan Donovan <[email protected]>
---
 rename_import/refactor/rename/go-rename.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rename_import/refactor/rename/go-rename.el 
b/rename_import/refactor/rename/go-rename.el
index 5181ce0..f12d363 100644
--- a/rename_import/refactor/rename/go-rename.el
+++ b/rename_import/refactor/rename/go-rename.el
@@ -21,6 +21,7 @@
 
 ;;; Code:
 
+(require 'cl-lib)
 (require 'compile)
 (require 'go-mode)
 (require 'thingatpt)
@@ -67,7 +68,7 @@ the `gorename' tool. With FORCE, call `gorename' with the
         (message "Command: %s:" args)
         (message "Running gorename...")
         ;; Use dynamic binding to modify/restore the environment
-        (setq success (zerop (let ((process-environment (list* goroot-env 
gopath-env process-environment)))
+        (setq success (zerop (let ((process-environment (cl-list* goroot-env 
gopath-env process-environment)))
           (apply #'call-process args))))
       (insert "\n")
       (compilation-mode)

Reply via email to