diff options
| author | Karl Heuer | 1995-12-21 17:30:47 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-12-21 17:30:47 +0000 |
| commit | 560fcebc15dbfff239add814f75d062158cc5893 (patch) | |
| tree | 9f12091041c826802f719aa32e4d3dca1aa92d52 | |
| parent | 6b4eb5930d41f6b188935e2c3a1e6b4f324365e8 (diff) | |
| download | emacs-560fcebc15dbfff239add814f75d062158cc5893.tar.gz emacs-560fcebc15dbfff239add814f75d062158cc5893.zip | |
(ange-ftp-load): Added missing form to `cdr' down
tryfiles in `while' loop.
(ange-ftp-start-process): Bind env var TERM to dumb.
| -rw-r--r-- | lisp/ange-ftp.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el index 4ad8564bc70..d93a3735d8c 100644 --- a/lisp/ange-ftp.el +++ b/lisp/ange-ftp.el | |||
| @@ -1778,7 +1778,10 @@ on the gateway machine to do the ftp instead." | |||
| 1778 | ;; It would be nice to make process-connection-type nil, | 1778 | ;; It would be nice to make process-connection-type nil, |
| 1779 | ;; but that doesn't work: ftp never responds. | 1779 | ;; but that doesn't work: ftp never responds. |
| 1780 | ;; Can anyone find a fix for that? | 1780 | ;; Can anyone find a fix for that? |
| 1781 | (let ((process-connection-type t)) | 1781 | (let ((process-connection-type t) |
| 1782 | (process-environment process-environment)) | ||
| 1783 | ;; This tells GNU ftp not to output any fancy escape sequences. | ||
| 1784 | (setenv "TERM" "dumb") | ||
| 1782 | (if use-gateway | 1785 | (if use-gateway |
| 1783 | (if ange-ftp-gateway-program-interactive | 1786 | (if ange-ftp-gateway-program-interactive |
| 1784 | (setq proc (ange-ftp-gwp-start host user name args)) | 1787 | (setq proc (ange-ftp-gwp-start host user name args)) |
| @@ -3703,7 +3706,8 @@ system TYPE.") | |||
| 3703 | (while (and tryfiles (not copy)) | 3706 | (while (and tryfiles (not copy)) |
| 3704 | (condition-case error | 3707 | (condition-case error |
| 3705 | (setq copy (ange-ftp-file-local-copy (car tryfiles))) | 3708 | (setq copy (ange-ftp-file-local-copy (car tryfiles))) |
| 3706 | (ftp-error nil))) | 3709 | (ftp-error nil)) |
| 3710 | (setq tryfiles (cdr tryfiles))) | ||
| 3707 | (if copy | 3711 | (if copy |
| 3708 | (unwind-protect | 3712 | (unwind-protect |
| 3709 | (funcall 'load copy noerror nomessage nosuffix) | 3713 | (funcall 'load copy noerror nomessage nosuffix) |