]> git.eshelyaron.com Git - emacs.git/commit
Compile closures that modify their bound vars correctly (Bug#46834)
authorPip Cet <pipcet@gmail.com>
Sun, 28 Feb 2021 19:43:09 +0000 (19:43 +0000)
committerPip Cet <pipcet@gmail.com>
Tue, 2 Mar 2021 07:14:13 +0000 (07:14 +0000)
commit2b069c67d7410703898dfab8b337359322fcf123
tree23af6a48f4c1c065900246be84609c57b2b5fc31
parentb9cb3b904008a80c69ab433f4851377967b100db
Compile closures that modify their bound vars correctly (Bug#46834)

* lisp/emacs-lisp/bytecomp.el (byte-compile--reify-function): Don't
move let bindings into the lambda. Don't reverse list of
bindings. (byte-compile): Evaluate the return value if it was
previously reified.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-reify-function):
Add tests.
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el