[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp and how to source remote environment

From: Michael Albinus
Subject: Re: tramp and how to source remote environment
Date: Thu, 05 Mar 2009 15:05:42 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/21.3 (hpux)

address@hidden writes:

> On Mar 3, 11:36 am, Michael Albinus <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]