]> git.eshelyaron.com Git - emacs.git/commit
Don't modify interactive closures destructively (Bug#60974). fix/bug-60974
authorVibhav Pant <vibhavp@gmail.com>
Wed, 1 Mar 2023 09:34:34 +0000 (15:04 +0530)
committerVibhav Pant <vibhavp@gmail.com>
Wed, 1 Mar 2023 09:34:34 +0000 (15:04 +0530)
commit0040737e4f1b58caf865857019337a80c1d3371c
treec74a49a95139dc647b4724dd4cb7b3a6b124b729
parent522b82118de77e33bd701853b6aa7dfda19b11fc
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