aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorGlenn Morris2014-06-26 15:00:42 -0400
committerGlenn Morris2014-06-26 15:00:42 -0400
commit64c3533166e1fa517422f89f953cfdaea6ee7bf0 (patch)
treeb317a5770db12cd74bbef35757965878b88b158e /doc/lispref
parent2493e35c369caabf6a65e376fd0399e95b588bfd (diff)
downloademacs-64c3533166e1fa517422f89f953cfdaea6ee7bf0.tar.gz
emacs-64c3533166e1fa517422f89f953cfdaea6ee7bf0.zip
Warn about read-passwd in batch mode
* doc/lispref/minibuf.texi (Intro to Minibuffers): Batch mode is basic. (Reading a Password): Mention batch mode. * lisp/subr.el (read-passwd): Warn about batch mode. Fixes: debbugs:17839
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/minibuf.texi7
2 files changed, 10 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 4610c33796a..6b673e7f329 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12014-06-26 Glenn Morris <rgm@gnu.org>
2
3 * minibuf.texi (Intro to Minibuffers): Batch mode is basic.
4 (Reading a Password): Mention batch mode. (Bug#17839)
5
12014-06-21 Eli Zaretskii <eliz@gnu.org> 62014-06-21 Eli Zaretskii <eliz@gnu.org>
2 7
3 * positions.texi (Screen Lines): Clarify how columns are counted 8 * positions.texi (Screen Lines): Clarify how columns are counted
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 5b4e29c57a3..4a94f41d732 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -101,7 +101,9 @@ the minibuffer is in a separate frame. @xref{Minibuffers and Frames}.
101 101
102 When Emacs is running in batch mode, any request to read from the 102 When Emacs is running in batch mode, any request to read from the
103minibuffer actually reads a line from the standard input descriptor that 103minibuffer actually reads a line from the standard input descriptor that
104was supplied when Emacs was started. 104was supplied when Emacs was started. This supports only basic input:
105none of the special minibuffer features (history, completion,
106password hiding, etc.) are available in batch mode.
105 107
106@node Text from Minibuffer 108@node Text from Minibuffer
107@section Reading Text Strings with the Minibuffer 109@section Reading Text Strings with the Minibuffer
@@ -2123,7 +2125,8 @@ function @code{read-passwd}.
2123@defun read-passwd prompt &optional confirm default 2125@defun read-passwd prompt &optional confirm default
2124This function reads a password, prompting with @var{prompt}. It does 2126This function reads a password, prompting with @var{prompt}. It does
2125not echo the password as the user types it; instead, it echoes @samp{.} 2127not echo the password as the user types it; instead, it echoes @samp{.}
2126for each character in the password. 2128for each character in the password. (Note that in batch mode, the
2129input is not hidden.)
2127 2130
2128The optional argument @var{confirm}, if non-@code{nil}, says to read the 2131The optional argument @var{confirm}, if non-@code{nil}, says to read the
2129password twice and insist it must be the same both times. If it isn't 2132password twice and insist it must be the same both times. If it isn't