mirror of
https://github.com/golang/go
synced 2024-11-18 06:54:49 -07:00
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 <adonovan@google.com>
This commit is contained in:
parent
af95c112ad
commit
860883f6da
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user