]> git.eshelyaron.com Git - emacs.git/commit
cl-defsubst: Use static scoping for args
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Jun 2023 15:37:12 +0000 (11:37 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Jun 2023 15:37:12 +0000 (11:37 -0400)
commite2ee646b162b87e832c8032b9d90577bd21f21f8
treea0095275efacb2bb7a4f36356f7fe6cd76f8b791
parent37a09a4c00e5f78c27f64ea09ec076838a1a3d47
cl-defsubst: Use static scoping for args

* lisp/emacs-lisp/cl-macs.el (cl--slet): New function, partly extracted
from `cl--slet*`.
(cl--slet*): Use it.
(cl--defsubst-expand): Use it to fix bug#47552.

* test/lisp/emacs-lisp/cl-macs-tests.el (cl-defstruct-dynbound-label):
New test.
lisp/emacs-lisp/cl-macs.el
test/lisp/emacs-lisp/cl-macs-tests.el