tramp-devel
[Top][All Lists]
Advanced

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

How to autoload Tramp methods


From: Eshel Yaron
Subject: How to autoload Tramp methods
Date: Sat, 05 Oct 2024 20:10:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hello Michael, all,

Is it possible to autoload a Tramp method that some extension provides?

My problem is as follows: package foo-tramp defines a Tramp method foo.
It also, for example, provides an autoloaded command foo-dired that
starts Dired in some remote foo directory.  From that Dired buffer I use
C-x C-f to open some other remote file via the same foo method, now I
have a remote foo file name in my file name history.  So far so good.
But then at some point I restart Emacs, and I want to find that remote
file again.  The file name is in my history so I can dig it up with M-p
in the C-x C-f prompt.  However, since I didn't invoke foo-dired or any
command from the foo-tramp package or otherwise loaded that package yet,
Tramp doesn't know about the foo method and I get an error:
"Method ‘foo’ is not known"

Can package foo-tramp somehow arrange to be autoloaded when the foo
method is used?


Thanks,

Eshel



reply via email to

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