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