Subject: Re: emacs' ange-ftp doesn't work with the ftp client in -current
To: None <codewarrior@daemon.org>
From: Mike Long <mikel@shore.net>
List: current-users
Date: 05/07/1997 18:39:32
>Date: Wed, 7 May 1997 18:27:12 -0400 (EDT)
>From: codewarrior@daemon.org (Andrew Brown)
>
>>> How about checking if the stdin is a tty and defaulting to
>>> 'no command line completion & no progress meter' if not?
>>
>>This seems to me like it would be a reasonable thing to do. I can't
>>think of why it would ever matter, but perhaps the commandline
>>completion should be turned of if stdin isn't a tty, and the progress
>>meter should be turned off if std*out* isn't a tty.
>
>won't work. sorry. emacs, in its attempts to be all-encompassingly
>nice (won't get me wrong, i use it all the time :) actually runs ftp
>off a pty.
>
>so...maybe check to see if ftp's parent is emacs??!
I haven't looked closely at how the progress meter is implemented, but
shouldn't it punt if TERM is unset or set to a dumb terminal? Usually
emacs starts subprocesses with TERM=emacs, and IIRC the termcap for
'emacs' is rather dumb.
--
Mike Long <mikel@shore.net> http://www.shore.net/~mikel
"Every normal man must be tempted at times to spit on his hands,
hoist the black flag, and begin slitting throats." -- H.L. Mencken