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#63300: 29.0.90; Tramp keeps customizing variables on every connection Date: Tue, 06 Jun 2023 13:35:35 +0200 Message-ID: <873534rfg8.fsf@gmx.de> References: <87h6rnsiup.fsf@gmx.de> <871qirsbcd.fsf@gmx.de> <666e41e6-b1fc-4dd3-a190-187a73c868f8@Spark> <87sfb7qvoh.fsf@gmx.de> <814039a1-20ea-4068-b950-1cd9ed594e21@Spark> <87o7lvquy2.fsf@gmx.de> <3aba5090-3ed7-4a2b-b65c-872880e2bf76@Spark> <8335375efd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40861"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jimmy Wong , 63300@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 06 13:36:23 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 1q6Uz9-000ARv-EP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Jun 2023 13:36:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6Uyq-0002KO-SC; Tue, 06 Jun 2023 07:36: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 1q6Uyp-0002K6-AZ for bug-gnu-emacs@gnu.org; Tue, 06 Jun 2023 07:36: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 1q6Uyn-0007Zs-Su for bug-gnu-emacs@gnu.org; Tue, 06 Jun 2023 07:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6Uyn-0007Qd-OD for bug-gnu-emacs@gnu.org; Tue, 06 Jun 2023 07:36:01 -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, 06 Jun 2023 11:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63300 X-GNU-PR-Package: emacs Original-Received: via spool by 63300-submit@debbugs.gnu.org id=B63300.168605134728531 (code B ref 63300); Tue, 06 Jun 2023 11:36:01 +0000 Original-Received: (at 63300) by debbugs.gnu.org; 6 Jun 2023 11:35:47 +0000 Original-Received: from localhost ([127.0.0.1]:51088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6UyY-0007Q6-MJ for submit@debbugs.gnu.org; Tue, 06 Jun 2023 07:35:47 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:55755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6UyU-0007Pp-2d for 63300@debbugs.gnu.org; Tue, 06 Jun 2023 07:35:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1686051335; x=1686656135; i=michael.albinus@gmx.de; bh=ZaA9yMNnes6PpFQa60hH92TFr3PaVnG9KKPCrhWArrg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=N1o/xa/Pqz33jn1kTcLl3vZ+RY/EGD/GykKjJbl999fMTbxC6JsFYREo+d10GOtPbC0xESO xFTeRwOtQywx+54sSItoK4CpOZPm/qmxrWIwWOKl5TGqa+GVBDfkY//vT0qTfl2vS83G7We65 8MhZSdSpOoHTxcFqI84xjhC5u1UDwp1QeY7PbyGARh5hXEvhTkIWU11N2CNKjafaECieUBRJ1 JedqFSudcBvmG2Jrhmh20I6+etg/c5UO87GKeJWPsNMOktV/XTqal9ZVjIX35HeObRJVrYj0h 1M003b1KWQz9jIhJT0103iKxgR/qM1wd7yDSV33lQJ6tyKX9YvVg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M42jK-1q6UyN2rc8-0004h4; Tue, 06 Jun 2023 13:35:35 +0200 In-Reply-To: <8335375efd.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 04 Jun 2023 20:24:06 +0300") X-Provags-ID: V03:K1:K9CXI9vSVkQdu5Zixos+iL6VHS1s7HSXwBGEf+arGhcDiZNtgfc xVshkQS0fqMcRenv26XlxVLotaFTVDhoNKDYUZFlr+f3G96I1Fh67jN8drhforYyAAQY4wA Q63p0+AW3bkxZqJbrs3joS1c0eh8apkWSUBg/96QV1SHdjFDLlXlJcuPKh26dkaOb12nXe2 MyxzO9uw1kMN9zGuHzHtg== UI-OutboundReport: notjunk:1;M01:P0:MQGJiRXOTtQ=;p3ZSNvHVeDITahRkNoy8nw2O9dA H+ixqwipTA54oEVG2XNzVHEiuCQ6JGqUBgvRLf0pe6f2bLKpAt85iReL5jxpzh952p8K9vTSq 3oZwfNbHyWzyc+eMY0VEUoSM19SIc4XeFJ5KWJdvKm2FrTfx12xNP3L7sZu5zp8PNlmLsZOmL 8AhecO8PDM1YGIIpfRbl7Y/XnGGDLiE+PcgU0NkkfOn5PI/v+ribIualTd6GKWFqdNN/6wF8H pxXuM7Yageg2rU8xq+1gvxCPmgOnoPSb3PeOvdbi8vnDn4ogXy4s5QmI8OHN7JbipSXh0T1Mn AtxLZjXlpM6jxi9tyt+WC2WS6OFAWI/sloJzgeqEuqO6aiUOjg+dJieDCXUP/4Wxdc5nyajL9 YVhEz1o7cOCYrCW4B5hEVwBqOw65G6A28Vu4ajX0gPvwAr0PIxP5eQUJferosGsM3nw5iAG0G qw/KWuVvtycarnFx5CP7aDyY4wf8gbCJ5qWdN9YfgwJU9SQbDEAeyEtPlStzPAWzy/OY1MHzx BczdS7SvNRDMHDDf9Yz9p9onbQS+yX5Eng0MlNkBNy35iElZSbezUkoZ/kJrvCDc0ixll8pXe cnRJolcfV7hRs1cn9z47M9CY7PTrpoP5n/L6gCC0io3oSl1vAyl0jLPk70lUbFXFgPYuH6ieb L/uBIYgLLXO5t3RU3fkedUiqeIpAPeEitOfXybeSHjghEZLKdpX26FWmi/M6xCXYA+c7PpXGN c62uOaf2xl4ndCYvx7PWdX847QNIvOoaVELABoBPA8Bk9VAPAYqcpIFyOdc10YVlgznPPQ9z 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:263051 Archived-At: Eli Zaretskii writes: Hi Eli, >> Actually, I take it back. customize-save-variable only saves variables = that have the saved-value >> symbol property set. This property is normally set by customize when it= is saved to the custom file. >> Something in Tramp is setting this property without saving the variable= values to the custom file or >> going through customize. In fact, you can see it via M-x customize-opti= on >> connection-local-criteria-alist. The value will be shown as SAVED. > > Maybe Tramp uses setopt or something to change the values of these > options? Michael? Tramp does nothing special, it just calls connection-local-set-profiles and connection-local-set-profile-variables. >> Both of this behavior violate what is documented in the docstring and >> https://www.gnu.org/software/emacs/manual/html_node/elisp/Standard-Prop= erties.html. >> >> If you must, enable-conneciton-local-variables should be respected, and= if you must, set the >> theme-value property on these connection-local variables instead of sav= ed-value so custom-save-all >> will not save them. > > I believe my proposal to make Tramp use variables that are initialized > from the user options should solve all of this. Let's wait for > Michael to chime in on that. By this, a user couldn't change the user options later on, after Tramp is initilized. And it isn't only Tramp, other packages use connection-local variables as well. See my other message for a proposal.