[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to autoload Tramp methods
From: |
Michael Albinus |
Subject: |
Re: How to autoload Tramp methods |
Date: |
Wed, 09 Oct 2024 08:52:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eshel Yaron <me@eshelyaron.com> writes:
Hi Eshel,
>> Then use
>>
>> ;;;###autoload
>> (with-eval-after-load 'tramp
>> (tramp-enable-method "foo"))
>>
>> instead. Everything untested, of course.
>
> This is more or less what the extensions you referred to seem to do.
> I'm looking for a more refined solution: a way to load an extension only
> if and when the method it provides is actually used, not as soon as
> Tramp is loaded. I might indeed use this approach until I find
> something better, though.
The extension (foo-tramp) isn't loaded when Tramp is loaded. My code
snippets use autoloads therefore.
> Best,
>
> Eshel
Best regards, Michael.
- How to autoload Tramp methods, Eshel Yaron, 2024/10/05
- Re: How to autoload Tramp methods, Michael Albinus, 2024/10/08
- Re: How to autoload Tramp methods, Eshel Yaron, 2024/10/08
- Re: How to autoload Tramp methods, Michael Albinus, 2024/10/08
- Re: How to autoload Tramp methods, Eshel Yaron, 2024/10/08
- Re: How to autoload Tramp methods, Michael Albinus, 2024/10/08
- Re: How to autoload Tramp methods, Eshel Yaron, 2024/10/08
- Re: How to autoload Tramp methods, Michael Albinus, 2024/10/08
- Re: How to autoload Tramp methods, Eshel Yaron, 2024/10/09
- Re: How to autoload Tramp methods,
Michael Albinus <=