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: Thu, 26 Feb 2009 18:18:02 -0800 (PST) Organization: http://groups.google.com Message-ID: 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 1235702449 31426 80.91.229.12 (27 Feb 2009 02:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2009 02:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 03:42:05 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 1Lcsfs-0007mo-GD for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Feb 2009 03:42:05 +0100 Original-Received: from localhost ([127.0.0.1]:52788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcseX-0000nM-Ow for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Feb 2009 21:40:41 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!41g2000yqf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 76.104.20.168 Original-X-Trace: posting.google.com 1235701082 16133 127.0.0.1 (27 Feb 2009 02:18:02 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 27 Feb 2009 02:18:02 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 41g2000yqf.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:167120 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:62419 Archived-At: On Feb 18, 4:30=A0pm, Michael Albinus wrote: > Please check the Tramp manual, (info "(tramp)Remote Programs") Hi Michael, reading the manual does not seem to help me. Looking into tramp.el the problem (my problem) seems to be that tramp does not respect whatever my PATH is set to during the login process (in my case within .bash_profile). Perhaps there is in the lisp code of tramp-get-remote-path (used by tramp-set-remote-path to actually set the path) something that I'm not understanding. Too much lisp there for me. On the other hand, if in tramp-set-remote-path I replace "PATH=3D%s; export PATH" by "PATH=3D${PATH}:%s; export PATH" then things start to work the way I want it! My PATH (crafted within my .bash_profile) is now preserved and now I can actually compile. Is there something I missed about how to configure tramp or does tramp simply not work the way I want it? thanks, Rodrigo