Mercurial > emacs
changeset 23147:ad9732e88e90
*** empty log message ***
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sat, 29 Aug 1998 17:11:50 +0000 |
parents | 660408664b96 |
children | 10e261360159 |
files | lispref/minibuf.texi lispref/os.texi lispref/text.texi |
diffstat | 3 files changed, 25 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/minibuf.texi Sat Aug 29 16:53:17 1998 +0000 +++ b/lispref/minibuf.texi Sat Aug 29 17:11:50 1998 +0000 @@ -25,6 +25,7 @@ * 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 @@ 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
--- a/lispref/os.texi Sat Aug 29 16:53:17 1998 +0000 +++ b/lispref/os.texi Sat Aug 29 17:11:50 1998 +0000 @@ -19,7 +19,6 @@ * 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 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
--- a/lispref/text.texi Sat Aug 29 16:53:17 1998 +0000 +++ b/lispref/text.texi Sat Aug 29 17:11:50 1998 +0000 @@ -42,7 +42,7 @@ 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.