aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2001-03-28 09:28:15 +0000
committerGerd Moellmann <[email protected]>2001-03-28 09:28:15 +0000
commit719349f6d0e464d4f71963b87f6bfa08ac630aa7 (patch)
treef65c4de416fafefa06cfdb0676878be767ec5bfe /lisp
parent607ec83c511d62037a1dfc5aec2f9fd5e3a57558 (diff)
(read-passwd): Clear command history after each
character entered. From: Stephen Gildea <[email protected]>.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 1a2ac5df1c..eb55b416a9 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -923,6 +923,7 @@ Optional DEFAULT is a default password to use instead of empty input."
(make-string (length pass) ?.))
(setq c (read-char-exclusive nil t))
(and (/= c ?\r) (/= c ?\n) (/= c ?\e)))
+ (clear-this-command-keys)
(if (= c ?\C-u)
(progn
(and (arrayp pass) (fillarray pass ?\0))
@@ -938,7 +939,6 @@ Optional DEFAULT is a default password to use instead of empty input."
(let ((new-pass (substring pass 0 -1)))
(and (arrayp pass) (fillarray pass ?\0))
(setq pass new-pass))))))
- (clear-this-command-keys)
(message nil)
(or pass default ""))))