aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTino Calancha2018-07-29 21:21:40 +0900
committerTino Calancha2018-07-29 21:21:40 +0900
commitb3f7e73fb76a366dc644ee2e6b9f4897c17d201d (patch)
treec77ba17c92d8bc2d4d615946b5b515fad5442896 /doc
parentea1cf0960a86bc373cfd4900f46d9fe5e847941e (diff)
downloademacs-b3f7e73fb76a366dc644ee2e6b9f4897c17d201d.tar.gz
emacs-b3f7e73fb76a366dc644ee2e6b9f4897c17d201d.zip
Prefer ?* to hide passwords
It might be argued that a hidden string is more legible when using ?* as the hidden character instead of ?. For example, the following strings have the same length: "......" "******" It's slighly easier to visually count the number of characters in the second string (Bug#32220). * lisp/subr.el (read-passwd): Prefer ?* as default char instead of ?. * doc/lispref/minibuf.texi (Reading a Password): Update manual. ; * etc/NEWS (Changes in Emacs 27.1): Announce the change.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/minibuf.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 889b64af8ae..d091787a680 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -2199,7 +2199,7 @@ function @code{read-passwd}.
2199@defun read-passwd prompt &optional confirm default 2199@defun read-passwd prompt &optional confirm default
2200This function reads a password, prompting with @var{prompt}. It does 2200This function reads a password, prompting with @var{prompt}. It does
2201not echo the password as the user types it; instead, it echoes 2201not echo the password as the user types it; instead, it echoes
2202@samp{.} for each character in the password. If you want to apply 2202@samp{*} for each character in the password. If you want to apply
2203another character to hide the password, let-bind the variable 2203another character to hide the password, let-bind the variable
2204@code{read-hide-char} with that character. 2204@code{read-hide-char} with that character.
2205 2205