# HG changeset patch # User Gerd Moellmann # Date 985771695 0 # Node ID f023c8a482ec6cd3a593a11ef44a8c4e9e080a1d # Parent 9de32dc27d45620fd9865e799e153571933a127d (read-passwd): Clear command history after each character entered. From: Stephen Gildea . diff -r 9de32dc27d45 -r f023c8a482ec lisp/subr.el --- 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 ""))))