Hi Michael,

Thanks for such a quick response/action.

I actually put in a similar patch as yours myself, and found that is not
enough. The tricky part is when tramp-make-tramp-file-name is called by
tramp-make-tramp-hop-name, the hop name must be omitted (set to nil).
Otherwise, we will get into some infinite loop. For other cases, keep the
hop. With that additional consideration, it works for me, although I do not
know how the whole system works and the code is really hacky. Maybe you can
give some thoughts on that?

Thanks.

Warren


On Tue, Jun 20, 2023 at 1:55 PM Michael Albinus <michael.albi...@gmx.de>
wrote:

> Michael Albinus <michael.albi...@gmx.de> writes:
>
> Hi Warren,
>
> >> Again, I was upgrading from Emacs 26.3 to 29.0.91 (Linux), and found
> >> shortened multi-hop tramp file names are mandatory now. I am sure many
> >> people like this feature, but my own preference is to have every
> >> multi-hop tramp file name to be self-contained, with all the hops
> >> included in the name.
> >
> > I will work on this. However, it won't be a short shot, it might take
> > some days.
>
> It seems easier than expected. Could you pls check the appended patch?
> It's on top of Tramp 2.6.0.5 (from ELPA), but it should also apply on
> Tramp integrated into the Emacs 29 pretest (I hope).
>
> There's a new user option `tramp-show-ad-hoc-multi-hops'. When you set
> it to t, the full multi-hop file names shall be visible.
>
> I haven't finished regression tests, but it looks promising.
>
> >> Warren
>
> Best regards, Michael.
>
>

Reply via email to