]> git.eshelyaron.com Git - emacs.git/commit
Allow toggling completion modes for `M-x' with `M-X'
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 24 Jun 2022 18:16:51 +0000 (20:16 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 24 Jun 2022 18:18:21 +0000 (20:18 +0200)
commitcdbb02a597298b7812b456fca3d61e223dc40b7c
tree0e68d6c41c0f7f8838b69c2e8de3e26e6ee1bb6e
parent41c09d347feb94b9070a9aa2c78ccf65be7fd268
Allow toggling completion modes for `M-x' with `M-X'

* doc/lispref/commands.texi (Interactive Call): Document it.
* lisp/minibuffer.el (minibuffer-local-must-match-map): Bind 'M-X'.

* lisp/simple.el (execute-extended-command-cycle): New command.
(read-extended-command): Use it to allow toggling (bug#47215).
(read-extended-command-1): Renamed from `read-extended-command'.
(execute-extended-command-for-buffer): Factored out most of the
code...
(command-completion--command-for-this-buffer-function): ... to
here.
(extended-command-versions): New variable.

This code is based on a patch by Felician Nemeth
<felician.nemeth@gmail.com>.
doc/lispref/commands.texi
etc/NEWS
lisp/minibuffer.el
lisp/simple.el