projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe72638
)
* lisp/emacs-lisp/cl-macs.el (cl--self-tco): Fix build of gnus-agent.el
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Sat, 9 Jan 2021 16:35:53 +0000
(11:35 -0500)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Sat, 9 Jan 2021 16:35:53 +0000
(11:35 -0500)
Don't burp on "naked" variable let bindings.
lisp/emacs-lisp/cl-macs.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/cl-macs.el
b/lisp/emacs-lisp/cl-macs.el
index 4cee091e60d0263443ed0959a11f1669d108000a..c2bf02ccece4894e0a7d4da60bb198240c19ada7 100644
(file)
--- a/
lisp/emacs-lisp/cl-macs.el
+++ b/
lisp/emacs-lisp/cl-macs.el
@@
-2121,7
+2121,8
@@
Like `cl-flet' but the definitions can refer to previous ones.
;; Note: it's OK for this `let' to shadow any
;; of the formal arguments since we will only
;; setq the fresh new `ofargs' vars instead ;-)
- (let ((shadowings (mapcar #'car bindings)))
+ (let ((shadowings
+ (mapcar (lambda (b) (if (consp b) (car b) b)) bindings)))
;; If `var' is shadowed, then it clearly can't be
;; tail-called any more.
(not (memq var shadowings)))))