comparison lispref/minibuf.texi @ 23147:ad9732e88e90

*** empty log message ***
author Karl Heuer <kwzh@gnu.org>
date Sat, 29 Aug 1998 17:11:50 +0000
parents 660408664b96
children 467b88fab665
comparison
equal deleted inserted replaced
23146:660408664b96 23147:ad9732e88e90
23 * Minibuffer History:: Recording previous minibuffer inputs 23 * Minibuffer History:: Recording previous minibuffer inputs
24 so the user can reuse them. 24 so the user can reuse them.
25 * Completion:: How to invoke and customize completion. 25 * Completion:: How to invoke and customize completion.
26 * Yes-or-No Queries:: Asking a question with a simple answer. 26 * Yes-or-No Queries:: Asking a question with a simple answer.
27 * Multiple Queries:: Asking a series of similar questions. 27 * Multiple Queries:: Asking a series of similar questions.
28 * Reading a Password:: Reading a password from the terminal.
28 * Minibuffer Misc:: Various customization hooks and variables. 29 * Minibuffer Misc:: Various customization hooks and variables.
29 @end menu 30 @end menu
30 31
31 @node Intro to Minibuffers 32 @node Intro to Minibuffers
32 @section Introduction to Minibuffers 33 @section Introduction to Minibuffers
1413 value around the call. 1414 value around the call.
1414 1415
1415 The return value of @code{map-y-or-n-p} is the number of objects acted on. 1416 The return value of @code{map-y-or-n-p} is the number of objects acted on.
1416 @end defun 1417 @end defun
1417 1418
1419 @node Reading a Password
1420 @section Reading a Password
1421 @cindex passwords, reading
1422
1423 To read a password to pass to another program, you can use the
1424 function @code{read-passwd}.
1425
1426 @tindex read-passwd
1427 @defun read-passwd prompt &optional confirm default
1428 This function reads a password, prompting with @var{prompt}. It does
1429 not echo the password as the user types it; instead, it echoes @samp{.}
1430 for each character in the password.
1431
1432 The optional argument @var{confirm}, if non-@code{nil}, says to read the
1433 password twice and insist it must be the same both times. If it isn't
1434 the same, the user has to type it over and over until the last two
1435 times match.
1436
1437 The optional argument @var{default} specifies the default password to
1438 return if the user enters empty input. If @var{default} is @code{nil},
1439 then @code{read-passwd} returns the null string in that case.
1440 @end defun
1441
1418 @node Minibuffer Misc 1442 @node Minibuffer Misc
1419 @section Minibuffer Miscellany 1443 @section Minibuffer Miscellany
1420 1444
1421 This section describes some basic functions and variables related to 1445 This section describes some basic functions and variables related to
1422 minibuffers. 1446 minibuffers.