Michael Albinus <[email protected]> writes:
Joel Reicher <[email protected]> writes:
From what I can tell with-editor doesn't use this mechanism,
which is a bit of a shame, since the design of it is good in my
opinion.
IIRC we've discussed this with Jonas years ago, when emacsclient
was improved for supporting Tramp. He didn't want to change the
existing with-editor mechanism due to backward compatibility
(still IIRC).
Perhaps you contact Jonas and ask about? For example, it could
support the old mechanism via standard output/input, and the new
mechanism alternatively.
I will do that, but notwithstanding what you said about you
yourself not using emacsclient much, I think there is one aspect
that is the "responsibility" of Tramp, and that is to set the
EMACSCLIENT_TRAMP environment variable on initialisation of a
remote shell. It needs to be set to the same remote identifier
used to open the shell, particularly for an ad-hoc multi-hop
sudo. (I can explain why I believe this to be the case, if
needed.)
What's the easiest way of making that code change? I'm fairly sure
I'm right about it.
Thanks and regards,
- Joel