all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: ramestica@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: tramp and how to source remote environment
Date: Thu, 05 Mar 2009 15:05:42 +0100	[thread overview]
Message-ID: <nqr61cqd3d.fsf@alcatel-lucent.de> (raw)
In-Reply-To: <0a66d772-a732-405f-b637-a7ecd3d36f7b@e10g2000vbe.googlegroups.com> (ramestica@gmail.com's message of "Wed\, 4 Mar 2009 20\:59\:38 -0800 \(PST\)")

ramestica@gmail.com writes:

> On Mar 3, 11:36 am, Michael Albinus <michael.albi...@gmx.de> 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.

That's right. Tramp is not designed for that case. Maybe I shall
extend it this way ...

>> 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.

I don't understand. Do you mean this line:

(setq remote-path (delq 'tramp-default-remote-path remote-path)))

This deletes the *symbol* `tramp-default-remote-path', and nothing else.

> Rodrigo

Best regards, Michael.





  reply	other threads:[~2009-03-05 14:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-18  1:17 tramp and how to source remote environment ramestica
2009-02-18  1:43 ` ramestica
2009-02-18 21:30   ` Michael Albinus
     [not found]   ` <mailman.1109.1234992614.31690.help-gnu-emacs@gnu.org>
2009-02-27  2:18     ` ramestica
2009-03-03 16:36       ` Michael Albinus
     [not found]       ` <mailman.2278.1236098043.31690.help-gnu-emacs@gnu.org>
2009-03-05  4:59         ` ramestica
2009-03-05 14:05           ` Michael Albinus [this message]
     [not found]           ` <mailman.2422.1236261821.31690.help-gnu-emacs@gnu.org>
2009-03-05 14:49             ` ramestica
2009-03-17 20:25               ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nqr61cqd3d.fsf@alcatel-lucent.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ramestica@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.