On Apr 20, 2009, at 10:14 AM, Michael Albinus wrote:

David Abrahams <[email protected]> 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))



Yes, of course I can. However, as I wrote, this is not achievable with the customize UI, and I think it's an important enough use case that it should be made possible with customize.

--
David Abrahams
BoostPro Computing
http://boostpro.com






_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to