From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63300: 29.0.90; Tramp keeps customizing variables on every connection Date: Sun, 04 Jun 2023 20:24:06 +0300 Message-ID: <8335375efd.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39653"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael.albinus@gmx.de, 63300@debbugs.gnu.org To: Jimmy Wong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 04 19:24:18 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 1q5rSk-000A9e-6o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Jun 2023 19:24:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5rSV-0002cs-Nd; Sun, 04 Jun 2023 13:24:03 -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 1q5rSU-0002c7-37 for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 13:24:02 -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 1q5rST-0004wG-RA for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 13:24:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5rST-0008TL-M1 for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 13:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jun 2023 17:24: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.168589940132517 (code B ref 63300); Sun, 04 Jun 2023 17:24:01 +0000 Original-Received: (at 63300) by debbugs.gnu.org; 4 Jun 2023 17:23:21 +0000 Original-Received: from localhost ([127.0.0.1]:47067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5rRp-0008SP-0Z for submit@debbugs.gnu.org; Sun, 04 Jun 2023 13:23:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5rRm-0008S6-JF for 63300@debbugs.gnu.org; Sun, 04 Jun 2023 13:23:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5rRh-0004jP-CM; Sun, 04 Jun 2023 13:23:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6PDJ+i/stRrr1U78q1NvU7hUA+dKCGmCA5DuTWfit2E=; b=EGKxKg6yQGo4 V+nVLw1y84/wQ0U2U4+dh0eeRUV6jZGkwSJvOpBgyw8SbwgPcDKVfemYd31ZvKTFzKdO/nVDAEUU+ Ir0QqvRaz0a46UBSYXG5LqvMN57Ve32cile0hg4/hATYC492+B4k1uK7EwJDKt6XsgMVj4KfhLM3j bjBVZADe4ATwC2ZwTO+pOaUdOsrmhdqn/C6Vwk7SvurYWFO9E4jmDLfHU1695mKVRK2Yd4NljBa4a ADNpJ/TEN4TUE9p2IsIuQMEPROqqm2sD93Mdz4x2DfxNy6i+fVYp7XrTsA5j33rYRVs2gmZ8Fx4Na FWGNyEJrnARRq/avSUPSLg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5rRg-0002Oa-St; Sun, 04 Jun 2023 13:23:13 -0400 In-Reply-To: <3aba5090-3ed7-4a2b-b65c-872880e2bf76@Spark> (message from Jimmy Wong on Sun, 4 Jun 2023 17:55:42 +0100) 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:262982 Archived-At: > Cc: 63300@debbugs.gnu.org > Date: Sun, 4 Jun 2023 17:55:42 +0100 > From: Jimmy Wong > > 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-option > 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? > Both of this behavior violate what is documented in the docstring and > https://www.gnu.org/software/emacs/manual/html_node/elisp/Standard-Properties.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 saved-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.