From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ethan Brown Newsgroups: gmane.emacs.help Subject: Re: Tramp: how to set path to remote shell? Date: Mon, 14 Mar 2011 07:24:37 -0700 Message-ID: References: <8315aace-c2c4-4efb-9d3a-a916b13071f2@d26g2000prn.googlegroups.com> <87aagz1jxs.fsf@gmx.de> <878vwiqaz0.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300113075 26938 80.91.229.12 (14 Mar 2011 14:31:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 14:31:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 15:31:10 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 1Pz8nX-00086D-04 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 15:31:10 +0100 Original-Received: from localhost ([127.0.0.1]:54422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz8nQ-0008Os-D7 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 10:30:56 -0400 Original-Received: from [140.186.70.92] (port=50825 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz8hW-0005ks-Tr for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 10:24:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pz8hK-0003xx-H4 for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 10:24:39 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:40281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pz8hK-0003xr-90 for help-gnu-emacs@gnu.org; Mon, 14 Mar 2011 10:24:38 -0400 Original-Received: by yxt33 with SMTP id 33so2718308yxt.0 for ; Mon, 14 Mar 2011 07:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=pR7YQUrJAEX3b7K0aobPCBPmfxGqEKqr40al8jD0Ytc=; b=xP/ng2kLR+msRXNYZNEb/pvEy4FR9BEqnXeWVNLqH8rhdy23IPPt7CRxATuG8tx4gw F1wn9ByRR49lWShuGWOHNX1eTvNgcfNCvx4oAvCg11ySMXIkqZwVAneFYUFyHXN4ViyM LC2PrIecs7M7WOdt7ZwnsqZKMuJTkXklK9ezQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RXlk4UOD1uHC3csQo0dv82V+AX3J7kjeRzVh2fMEZ7hpvHRd8X5SW8pEWOfsKnCqS/ KMfXwph+LpRWO06Ky1RCSAab3/IyBcZ29OaqpbW4jErESPbymUysRexTsP67lJo+qxe9 1HGmMU2dD0Wvxd8HSU/0oU8EKQ76ywdA0l6cI= Original-Received: by 10.236.27.3 with SMTP id d3mr6153224yha.78.1300112677660; Mon, 14 Mar 2011 07:24:37 -0700 (PDT) Original-Received: by 10.236.105.228 with HTTP; Mon, 14 Mar 2011 07:24:37 -0700 (PDT) In-Reply-To: <878vwiqaz0.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.169 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:80092 Archived-At: On Mon, Mar 14, 2011 at 2:59 AM, Michael Albinus w= rote: > Ethan Brown writes: > >> Hi Michael > > Hi Ethan, > >> Thanks so much for your quick response. =A0You are correct that I'm >> running "M-x shell". =A0I 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. =A0Too 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. > Thanks Michael. I should also mention to you how much I appreciate having the tramp functionality. Just one more feature that makes Emacs a joy to use. All my best, --Ethan