From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Q on using shell mode remotely Date: Sat, 29 Jul 2006 06:47:27 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154180886 30678 80.91.229.2 (29 Jul 2006 13:48:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Jul 2006 13:48:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 29 15:48:04 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6pAb-0007fn-44 for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Jul 2006 15:47:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6pAa-00040i-LY for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Jul 2006 09:47:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6pAN-0003zu-Qk for help-gnu-emacs@gnu.org; Sat, 29 Jul 2006 09:47:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6pAM-0003x7-3L for help-gnu-emacs@gnu.org; Sat, 29 Jul 2006 09:47:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6pAL-0003x4-Tr for help-gnu-emacs@gnu.org; Sat, 29 Jul 2006 09:47:41 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1G6pCZ-00038R-HC for help-gnu-emacs@gnu.org; Sat, 29 Jul 2006 09:49:59 -0400 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k6T2YsDs019518 for ; Sat, 29 Jul 2006 08:47:40 -0500 Original-Received: from dhcp-amer-csvpn-gw1-141-144-64-116.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 1669678481154180854; Sat, 29 Jul 2006 07:47:34 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36370 Archived-At: > 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. ;-).