]> git.eshelyaron.com Git - emacs.git/commit
(cl-block, cl-return-from): Fix bug#75498
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 16 Jan 2025 22:48:21 +0000 (17:48 -0500)
committerEshel Yaron <me@eshelyaron.com>
Fri, 17 Jan 2025 11:45:07 +0000 (12:45 +0100)
commitf0925ead787bc91d1b6bd9969030e1aab727b45c
treeec8215a9c228b7f263157d42a6ffd83236bc9f54
parente0687860ac8e1c0e542655d6009f18bc40477f21
(cl-block, cl-return-from): Fix bug#75498

* lisp/emacs-lisp/cl-macs.el (cl-block, cl-return-from):
Change encoding so it obeys variable coping (i.e. lexical scoping when
`lexical-binding` is non-nil).
(cl--block-wrapper, cl--block-throw): Adjust accordingly.

* test/lisp/emacs-lisp/cl-macs-tests.el
(cl-macs--test-cl-block-lexbind-bug-75498): New test.

(cherry picked from commit dace7fa2ab468aeeca664541490eb9f291427a63)
etc/NEWS
lisp/emacs-lisp/cl-macs.el
test/lisp/emacs-lisp/cl-macs-tests.el