]> git.eshelyaron.com Git - emacs.git/commit
Amend byte-run-strip-symbol-positions so that an unexec build builds
authorAlan Mackenzie <acm@muc.de>
Thu, 24 Feb 2022 17:30:39 +0000 (17:30 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 24 Feb 2022 17:30:39 +0000 (17:30 +0000)
commit6092ee1c3ff503fbe8087e13b7eae2f904c4af3b
tree1486437e4446aadebfb6a6b7ec06299f9ba96c9e
parent2db149539bc7f9720856f1d17f0e7fa9bf735ea1
Amend byte-run-strip-symbol-positions so that an unexec build builds

This fixes bug #54098.

* lisp/emacs-lisp/byte-run.el (byte-run--strip-list)
(byte-run--strip-vector/record): New functions.  These alter a list or
vector/record structure only where a symbol with position gets replaced by a
bare symbol.
(byte-run-strip-symbol-positions): Reformulate to use the two new functions.
(function-put): No longer strip positions from the second and third arguments.

* lisp/emacs-lisp/bytecomp.el (byte-compile-out): Remove the senseless
"stripping" of putative symbol positions from OPERAND, which is nil or a
number.
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/bytecomp.el