emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 ac3622c: Improve documentation of 'read-hide-char


From: Charles A. Roelli
Subject: [Emacs-diffs] emacs-26 ac3622c: Improve documentation of 'read-hide-char'
Date: Wed, 3 Oct 2018 13:57:06 -0400 (EDT)

branch: emacs-26
commit ac3622c81acb93fa340a1e0e73188b1587b3970a
Author: Charles A. Roelli <address@hidden>
Commit: Charles A. Roelli <address@hidden>

    Improve documentation of 'read-hide-char'
    
    * src/minibuf.c (syms_of_minibuf) <Vread_hide_char>: Clarify
    documentation and mention where else the variable is used.
    * doc/lispref/minibuf.texi (Reading a Password): Add an index
    entry for 'read-hide-char'.
---
 doc/lispref/minibuf.texi | 1 +
 src/minibuf.c            | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 2951ef5..97797d0 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -2236,6 +2236,7 @@ Here is an example of using this function:
   To read a password to pass to another program, you can use the
 function @code{read-passwd}.
 
address@hidden read-hide-char
 @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
diff --git a/src/minibuf.c b/src/minibuf.c
index 691fad0..f1bde91 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -2107,8 +2107,11 @@ properties.  */);
 
   DEFVAR_LISP ("read-hide-char", Vread_hide_char,
               doc: /* Whether to hide input characters in noninteractive mode.
-It must be a character, which will be used to mask the input
-characters.  This variable should never be set globally.  */);
+If non-nil, it must be a character, which will be used to mask the
+input characters.  This variable should never be set globally.
+
+This variable also overrides the default character that `read-passwd'
+uses to hide passwords.  */);
   Vread_hide_char = Qnil;
 
   defsubr (&Sactive_minibuffer_window);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]