* 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.
mode-specific, as they can be issued by the user from pretty much any
context.
+Note that specifying command modes is not supported in native-compiled
+functions in Emacs 28.1 (but this is fixed in later Emacs versions).
+This means that @code{read-extended-command-predicate} isn't supported
+in native-compile builds, either.
+
@node Generic Commands
@subsection Select among Command Alternatives
@cindex generic commands
return Qnil;
}
+/* Note that this doesn't work for native-compiled functions in Emacs
+ 28.1, but it's fixed in later Emacs versions. */
+
DEFUN ("command-modes", Fcommand_modes, Scommand_modes, 1, 1, 0,
doc: /* Return the modes COMMAND is defined for.
If COMMAND is not a command, the return value is nil.