]> git.eshelyaron.com Git - emacs.git/commit
Extend the syntax of `interactive' to list applicable modes
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 12:21:24 +0000 (13:21 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 12:21:24 +0000 (13:21 +0100)
commit58e0c8ee86e2c36245f1c5a1483f1c73600b4914
tree6932d2522093fe640438a97f8595a39a0a07b24a
parent8d517daf770e8c6bd05e040b3bd3402626dbd9ef
Extend the syntax of `interactive' to list applicable modes

* doc/lispref/commands.texi (Using Interactive): Document the
extended `interactive' form.
* doc/lispref/loading.texi (Autoload): Document list-of-modes
form.

* lisp/emacs-lisp/autoload.el (make-autoload): Pick the list of
modes from `interactive' out of the functions.

* lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Allow for the
extended `interactive' form.

* src/callint.c (Finteractive): Document the extended form.

* src/data.c (Finteractive_form): Return the interactive form in
the old format (even when there's an extended `interactive') to
avoid having other parts of Emacs be aware of this.
(Fcommand_modes): New defun.

* src/emacs-module.c (GCALIGNED_STRUCT): Allow for modules to
return command modes.

* src/lisp.h: New function module_function_command_modes.
doc/lispref/commands.texi
doc/lispref/loading.texi
etc/NEWS
lisp/emacs-lisp/autoload.el
lisp/emacs-lisp/bytecomp.el
src/callint.c
src/data.c
src/emacs-module.c
src/eval.c
src/lisp.h
src/lread.c