comparison lisp/ange-ftp.el @ 13789:7ccb22bca972

(ange-ftp-load): Added missing form to `cdr' down tryfiles in `while' loop. (ange-ftp-start-process): Bind env var TERM to dumb.
author Karl Heuer <kwzh@gnu.org>
date Thu, 21 Dec 1995 17:30:47 +0000
parents b7cb31d324cf
children 187735b53d52
comparison
equal deleted inserted replaced
13788:9cba53e85252 13789:7ccb22bca972
1776 exec-directory)) 1776 exec-directory))
1777 proc) 1777 proc)
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))
1785 (setq proc (apply 'start-process name name 1788 (setq proc (apply 'start-process name name
1786 (append (list ange-ftp-gateway-program 1789 (append (list ange-ftp-gateway-program
3701 (list (concat file ".elc") (concat file ".el") file))) 3704 (list (concat file ".elc") (concat file ".el") file)))
3702 copy) 3705 copy)
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)
3710 (delete-file copy)) 3714 (delete-file copy))
3711 (or noerror 3715 (or noerror