tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (2.6.0.29.1 nil/nil); Provides option to disable shortened mul


From: Warren Lynn
Subject: Re: tramp (2.6.0.29.1 nil/nil); Provides option to disable shortened multi-hop tramp file name
Date: Tue, 20 Jun 2023 15:01:03 -0400

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.albinus@gmx.de> wrote:
Michael Albinus <michael.albinus@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

[Prev in Thread] Current Thread [Next in Thread]