aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-07-29 16:27:49 +0000
committerRichard M. Stallman1996-07-29 16:27:49 +0000
commit4cf1b2e5764dce39100211cc57010ea02cec22bd (patch)
treef6064b92f4fcb8e23b758338e4e4133c2329a708
parente0e0205b0271c4de43123aaf338a94f4e771e232 (diff)
downloademacs-4cf1b2e5764dce39100211cc57010ea02cec22bd.tar.gz
emacs-4cf1b2e5764dce39100211cc57010ea02cec22bd.zip
(ange-ftp-read-passwd): Let first input override
default, and let RET use the default value. (ange-ftp-get-passwd): Make prompt clearer.
-rw-r--r--lisp/ange-ftp.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 634726892e1..d0dae527cc9 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -1008,7 +1008,7 @@ only return the directory part of FILE."
1008 "Read a password, echoing `.' for each character typed. 1008 "Read a password, echoing `.' for each character typed.
1009End with RET, LFD, or ESC. DEL or C-h rubs out. C-u kills line. 1009End with RET, LFD, or ESC. DEL or C-h rubs out. C-u kills line.
1010Optional DEFAULT is password to start with." 1010Optional DEFAULT is password to start with."
1011 (let ((pass (if default default "")) 1011 (let ((pass nil)
1012 (c 0) 1012 (c 0)
1013 (echo-keystrokes 0) 1013 (echo-keystrokes 0)
1014 (cursor-in-echo-area t)) 1014 (cursor-in-echo-area t))
@@ -1025,7 +1025,7 @@ Optional DEFAULT is password to start with."
1025 (setq pass (substring pass 0 -1)))))) 1025 (setq pass (substring pass 0 -1))))))
1026 (message "") 1026 (message "")
1027 (ange-ftp-repaint-minibuffer) 1027 (ange-ftp-repaint-minibuffer)
1028 pass)) 1028 (or pass default "")))
1029 1029
1030(defmacro ange-ftp-generate-passwd-key (host user) 1030(defmacro ange-ftp-generate-passwd-key (host user)
1031 (` (concat (, host) "/" (, user)))) 1031 (` (concat (, host) "/" (, user))))
@@ -1102,7 +1102,7 @@ Optional DEFAULT is password to start with."
1102 ;; found another machine with the same user. 1102 ;; found another machine with the same user.
1103 ;; Try that account. 1103 ;; Try that account.
1104 (ange-ftp-read-passwd 1104 (ange-ftp-read-passwd
1105 (format "passwd for %s@%s (same as %s@%s): " 1105 (format "passwd for %s@%s (default same as %s@%s): "
1106 user host user other) 1106 user host user other)
1107 (ange-ftp-lookup-passwd other user)) 1107 (ange-ftp-lookup-passwd other user))
1108 1108