(cl-macroexpand-all): Fix code-walk for
lexical-let when encountering ((lambda (...) ...) ...).
This commit is contained in:
parent
0b0d984ecb
commit
61f03d6f8f
1 changed files with 5 additions and 0 deletions
|
@ -743,6 +743,11 @@ This also does some trivial optimizations to make the form prettier."
|
|||
(let* ((args (cl-macroexpand-body (cdr form) env)) (p args))
|
||||
(while (and p (symbolp (car p))) (setq p (cddr p)))
|
||||
(if p (cl-macroexpand-all (cons 'setf args)) (cons 'setq args))))
|
||||
((consp (car form))
|
||||
(cl-macroexpand-all (list* 'funcall
|
||||
(list 'function (car form))
|
||||
(cdr form))
|
||||
env))
|
||||
(t (cons (car form) (cl-macroexpand-body (cdr form) env)))))
|
||||
|
||||
(defun cl-macroexpand-body (body &optional env)
|
||||
|
|
Loading…
Add table
Reference in a new issue