From b2b9f69b9db7fdedfa90764beced74a7831f50de Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 20 Aug 2021 17:00:10 +0200 Subject: [PATCH] Document how to get rid of completion on `SPC' and `?' * doc/emacs/custom.texi (Minibuffer Maps): Mention how to get rid of completion on `SPC' and `?' (bug#16528). --- doc/emacs/custom.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 999234e6d33..9b906560498 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi @@ -1721,6 +1721,17 @@ previous ones, but they are specifically for file name completion. They do not bind @key{SPC}. @end itemize +By default, @key{TAB}, @key{SPC} and @key{?} do completion in +@code{minibuffer-local-completion-map}. If you commonly complete over +collections that have elements that have space or question marks in +them, it may be convenient to disable completion on those keys by +putting this in your init file: + +@lisp +(define-key minibuffer-local-completion-map " " 'self-insert-command) +(define-key minibuffer-local-completion-map "?" 'self-insert-command) +@end lisp + @node Rebinding @subsection Changing Key Bindings Interactively @cindex key rebinding, this session -- 2.39.5