]> git.eshelyaron.com Git - emacs.git/commit
Make `command-modes' work for (native-compiled) subrs, too
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 19 Mar 2022 14:11:15 +0000 (15:11 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 19 Mar 2022 14:11:37 +0000 (15:11 +0100)
commit71b8f1fc635d9bbe00ca89457065e0c83456ac43
tree49edc7bebd20340555baf2a28ef8a4dcd05504db
parentc79e0188e849715a7c4dc306c93ad8d0b3517d32
Make `command-modes' work for (native-compiled) subrs, too

* lisp/emacs-lisp/comp.el (comp-func): Add a command-modes slot.
(comp-spill-lap-function, comp-intern-func-in-ctxt): Fill it.
(comp-emit-for-top-level, comp-emit-lambda-for-top-level): Use it.

* src/alloc.c (mark_object): Mark the command_modes slot.

* src/comp.c (make_subr): Add a command_modes parameter.
(Fcomp__register_lambda): Use it.
(Fcomp__register_subr): Ditto.

* src/data.c (Fcommand_modes): Output the command_modes data for subrs
(bug#54437).

* src/lisp.h (GCALIGNED_STRUCT): Add a command_modes slot.

* src/pdumper.c (dump_subr): Update hash.
(dump_subr): Dump the command_modes slot.
lisp/emacs-lisp/comp.el
src/alloc.c
src/comp.c
src/data.c
src/lisp.h
src/pdumper.c