[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp (2.1.15-pre); [Feature Request] Multihop sudo
From: |
Michael Albinus |
Subject: |
Re: tramp (2.1.15-pre); [Feature Request] Multihop sudo |
Date: |
Mon, 20 Apr 2009 16:14:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
David Abrahams <address@hidden> writes:
>>> OK, this is *almost* what I needed. I really want a way to say
>>> *don't
>>> multihop when it's localhost*, so I can have a fallback rule that
>>> uses
>>> `.+' as the pattern for the hostname. Any chance of that one?
>>
>> What about
>>
>> (add-to-list 'tramp-default-proxies-alist
>> '("\\`localhost\\'" nil nil))
>>
>> as first rule in `tramp-default-proxies-alist'?
>
>
> Unfortunately, that won't match because TRAMP seems to use the result of
>
> $ hostname
But that's the same as (system-name) in ELisp. So you can write
(add-to-list 'tramp-default-proxies-alist
`(,(format "\\`%s\\'" (system-name)) nil nil))
> David Abrahams
Best regards, Michael.