"Felix E. Klee" <[email protected]> writes:

Hi Felix,

>> Perhaps you try the recent Tramp 2.5.0.2 from GNU ELPA, and check
>> whether it behaves better?
>
> Thanks for the suggestion! I now have 2.5.0.2 installed from
> <https://elpa.gnu.org/packages/>, but it doesn’t work. If I try to open:
>
>     /plink:[email protected]:
>
> then I get:
>
>     tramp-file-name-handler: Invalid function: tramp-compat-with-mutex
>
> The same happens with `/ssh:` connections. The function
> `tramp-compat-with-mutex` does exist.

Tramp fights with Emacs compatibility since ever. There is a special
package tramp-compat.el, which changes between different Tramp versions,
and it is not forward compatible. That is, if it is loaded already in
your Emacs 27.1 (running Tramp 2.4.3), there will be problems to
overload it with Tramp 2.5.0 in the running Emacs session.

So you might adapt your ~/.emacs such a way that Tramp 2.5.0.2 is in the
load-path, and you might start a new Emacs instance. As a proof of
concept, try

# emacs -Q -L ~/.emacs.d/elpa/tramp-2.5.0.2

Best regards, Michael.

Reply via email to