From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#62329: 30.0.50; Error in TRAMP due to variable aliasing Date: Tue, 21 Mar 2023 17:20:12 +0100 Message-ID: <87ttyeoz43.fsf@gmx.de> References: <87zg86qmjd.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14601"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 62329@debbugs.gnu.org To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 21 17:21:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1peeja-0003aD-Op for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Mar 2023 17:21:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peejQ-0001za-36; Tue, 21 Mar 2023 12:21:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peejO-0001z4-Sc for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 12:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peejO-0000xl-Ko for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 12:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peejO-0007Lc-6m for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 12:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Mar 2023 16:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62329 X-GNU-PR-Package: emacs Original-Received: via spool by 62329-submit@debbugs.gnu.org id=B62329.167941562528172 (code B ref 62329); Tue, 21 Mar 2023 16:21:02 +0000 Original-Received: (at 62329) by debbugs.gnu.org; 21 Mar 2023 16:20:25 +0000 Original-Received: from localhost ([127.0.0.1]:60365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peeim-0007KJ-L8 for submit@debbugs.gnu.org; Tue, 21 Mar 2023 12:20:24 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:45833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peeik-0007K3-Vq for 62329@debbugs.gnu.org; Tue, 21 Mar 2023 12:20:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1679415615; i=michael.albinus@gmx.de; bh=m+DqyD3DaN2cDHdMz/l5ZbF05N4JmoSA1MYScOzO/B0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=OsmIxzRgOysj9Sb8F5XNXCOpj5vmiNbNKqHFYyv00GuuaAT9kcfD/16wOxrIaCGHD 3Ms8ETT9J/61Jl6LkFovQewpwyNINtQxVARNOZ2LBTZzaTZ1yZHxSVGNJMo+fRZur2 P0bdJPnakDN7jCipNh5hvJx77NnWC+P6yIUvwXlgDtattH8WswOPTIXpFalXQxlrF9 n9Z4WrX72IZuddaLBnGrJyYR68X6vmRzfIx74guii5hsLQyl5edX71KanF+TpcQ+1L r3to/tvVPaoNWI/4AUOQVwss3DYUkdcuD7qt2ibGRbqs/RHyBR3b6SWm/dOC/tUz/j cy4sY8I3w4yTA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.19]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MWzjt-1py7Oh3XOz-00XI4I; Tue, 21 Mar 2023 17:20:14 +0100 In-Reply-To: (Eshel Yaron's message of "Tue, 21 Mar 2023 15:23:43 +0200") X-Provags-ID: V03:K1:0cPm9fuclLlLQ+JTg1boTiCGM56qTsefbmkb5bp1ztcJY1x+Xbf sbHBRKgA+b9KJgrSWnJSlyFV56vuMExEvdbXh8UlEWlO+lTA12RRQDw9BLeH45AXM1SS09C 8tmEJRE2gvHnQwmjxk9FQ6HykYOboUMtRfkAlg8PiobaeNtUviVXfyehLz54xmep20csovE QNu13OdYoCllNmRWsae0A== UI-OutboundReport: notjunk:1;M01:P0:U8fGq3ZCBVc=;UP3vHBdPYzxB6Ty1lm7hAYA3cwX LacIx+btWjEuQkZ1ab6nNakmcoP4wQj1cJ4cG4MUo01cSBTqZcUdUXOuVqG1WPhvp1BRZ3kA1 ZtvjbhZQqEO1uDuAKyh5LOdnBUJONJJuMI3FW9d4Dbgqrd9vb2AmXimrdjJxvDmaqeMqDboE9 C4uFHtpuqksc2W7JV6CMHo+Wmkcfg182qFZAFfqunsbR91fs8Ex4ferK/qqPb5kKCHIzQYxnQ PmXh8V86HOX9iDG337PYgygt9+5pbz/Kgrq/j+qZnatmY3xUsqvGxWDWEDvvAi3DuroxvfXQO otok+Z9kuoLwNDcXTKG6Cg9V4EBwlhk1s6iHGxGPI3N9PPc6rqS1UcD+QirHGVgVMuO6NWZ9E YZt+UUxpr0fVODkLroQxiFxdEuLFaOorjQLmuyMdsD8U7KkSv/I7eqxFnW6JviprPjIW6LY8s wibSZ1YzOrvGQ9y7p1X4mEwJXELkAouNRfmTQvPf0raqof6ABMYVCNRfrSuKuD0ls1I4Jc987 e13SA2iAsAQsLfn8TlUPeFBCpcXFrKxmu3hPGPuR1y5fQre294NueLZsiW6Y/TTNNspwXn/Iz zbgKAfUThAVhissxFMPqlc5SPRaJaX4+gsPKeec+q59wYr6xRHHSWF7bx9LFDTzriYZixFp+3 ClimNaf+T0K8pRpoQDXLr0gBjD1TLSj9beDviKus9zJ4YVEsGQa6vjT2scVWfgH8v9dctHVXc IqBrT0S739Ydz0cH6sqlFyFK4dAeTIwln/F+FhtjIE3/qYBRwqRrmxvO8UWh0GYnubzeXabI X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258355 Archived-At: --=-=-= Content-Type: text/plain Eshel Yaron writes: Hi Eshel, >> I hope to find a fix, soon. > > Great, thanks. In the meantime my dirty workaround is putting the > following in my init.el: > > (with-eval-after-load 'compile > (require 'tramp-sh)) > > This causes the defvaralias call to happen before > tramp-use-connection-share is localized, which seems to work alright. > The downside is that tramp-sh is loaded the first time I use M-x compile > even if I'm only working locally. 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? --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 24e90447b24..339eb1fa9ab 100644 =2D-- 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 'suppr= ess) :safe (lambda (val) (and (memq val '(t nil suppress)) t))) -(defvaralias 'tramp-use-connection-share 'tramp-use-ssh-controlmaster-opt= ions) -(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. --=-=-= Content-Type: text/plain Thanks, and best regards, Michael. --=-=-=--