1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-29 19:48:19 +00:00

Clarify how completing-read returns an empty string.

This commit is contained in:
Richard M. Stallman 1996-09-18 22:57:51 +00:00
parent fab9562514
commit 6ecb21f158

View File

@ -601,10 +601,11 @@ commands won't exit unless the input typed is itself an element of
commands work regardless of the input in the minibuffer.
The user can exit with null input by typing @key{RET} with an empty
minibuffer. Then @code{completing-read} returns @code{nil}. This is
how the user requests whatever default the command uses for the value
being read. The user can return using @key{RET} in this way regardless
of the value of @var{require-match}.
minibuffer. Then @code{completing-read} returns @code{""}. This is how
the user requests whatever default the command uses for the value being
read. The user can return using @key{RET} in this way regardless of the
value of @var{require-match}, and regardless of whether the empty string
is included in @var{collection}.
The function @code{completing-read} works by calling
@code{read-minibuffer}. It uses @code{minibuffer-local-completion-map}