[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems with Emacs and FTP [Bug#2281: emacs ange-ftp fails from xterm]



This has been reported as a bug against emacs. I suppose that the patch
will be applied against the Debian emacs package, but you could install
emacs-el and apply the patch yourself.

Austin Donnelly wrote:
> 
> In article <m0tila3-0002c3C@chiark.chu.cam.ac.uk> you write:
> >Package: emacs
> >Version: 19.29-4
> >
> >If Emacs is invoked from an xterm then ange-ftp doesn't work; the FTP
> >program's readline interface produces terminal escape sequences
> >appropriate to TERM=xterm, which it is obviously receiving from Emacs.
> >
> >Emacs should not set TERM=xterm for its subprocesses (it runs ftp in a
> >pty, I believe).
> >
> >Invoking emacs as (bournelike shell)
> > TERM=dumb emacs &
> >works around the problem.
> 
> I filed this one as a bug against emacs ages ago, and got a speedy
> reply from Richard Stallman:
> 
> | From: Richard Stallman <rms@gnu.ai.mit.edu>
> | To: and1000@cam.ac.uk
> | Subject: Re: ange-ftp doesn't set TERM=dumb in inner shell
> | Date: Thu, 7 Dec 1995 01:18:18 -0500
> |
> | Thanks.  Does this fix it?
> |
> | cd ~/e19/lisp/
> | diff -c /rms/e19/lisp/ange-ftp.el.\~1\~ /rms/e19/lisp/ange-ftp.el
> | *** /rms/e19/lisp/ange-ftp.el.~1~     Thu Nov 16 17:27:14 1995
> | --- /rms/e19/lisp/ange-ftp.el Wed Dec  6 18:28:40 1995
> | ***************
> | *** 1778,1784 ****
> |       ;; It would be nice to make process-connection-type nil,
> |       ;; but that doesn't work: ftp never responds.
> |       ;; Can anyone find a fix for that?
> | !     (let ((process-connection-type t))
> |         (if use-gateway
> |         (if ange-ftp-gateway-program-interactive
> |             (setq proc (ange-ftp-gwp-start host user name args))
> | --- 1778,1787 ----
> |       ;; It would be nice to make process-connection-type nil,
> |       ;; but that doesn't work: ftp never responds.
> |       ;; Can anyone find a fix for that?
> | !     (let ((process-connection-type t)
> | !       (process-environment process-environment))
> | !       ;; This tells GNU ftp not to output any fancy escape sequences.
> | !       (setenv "TERM" "dumb")
> |         (if use-gateway
> |         (if ange-ftp-gateway-program-interactive
> |             (setq proc (ange-ftp-gwp-start host user name args))
> |
> | Diff exited abnormally with code 1 at Wed Dec  6 18:48:56

-- 
Jeff Ebert
jebert@earthlink.net
ho-hum


Reply to: