# HG changeset patch # User Richard M. Stallman # Date 838657669 0 # Node ID a745f54990f5631c4083909a2a0fd5cfbd4b5a93 # Parent 24c31fcbcf97425d8229509f5139e19c1ddbc73f (ange-ftp-read-passwd): Let first input override default, and let RET use the default value. (ange-ftp-get-passwd): Make prompt clearer. diff -r 24c31fcbcf97 -r a745f54990f5 lisp/ange-ftp.el --- a/lisp/ange-ftp.el Mon Jul 29 04:21:23 1996 +0000 +++ b/lisp/ange-ftp.el Mon Jul 29 16:27:49 1996 +0000 @@ -1008,7 +1008,7 @@ "Read a password, echoing `.' for each character typed. End with RET, LFD, or ESC. DEL or C-h rubs out. C-u kills line. Optional DEFAULT is password to start with." - (let ((pass (if default default "")) + (let ((pass nil) (c 0) (echo-keystrokes 0) (cursor-in-echo-area t)) @@ -1025,7 +1025,7 @@ (setq pass (substring pass 0 -1)))))) (message "") (ange-ftp-repaint-minibuffer) - pass)) + (or pass default ""))) (defmacro ange-ftp-generate-passwd-key (host user) (` (concat (, host) "/" (, user)))) @@ -1102,7 +1102,7 @@ ;; found another machine with the same user. ;; Try that account. (ange-ftp-read-passwd - (format "passwd for %s@%s (same as %s@%s): " + (format "passwd for %s@%s (default same as %s@%s): " user host user other) (ange-ftp-lookup-passwd other user))