From: Gerd Moellmann Date: Wed, 28 Mar 2001 09:28:15 +0000 (+0000) Subject: (read-passwd): Clear command history after each X-Git-Tag: emacs-pretest-21.0.101~141 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=719349f6d0e464d4f71963b87f6bfa08ac630aa7;p=emacs.git (read-passwd): Clear command history after each character entered. From: Stephen Gildea . --- diff --git a/lisp/subr.el b/lisp/subr.el index 1a2ac5df1cd..eb55b416a92 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 ""))))