aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-03-28 09:28:15 +0000
committerGerd Moellmann2001-03-28 09:28:15 +0000
commit719349f6d0e464d4f71963b87f6bfa08ac630aa7 (patch)
treef65c4de416fafefa06cfdb0676878be767ec5bfe
parent607ec83c511d62037a1dfc5aec2f9fd5e3a57558 (diff)
downloademacs-719349f6d0e464d4f71963b87f6bfa08ac630aa7.tar.gz
emacs-719349f6d0e464d4f71963b87f6bfa08ac630aa7.zip
(read-passwd): Clear command history after each
character entered. From: Stephen Gildea <gildea@alum.mit.edu>.
-rw-r--r--lisp/subr.el2
1 files changed, 1 insertions, 1 deletions
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."
923 (make-string (length pass) ?.)) 923 (make-string (length pass) ?.))
924 (setq c (read-char-exclusive nil t)) 924 (setq c (read-char-exclusive nil t))
925 (and (/= c ?\r) (/= c ?\n) (/= c ?\e))) 925 (and (/= c ?\r) (/= c ?\n) (/= c ?\e)))
926 (clear-this-command-keys)
926 (if (= c ?\C-u) 927 (if (= c ?\C-u)
927 (progn 928 (progn
928 (and (arrayp pass) (fillarray pass ?\0)) 929 (and (arrayp pass) (fillarray pass ?\0))
@@ -938,7 +939,6 @@ Optional DEFAULT is a default password to use instead of empty input."
938 (let ((new-pass (substring pass 0 -1))) 939 (let ((new-pass (substring pass 0 -1)))
939 (and (arrayp pass) (fillarray pass ?\0)) 940 (and (arrayp pass) (fillarray pass ?\0))
940 (setq pass new-pass)))))) 941 (setq pass new-pass))))))
941 (clear-this-command-keys)
942 (message nil) 942 (message nil)
943 (or pass default "")))) 943 (or pass default ""))))
944 944