Mercurial > emacs
diff lisp/subr.el @ 37028:f023c8a482ec
(read-passwd): Clear command history after each
character entered. From: Stephen Gildea <gildea@alum.mit.edu>.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 28 Mar 2001 09:28:15 +0000 |
parents | 80a057b7576b |
children | dec182bcbaa4 |
line wrap: on
line diff
--- a/lisp/subr.el Tue Mar 27 18:02:26 2001 +0000 +++ b/lisp/subr.el Wed Mar 28 09:28:15 2001 +0000 @@ -923,6 +923,7 @@ (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 @@ (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 ""))))