Commit e75ecfec authored by Karl Heuer's avatar Karl Heuer
Browse files

*** empty log message ***

parent 960b55e8
......@@ -25,6 +25,7 @@ for reading an argument.
* Completion:: How to invoke and customize completion.
* Yes-or-No Queries:: Asking a question with a simple answer.
* Multiple Queries:: Asking a series of similar questions.
* Reading a Password:: Reading a password from the terminal.
* Minibuffer Misc:: Various customization hooks and variables.
@end menu
......@@ -1415,6 +1416,29 @@ value around the call.
The return value of @code{map-y-or-n-p} is the number of objects acted on.
@end defun
@node Reading a Password
@section Reading a Password
@cindex passwords, reading
To read a password to pass to another program, you can use the
function @code{read-passwd}.
@tindex read-passwd
@defun read-passwd prompt &optional confirm default
This function reads a password, prompting with @var{prompt}. It does
not echo the password as the user types it; instead, it echoes @samp{.}
for each character in the password.
The optional argument @var{confirm}, if non-@code{nil}, says to read the
password twice and insist it must be the same both times. If it isn't
the same, the user has to type it over and over until the last two
times match.
The optional argument @var{default} specifies the default password to
return if the user enters empty input. If @var{default} is @code{nil},
then @code{read-passwd} returns the null string in that case.
@end defun
@node Minibuffer Misc
@section Minibuffer Miscellany
......
......@@ -19,7 +19,6 @@ pertaining to the terminal and the screen.
* Getting Out:: How exiting works (permanent or temporary).
* System Environment:: Distinguish the name and kind of system.
* User Identification:: Finding the name and user id of the user.
* Reading a Password:: Reading a password from the terminal.
* Time of Day:: Getting the current time.
* Time Conversion:: Converting a time from numeric form to a string, or
to calendrical data (or vice versa).
......@@ -870,29 +869,6 @@ This function returns the real @sc{uid} of the user.
This function returns the effective @sc{uid} of the user.
@end defun
@node Reading a Password
@section Reading a Password
@cindex passwords, reading
To read a password to pass to another program, you can use the
function @code{read-passwd}.
@tindex read-passwd
@defun read-passwd prompt &optional confirm default
This function reads a password, prompting with @var{prompt}. It does
not echo the password as the user types it; instead, it echoes @samp{.}
for each character in the password.
The optional argument @var{confirm}, if non-@code{nil}, says to read the
password twice and insist it must be the same both times. If it isn't
the same, the user has to type it over and over until the last two
times match.
The optional argument @var{default} specifies the default password to
return if the user enters empty input. If @var{default} is @code{nil},
then @code{read-passwd} returns the null string in that case.
@end defun
@node Time of Day
@section Time of Day
......
......@@ -42,7 +42,7 @@ buffer, together with their properties (when relevant).
How to control how much information is kept.
* Filling:: Functions for explicit filling.
* Margins:: How to specify margins for filling commands.
* Adaptive Fill: Adaptive Fill mode chooses a fill prefix from context.
* Adaptive Fill:: Adaptive Fill mode chooses a fill prefix from context.
* Auto Filling:: How auto-fill mode is implemented to break lines.
* Sorting:: Functions for sorting parts of the buffer.
* Columns:: Computing horizontal positions, and using them.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment