Skip to content

Commit c69a617

Browse files
committed
Add notes about command modes and nativecomp interaction
* doc/lispref/commands.texi (Command Modes): Note interaction with native-compile (bug#54437). * src/data.c: Add comment about not being supported. Do not merge to master.
1 parent f15922a commit c69a617

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

doc/lispref/commands.texi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,11 @@ different ways (e.g., @code{eww-open-in-new-buffer} and
682682
mode-specific, as they can be issued by the user from pretty much any
683683
context.
684684

685+
Note that specifying command modes is not supported in native-compiled
686+
functions in Emacs 28.1 (but this is fixed in later Emacs versions).
687+
This means that @code{read-extended-command-predicate} isn't supported
688+
in native-compile builds, either.
689+
685690
@node Generic Commands
686691
@subsection Select among Command Alternatives
687692
@cindex generic commands

src/data.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,9 @@ Value, if non-nil, is a list (interactive SPEC). */)
10221022
return Qnil;
10231023
}
10241024

1025+
/* Note that this doesn't work for native-compiled functions in Emacs
1026+
28.1, but it's fixed in later Emacs versions. */
1027+
10251028
DEFUN ("command-modes", Fcommand_modes, Scommand_modes, 1, 1, 0,
10261029
doc: /* Return the modes COMMAND is defined for.
10271030
If COMMAND is not a command, the return value is nil.

0 commit comments

Comments
 (0)