]> git.eshelyaron.com Git - emacs.git/commitdiff
Document how to get rid of completion on `SPC' and `?'
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 20 Aug 2021 15:00:10 +0000 (17:00 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 20 Aug 2021 15:00:10 +0000 (17:00 +0200)
* doc/emacs/custom.texi (Minibuffer Maps): Mention how to get rid
of completion on `SPC' and `?' (bug#16528).

doc/emacs/custom.texi

index 999234e6d3375b24fc84a1047a2d211fc7e0ae52..9b90656049889754cbe27b2a1818c31d15457619 100644 (file)
@@ -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