From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ramestica@gmail.com Newsgroups: gmane.emacs.help Subject: Re: tramp and how to source remote environment Date: Wed, 4 Mar 2009 20:59:38 -0800 (PST) Organization: http://groups.google.com Message-ID: <0a66d772-a732-405f-b637-a7ecd3d36f7b@e10g2000vbe.googlegroups.com> References: <0d00b462-9d63-43d6-b54d-ea120d2fa50a@l39g2000yqn.googlegroups.com> <8704ba36-37be-4a6e-adc7-82be9b3e330f@f3g2000yqf.googlegroups.com> 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: ger.gmane.org 1236231651 12044 80.91.229.12 (5 Mar 2009 05:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 05:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 05 06:42:08 2009 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.50) id 1Lf6LP-0003e8-9i for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2009 06:42:07 +0100 Original-Received: from localhost ([127.0.0.1]:51458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lf6K3-0007T7-V7 for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2009 00:40:44 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e10g2000vbe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 76.104.20.168 Original-X-Trace: posting.google.com 1236229179 346 127.0.0.1 (5 Mar 2009 04:59:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 5 Mar 2009 04:59:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e10g2000vbe.googlegroups.com; posting-host=76.104.20.168; posting-account=GyIV7QoAAACC7zm6nA92JhktCMy0igbg User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167305 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:62596 Archived-At: On Mar 3, 11:36=A0am, Michael Albinus wrote: > Tramp has the variable tramp-remote-path. You can add there your > preferred paths, like > > (add-to-list 'tramp-remote-path "/my/path" 'append) this is not convenient because different machines have different paths. The logic for setting up those paths (based on the machine name) is part of my remote bash_profile. Repeating that logic in my local emacs configuration its simply not good. > Maybe the following works (not tested): > > (add-to-list 'tramp-remote-path "${PATH}") This does not work because in tramp-get-remote-path the function delq removes "${PATH}" from remote-path. Rodrigo