]> git.eshelyaron.com Git - emacs.git/commit
Don't modify interactive closures destructively (Bug#60974).
authorVibhav Pant <vibhavp@gmail.com>
Wed, 1 Mar 2023 09:34:34 +0000 (15:04 +0530)
committerVibhav Pant <vibhavp@gmail.com>
Mon, 6 Mar 2023 14:58:20 +0000 (20:28 +0530)
commit1e5393a57a3bbe3f9167fee59232c2e424afadf2
tree55eaa6af112b2ddb1978fc729643ff9ba7f1a81b
parent186643ea8a8e36bf3264b36c4106793cea25c6b3
Don't modify interactive closures destructively (Bug#60974).

* lisp/emacs-lisp/cconv.el (cconv-convert): When form is an
interactive lambda form, don't destructively modify it, as it might be
a constant literal. Instead, create a new list with the relevant
place(s) changed.

* test/lisp/emacs-lisp/cconv-tests.el
(cconv-tests-interactive-form-modify-bug60974): New test.
lisp/emacs-lisp/cconv.el
test/lisp/emacs-lisp/cconv-tests.el