[gnu.emacs] remote file visiting?

crew@CS.Stanford.EDU (Roger Crew) (10/14/89)

here's something on my wish list:

Let's say I'm logged in at hosta and running emacs and I want to edit
a file sitting on my account on hostb.  

Now, I know about ftp-find-file, ftp-write-file, etc..., 
What I was wondering is if someone has done something similar for
the rsh-derived routines (let's also assume that all of
the right .rhosts files are in place).

I would prefer something that, to the extent that this is possible,
sets up the buffers so that I can pretend I'm editing a local file
(this includes doing a reasonable subset of the various checks that
find-file does, setting up the auto-saving in a intelligent manner,
and so on...).

The next (trivial) step is a general find-file(-noselect) that can
recognize that for, e.g., "hostb:src/foo/whatever", it should invoke
the remote routine.

Seems to me I can't be the first person who's thought of doing this.

--
Roger Crew      OBEY     MARRY AND REPRODUCE      CONSUME      STAY ASLEEP
Usenet:    {arpa gateways, decwrl, uunet, rutgers}!polya.stanford.edu!crew
Internet:  crew@polya.Stanford.EDU      

rodney@sun.ipl.rpi.edu (Rodney Peck II) (10/14/89)

>>>>> On 14 Oct 89 05:25:40 GMT, crew@CS.Stanford.EDU (Roger Crew) said:

Roger> here's something on my wish list:

Roger> Let's say I'm logged in at hosta and running emacs and I want to edit
Roger> a file sitting on my account on hostb.  

Roger> I would prefer something that, to the extent that this is possible,
Roger> sets up the buffers so that I can pretend I'm editing a local file
Roger> (this includes doing a reasonable subset of the various checks that
Roger> find-file does, setting up the auto-saving in a intelligent manner,
Roger> and so on...).

Roger> The next (trivial) step is a general find-file(-noselect) that can
Roger> recognize that for, e.g., "hostb:src/foo/whatever", it should invoke
Roger> the remote routine.

Roger> Seems to me I can't be the first person who's thought of doing this.

The TI/Explorer and Symbolics Lisp Machines have this feature in
Zmacs.  IT would be a WONDERFUL thing to have it in emacs on unix.

In fact, it should probably try to use the rsh once if it can login
using the .rhosts, then use ftp and the .ftprc and then ask for a
password for the machine if all else fails.  Then, failing that, make
it use anonymous ftp -- why not?

Then you could use Dired to peruse your favorite ftp archives and just
`c' to copy them to your local directory.  


--
Rodney

ds@hollin.prime.com (10/17/89)

I, too, have wished for transparent EMACS buffers connected to my account on
remote systems not running NFS, and I too imagine that someone somewhere must
be working on this.

I have also wished for single-character remote telnet connections, so I could
run EMACS on a remote machine from inside a local EMACS window.

I conjecture that writing such extensions may be difficult because of various
UNIX (tm) limitations, such as the failure of some implementations of rsh and
its C library counterparts to pass through the error code returned by the
command executed in the remote process, default buffering differences between
stdout and stderr that can cause output to be shuffled into an unexpected
order, well-intentioned security limitations on creating or managing remote
processes, the lack of an ASCII map for specifying which characters are to be
buffered locally (usually printing chars and space) and which should cause a
transfer and wakeup the process (usually LF and other control chars), etc.

PS - I wrote an extension to the EMACS telnet command that automatically logs
me into the remote system (useful when the system's UNIX disallows automatic
telnet login), but the telnet command is not the same as transparent
buffering.

David Spector
Prime Computer, Inc.
ds@primerd.prime.com (until the layoff)

stg@cs.warwick.ac.uk (Steve Gaito) (10/17/89)

I have noticed a number of requests for editing of files on remote
machines from with in emacs...  try remote.el by Eric L. Raible.

on Sept 15 he posted the following notice:

>remote.el has been fixed up a little more, mostly in the area of
>support for different usernames on different machines.

>In any event, the latest version is available for anonymous ftp from
>orville.nas.nasa.gov.

>I will try to always keep an up-to-date version on orville.

>- Eric

While this package does not have ftp and telnet ability IT does have a
transparent rcp facility and should be the basis of any further hacks!

(To use EMACS within EMACS try M-x terminal.... not the best possible
but it does work)

--
Steve Gaito
Bitnet: stg%uk.ac.warwick.maths@UKACRL
 

--
Stephen Gaito

--------------------------------------------
JANET:        stg@uk.ac.warwick.maths
BITNET/EARN:  stg%uk.ac.warwick.maths@UKACRL

Mail:         Mathematics Institute
              University of Warwick
              Coventry  UK
                 CV4 7AL

Phone:        (0203) 523523 ext 2662  (work)
--------------------------------------------