diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-02-14 13:56:53 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-02-14 13:56:53 +0100 |
commit | c1ef7adeb649aa99a10c4bd3b6ce988b309da3cc (patch) | |
tree | b03eb0219885c5c43f5ee45d77cb0fa24588e8fb /doc/emacs/m-x.texi | |
parent | 2bfcd93e83d264e6b801e43bfd1a78e345b8221d (diff) | |
download | emacs-c1ef7adeb649aa99a10c4bd3b6ce988b309da3cc.tar.gz emacs-c1ef7adeb649aa99a10c4bd3b6ce988b309da3cc.tar.bz2 emacs-c1ef7adeb649aa99a10c4bd3b6ce988b309da3cc.zip |
Add 'read-extended-command-predicate'
* doc/emacs/m-x.texi (M-x): Document it.
* doc/lispref/commands.texi (Interactive Call): Document it further.
* lisp/simple.el (read-extended-command-predicate): New user option.
(read-extended-command-predicate): Use it.
(completion-in-mode-p): New function (the default predicate).
Diffstat (limited to 'doc/emacs/m-x.texi')
-rw-r--r-- | doc/emacs/m-x.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/m-x.texi b/doc/emacs/m-x.texi index 865220fb218..689125e7b4a 100644 --- a/doc/emacs/m-x.texi +++ b/doc/emacs/m-x.texi @@ -94,3 +94,8 @@ the command is followed by arguments. @kbd{M-x} works by running the command @code{execute-extended-command}, which is responsible for reading the name of another command and invoking it. + +@vindex read-extended-command-predicate + This command heeds the @code{read-extended-command-predicate} +variable, which will (by default) filter out commands that are not +applicable to the current major mode (or enabled minor modes). |