diff options
author | Gregory Heytings <gregory@heytings.org> | 2021-05-25 06:38:15 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-05-25 06:38:15 +0200 |
commit | de9a11255d34a2635e61b150725cef242077bd06 (patch) | |
tree | dcb2771b092aea454597c90722a0d9cb56b54dc2 /lisp/minibuffer.el | |
parent | 1fa58c548ae7c00550aef4f49d02dbe93b1ddf5f (diff) | |
download | emacs-de9a11255d34a2635e61b150725cef242077bd06.tar.gz emacs-de9a11255d34a2635e61b150725cef242077bd06.tar.bz2 emacs-de9a11255d34a2635e61b150725cef242077bd06.zip |
Improve completion-list-mode-map
* doc/emacs/mini.texi (Completion Commands): Mention it.
* lisp/minibuffer.el (minibuffer-local-completion-map): Add the M-g key
for switch-to-completion (bug#47699).
* lisp/simple.el (completion-list-mode-map): Make special-mode-map its
parent, unbind the 'g' revert key, add the 'n' and 'p' keys for
next-completion and previous-completion, and the M-g key for
switch-to-minibuffer.
(switch-to-minibuffer): New function.
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r-- | lisp/minibuffer.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index e04f1040b38..36fb8e72c15 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -2603,6 +2603,7 @@ The completion method is determined by `completion-at-point-functions'." (define-key map "?" 'minibuffer-completion-help) (define-key map [prior] 'switch-to-completions) (define-key map "\M-v" 'switch-to-completions) + (define-key map "\M-g" 'switch-to-completions) map) "Local keymap for minibuffer input with completion.") |