]> git.eshelyaron.com Git - emacs.git/commit
eval-and-compile: Strip symbol positions for eval but not for compile.
authorAlan Mackenzie <acm@muc.de>
Tue, 7 Mar 2023 08:00:25 +0000 (08:00 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 7 Mar 2023 08:00:25 +0000 (08:00 +0000)
commitfa83b236111ea024b75a8bb33b78a99f437a9a67
treed288fbdbdfb57f173ffb06c6b832c3ce7b201a4d
parent8179555730d23f43b3043df0bfecc9f9c4f36eda
eval-and-compile: Strip symbol positions for eval but not for compile.

This fixes bug #61962.

* lisp/subr.el (safe-copy-tree): New function.

* lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): Amend
the entry for eval-and-compile to use safe-copy-tree and
byte-run-strip-symbol-positions for the eval part.

* doc/lispref/lists.texi (Building Lists): Document safe-copy-tree.

* etc/NEWS: Note the new function safe-copy-tree.
doc/lispref/lists.texi
etc/NEWS
lisp/emacs-lisp/bytecomp.el
lisp/subr.el