diff options
| author | Lars Ingebrigtsen | 2022-03-19 15:11:15 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-03-19 15:11:37 +0100 |
| commit | 71b8f1fc635d9bbe00ca89457065e0c83456ac43 (patch) | |
| tree | 49edc7bebd20340555baf2a28ef8a4dcd05504db /src/bytecode.c | |
| parent | c79e0188e849715a7c4dc306c93ad8d0b3517d32 (diff) | |
| download | emacs-71b8f1fc635d9bbe00ca89457065e0c83456ac43.tar.gz emacs-71b8f1fc635d9bbe00ca89457065e0c83456ac43.zip | |
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.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions