Michael Albinus <
michael.albinus@gmx.de> writes:
Hi Artem,
That's not possible with Tramp. Not with the current design. The proxy
definitions are kept internally, and they apply in reverse order of
their appearance in the remote file names.
I've checked the implementation, and it looks like adding this feature
is not as expensive as I thought. So I have implemented it. Pushed to
both Emacs and Tramp git repo, master branch.
The Tramp manual has a new subsection "5.4.1 Using different proxies for
the same destination" which explains this. In short, you must set
tramp-show-ad-hoc-proxies to t.
Do you have a chance to test it?
Best regards, Michael.