GNU bug report logs - #62329
30.0.50; Error in TRAMP due to variable aliasing

Previous Next

Package: emacs;

Reported by: Eshel Yaron <me <at> eshelyaron.com>

Date: Tue, 21 Mar 2023 12:02:01 UTC

Severity: normal

Merged with 62295

Found in version 30.0.50

Fixed in version 30.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eshel Yaron <me <at> eshelyaron.com>
Cc: 62329 <at> debbugs.gnu.org
Subject: bug#62329: 30.0.50; Error in TRAMP due to variable aliasing
Date: Tue, 21 Mar 2023 14:08:54 +0100
Eshel Yaron <me <at> eshelyaron.com> writes:

Hi Eshel,

> The recent rename of tramp-use-ssh-controlmaster-options in commit
> 1c39347d585 seems to cause some problems, namely Emacs now fails with an
> error when trying to load tramp-sh (which happens automatically in some
> TRAMP flows) if tramp is already loaded and compilation-mode-hook ran.
> To reproduce:
>
> 1. emacs -Q
> 2. (require 'tramp)
>    This further requires tramp-integration which adds a function
>    called tramp-compile-disable-ssh-controlmaster-options to
>    compilation-mode-hook
> 3. Do something that runs compilation-mode-hook, e.g. M-x compile with
>    some dummy compilation command like "true".
> 4. Try to load tramp-sh with e.g. (require 'tramp-sh)
>    Emacs fails with an error saying:
>    "Don’t know how to make a buffer-local variable an alias:
>    tramp-use-connection-share".
>    AFAIU This happens because at this point tramp-use-connection-share is
>    already a localized symbol and tramp-sh tries to call defvaralias on it.

Thanks for the report. This is the same problem as reported in
bug#62295, I'll merge them.

I hope to find a fix, soon.

> Thanks,
> Eshel

Best regards, Michael.




This bug report was last modified 2 years and 57 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.