]> git.eshelyaron.com Git - emacs.git/commit
Hide password in batch mode
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 11 Jul 2014 09:09:54 +0000 (11:09 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 11 Jul 2014 09:09:54 +0000 (11:09 +0200)
commitc0ada759210b090944e0a23ed4879ca1a3ad38a7
tree5bc957f5d30cc16af9add35e301e02c5c22bf89a
parent644656aa562a78edf384abd6f4ce80bc930d5547
Hide password in batch mode

* doc/lispref/minibuf.texi (Intro to Minibuffers, Reading a Password):
Password hiding is available in batch mode, do not mention it in
the exclusion list.  Mention `read-hide-char'.

* lisp/subr.el (read-passwd): Use `read-hide-char' if non-nil.  Bind it
when calling `read-string'.

* src/minibuf.c (top): Include systty.h.  Declare external
emacs_get_tty and emacs_set_tty.
(Vread_hide_char): New lisp variable.
(read_minibuf_noninteractive): Hide characters with
Vread_hide_char if it is a character.

* src/sysdep.c (emacs_get_tty, emacs_set_tty): Make them externally visible.

Fixes: debbugs:17839
doc/lispref/ChangeLog
doc/lispref/minibuf.texi
lisp/ChangeLog
lisp/subr.el
src/ChangeLog
src/minibuf.c
src/sysdep.c