Hi Michael, Michael Albinus <[email protected]> writes:
> Eshel Yaron <[email protected]> writes: > > [...] > >> What I meant was allowing tramp-login-program in tramp-methods to be a >> function, instead of doing that in tramp-connection-properties. >> That way we wouldn't have to touch tramp-connection-properties in the >> method definition, just tramp-methods. > > Thanks for the heads-up, this is the right direction. We have already > format characters in tramp-methods, which are expanded. I have appended > a patch which does it also for tramp-login-program. > > The second patch is for kubed-tramp.el. It simply adds a new format > character (I've decided for ?1, but it doesn't matter), which calls > kubed-tramp-get-login-program (derived from > kubed-tramp-get-method-parameter-advice). This should be all. > > Completely untested, pls tell me how it goes. Thanks! This looks really good and works well so far in my tests. How would you suggest to detect, in kubed-tramp.el, whether this feature is available? We'll need to use some fallback in older Tramp versions. Best, Eshel
