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

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

bug#62329: 30.0.50; Error in TRAMP due to variable aliasing


From: Eshel Yaron
Subject: bug#62329: 30.0.50; Error in TRAMP due to variable aliasing
Date: Tue, 21 Mar 2023 19:05:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Albinus <michael.albinus@gmx.de> writes:

> In my local environment, I have inverted the definition of the variable
> alias. This seems to solve the bug.
>
> Could you pls try this patch?
>
> diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
> index 24e90447b24..339eb1fa9ab 100644
> --- a/lisp/net/tramp-sh.el
> +++ b/lisp/net/tramp-sh.el
> @@ -106,6 +106,8 @@ tramp-initial-end-of-output
>  (defconst tramp-end-of-heredoc (md5 tramp-end-of-output)
>    "String used to recognize end of heredoc strings.")
>
> +(define-obsolete-variable-alias
> +  'tramp-use-ssh-controlmaster-options 'tramp-use-connection-share "30.1")
>  (defcustom tramp-use-connection-share (not (eq system-type 'windows-nt))
>    "Whether to use connection share in ssh or PuTTY.
>  Set it to t, if you want Tramp to apply respective options. These
> @@ -122,11 +124,6 @@ tramp-use-connection-share
>    ;; Check with (safe-local-variable-p 'tramp-use-connection-share 'suppress)
>    :safe (lambda (val) (and (memq val '(t nil suppress)) t)))
>
> -(defvaralias 'tramp-use-connection-share 
> 'tramp-use-ssh-controlmaster-options)
> -(make-obsolete-variable
> - 'tramp-use-ssh-controlmaster-options
> - "Use `tramp-use-connection-share' instead" "30.1")
> -
>  (defvar tramp-ssh-controlmaster-options nil
>    "Which ssh Control* arguments to use.
>
>
> Thanks, and best regards, Michael.

Yes, with this patch I don't get that error anymore, seems to work fine :)

-- 
Eshel





reply via email to

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