From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp: how to set path to remote shell? Date: Mon, 14 Mar 2011 10:59:15 +0100 Message-ID: <878vwiqaz0.fsf@gmx.de> References: <8315aace-c2c4-4efb-9d3a-a916b13071f2@d26g2000prn.googlegroups.com> <87aagz1jxs.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300096867 30501 80.91.229.12 (14 Mar 2011 10:01:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 10:01:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ethan Brown Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 11:01:02 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pz4aD-0002kz-H1 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 11:01:01 +0100 Original-Received: from localhost ([127.0.0.1]:40522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz4aB-00053o-Ed for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 06:00:59 -0400 Original-Received: from [140.186.70.92] (port=60050 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz4Ye-0004WZ-G6 for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 05:59:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pz4Yc-0005IL-LH for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 05:59:23 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:57155) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pz4Yc-0005HI-1X for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 05:59:22 -0400 Original-Received: (qmail invoked by alias); 14 Mar 2011 09:59:17 -0000 Original-Received: from p57BB9284.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.146.132] by mail.gmx.net (mp037) with SMTP; 14 Mar 2011 10:59:17 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19F5IkXGF9FLLdqMcDjSdbVx8DQ91ZvDfEuLoE/a0 b0+vXP6hLQSgNB In-Reply-To: (Ethan Brown's message of "Sun, 13 Mar 2011 13:29:17 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.23 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:80083 Archived-At: Ethan Brown writes: > Hi Michael Hi Ethan, > Thanks so much for your quick response. You are correct that I'm > running "M-x shell". I suppose I'll need to write a bit of code to > toggle the shell path so I can reset it to the local path when I'm > running "M-x shell" locally instead of remotely. Too bad there isn't > something to set that works only in the tramp context. Tramp cannot do anything in this context; it is just a set of basic functions which are called when you're on a remote host. It does not know the context. I have applied a patch to Emacs' trunk (aka Emacs 24). When "M-x shell" is called interactively, and you're on a remote host, you will be asked for the shell path to be used. > --Ethan Best regards, Michael.