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 and how to source remote environment Date: Tue, 03 Mar 2009 17:36:17 +0100 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=us-ascii X-Trace: ger.gmane.org 1236098131 15038 80.91.229.12 (3 Mar 2009 16:35:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2009 16:35:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: ramestica@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 17:36:40 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 1LeXbA-0008OR-Ps for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 17:36:05 +0100 Original-Received: from localhost ([127.0.0.1]:43844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeXZp-0002Uf-Lx for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 11:34:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeXZB-0002N1-Gq for help-gnu-emacs@gnu.org; Tue, 03 Mar 2009 11:34:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeXZ9-0002Lj-I1 for help-gnu-emacs@gnu.org; Tue, 03 Mar 2009 11:34:00 -0500 Original-Received: from [199.232.76.173] (port=48878 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeXZ9-0002LS-3d for help-gnu-emacs@gnu.org; Tue, 03 Mar 2009 11:33:59 -0500 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]:46015) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LeXZ8-0000oi-5K for help-gnu-emacs@gnu.org; Tue, 03 Mar 2009 11:33:58 -0500 Original-Received: from slbhab.alcatel.de (slbhab.de.alcatel-lucent.com [149.204.245.33]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id n23GXr50026254; Tue, 3 Mar 2009 17:33:53 +0100 In-Reply-To: (ramestica@gmail.com's message of "Thu\, 26 Feb 2009 18\:18\:02 -0800 \(PST\)") User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 2) 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:62555 Archived-At: ramestica@gmail.com writes: > Hi Michael, Hi Rodrigo, > 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. Tramp has the variable tramp-remote-path. You can add there your preferred paths, like (add-to-list 'tramp-remote-path "/my/path" 'append) > On the other hand, if in tramp-set-remote-path I replace > > "PATH=%s; export PATH" > > by > > "PATH=${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. Maybe the following works (not tested): (add-to-list 'tramp-remote-path "${PATH}") > thanks, > Rodrigo Best regards, Michael.