unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Q on using shell mode remotely
Date: Sat, 29 Jul 2006 06:47:27 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICIEBEDIAA.drew.adams@oracle.com> (raw)
In-Reply-To: <uac6sdd4v.fsf@gnu.org>

    > If Emacs can see the remote files, then Emacs (and ftp) could
    > interface them to the local shell.

    M-x shell simply runs a local shell as a subprocess, making its input
    come from what you type in the buffer, and its output redirected to a
    pipe that feeds the buffer.  But the program which does the job when
    you type "cd" is still the local shell, not Emacs.  So it's the shell
    that needs to support some kind of remote file syntax, or else Emacs
    will have no way of communicating to the shell that it (the shell)
    should work on remote files.

If the shell is simply plugged in directly, then the shell is simply plugged
in directly. QED.

However, if cd can be interpreted by Emacs in other buffers to support
remote file syntax, then Emacs could do the same in a shell buffer. I'm not
saying it would be easy to do that, or that other problems wouldn't arise if
that were done, but input could be prefiltered and interpreted by Emacs,
before sending it to the shell process. IOW, instead of simply redirecting
input from the buffer, an intermediary could massage the input. No, I'm not
proposing an implementation; maybe someone else will ;-). If Tarantella can
do it, Emacs can do it better, I figure. ;-).

  reply	other threads:[~2006-07-29 13:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4613.1154122648.9609.help-gnu-emacs@gnu.org>
2006-07-28 21:46 ` Q on using shell mode remotely David Kastrup
2006-07-28 22:56   ` Drew Adams
2006-07-29  8:33     ` Eli Zaretskii
2006-07-29 13:47       ` Drew Adams [this message]
2006-07-28 21:33 Drew Adams
2006-07-28 21:37 ` Drew Adams
2006-07-31 15:09 ` Kevin Rodgers
2006-07-31 16:35   ` Drew Adams
2006-07-31 17:51     ` Kevin Rodgers
2006-07-31 18:05       ` Drew Adams
2006-08-01 23:52         ` Kevin Rodgers
2006-08-02 15:42           ` Drew Adams
2006-08-02 16:33             ` Drew Adams
2006-08-04  8:00             ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICIEBEDIAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).