bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#70959: Tramp connection property can interact weirdly with cache


From: Dmitry Gutov
Subject: bug#70959: Tramp connection property can interact weirdly with cache
Date: Sun, 19 May 2024 03:27:30 +0300
User-agent: Mozilla Thunderbird

On 18/05/2024 21:43, Michael Albinus wrote:
You would do something like
--8<---------------cut here---------------start------------->8---
(connection-local-set-profile-variables 'remote-direct-async
     '((tramp-direct-async-process . t)))
(connection-local-set-profiles
     '(:application tramp :machine "randomhost") 'remote-direct-async)
--8<---------------cut here---------------end--------------->8---
`remote-direct-async' is a profile name you could choose
yourself. `tramp-direct-async-process' would be the respective Tramp
variable.
That looks very reasonable. One bonus is that the machine is specified
by the hostname only.

Which would avoid the difficulty of tweaking the regexp (e.g. I had a
problem - on a different machine - that my url included a port, and
that needed to be reflected in the regexp as well).
Try the following patch and the config as shown above.

Seems to be working well, thank you.

Except in my case tramp.el was inside directory lisp/net.

And I guess the code will need some backward compatibility path since the connection property was there since Emacs 28? ;-(





reply via email to

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