diff lisp/ange-ftp.el @ 4498:c050d8a0c3db

(ange-ftp-send-cmd): Bind ange-ftp-this-... in the outermost let, not an inner one.
author Richard M. Stallman <rms@gnu.org>
date Mon, 09 Aug 1993 05:03:17 +0000
parents 05a314aafd74
children 8db3c141cb62
line wrap: on
line diff
--- a/lisp/ange-ftp.el	Mon Aug 09 04:36:47 1993 +0000
+++ b/lisp/ange-ftp.el	Mon Aug 09 05:03:17 1993 +0000
@@ -856,7 +856,7 @@
 ;;;; Internal variables.
 ;;;; ------------------------------------------------------------
 
-(defconst ange-ftp-version "$Revision: 1.30 $")
+(defconst ange-ftp-version "$Revision: 1.31 $")
 
 (defvar ange-ftp-data-buffer-name " *ftp data*"
   "Buffer name to hold directory listing data received from ftp process.")
@@ -1975,6 +1975,9 @@
   ;; capability.
   (let ((cmd0 (car cmd))
 	(cmd1 (nth 1 cmd))
+	(ange-ftp-this-user user)
+	(ange-ftp-this-host host)
+	(ange-ftp-this-msg msg)
 	cmd2 cmd3 host-type fix-name-func)
 
     (cond
@@ -2006,9 +2009,7 @@
 		cmd1 (format "\"%s %s\"" cmd3 cmd1))))
      
      ;; First argument is the remote name
-     ((let ((ange-ftp-this-user user)
-	    (ange-ftp-this-host host)
-	    (ange-ftp-this-msg msg))
+     ((progn
 	(setq fix-name-func (or (cdr (assq host-type
 					   ange-ftp-fix-name-func-alist))
 				'identity))
@@ -5090,7 +5091,7 @@
 ;;;; ------------------------------------------------------------
 
 ;; Since CMS doesn't have any full file name syntax, we have to fudge
-;; things with cd's. We actually send too many cd's, but is dangerous
+;; things with cd's. We actually send too many cd's, but it's dangerous
 ;; to try to remember the current minidisk, because if the connection
 ;; is closed and needs to be reopened, we will find ourselves back in
 ;; the default minidisk. This is fairly likely since CMS ftp servers