From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jimmy Wong Newsgroups: gmane.emacs.bugs Subject: bug#63300: 29.0.90; Tramp keeps customizing variables on every connection Date: Sun, 4 Jun 2023 13:16:40 +0100 Message-ID: <814039a1-20ea-4068-b950-1cd9ed594e21@Spark> References: <87h6rnsiup.fsf@gmx.de> <871qirsbcd.fsf@gmx.de> <666e41e6-b1fc-4dd3-a190-187a73c868f8@Spark> <87sfb7qvoh.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="647c80c1_5a618e66_d994" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14061"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63300@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 04 14:18:41 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 1q5mgy-0003WB-R2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Jun 2023 14:18:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5mgV-0001Fr-8x; Sun, 04 Jun 2023 08:18:11 -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 1q5mgN-0001FE-2n for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 08:18:09 -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 1q5mgL-00062T-Qd for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 08:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5mgL-0007aM-Ly for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 08:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jun 2023 12:18: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.168588103429098 (code B ref 63300); Sun, 04 Jun 2023 12:18:01 +0000 Original-Received: (at 63300) by debbugs.gnu.org; 4 Jun 2023 12:17:14 +0000 Original-Received: from localhost ([127.0.0.1]:45220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5mfa-0007ZF-Fo for submit@debbugs.gnu.org; Sun, 04 Jun 2023 08:17:14 -0400 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:56812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5mfY-0007Yz-6a for 63300@debbugs.gnu.org; Sun, 04 Jun 2023 08:17:12 -0400 Original-Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-3f7a8089709so652825e9.1 for <63300@debbugs.gnu.org>; Sun, 04 Jun 2023 05:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685881026; x=1688473026; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=/YwbIKkU9AJx/Y+/mxz0EiFfgsQvaxEKIsLaHcow5PE=; b=lpohNCwqz12N1Z8XsodLCugvCxr9QKSjiLqMm5FWgRKERl4y9SIhufcbz1XahFvAH6 olao2/P8Yyt914H3hRKl07wy5KltPYJWfzPI0WUnSfXMfAp9HwSlS1hPGWfTNDf/Kai2 uAa6adPeNxlgPbz+pAEFD5xACZvBY8N+RYkSZOAlulNb/Hfbv4p+pqP3kaqE/KBmP3pS QrqRg3hyaiyaPiKMKzwzt4dORIhhX+bT9FZVBlviw+2Fb29x0Mowjdi+M2XpOStXwOu5 PJ5pzrxGqhaMbWOBAu7KVP7akkF0Tv1qA1j/aK1KeWHusFxww+OCMlQmV0EjGl6j995K h1xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685881026; x=1688473026; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/YwbIKkU9AJx/Y+/mxz0EiFfgsQvaxEKIsLaHcow5PE=; b=C9TWyfg17CSY70sVOqjkMZ8MU53M4C7JqkUR8RUGfByBXn5jEX6QUvbtvYQA8QpWdC NLJNWdDdPNxV0j6dqOPQMBoW+2o0/VpclW5Unz8ELBvzFS2IbaxIjUm7R1LggFrVlsY4 eNZgcNa+5Ivyx6qZBMyek44jzQu7k/bJu9uiQTlM15XISnpzjSSkrWXQqaM9QjjB8dPT PHPsvI/1qbCIv6dhrYdw1WbSMT31RiuHSNU8hJEYca1imO26JeeXfxnNVqYLZdgYzZdT 9UDvTWaUsIHCY9J1g1yBu9G3SAbwOfRFUk/oaithGaxvwNtY+W4McL0FoNVTLODQb0mg fhhQ== X-Gm-Message-State: AC+VfDyqrvTf0Pm0yIbf3zliT8vdOuzdv9Kd3PC1vatGmVYDCv0f9S4z 5Y7KD3etjnz+aNxri5k9kOw= X-Google-Smtp-Source: ACHHUZ4U3PHnQZVAQTHcuGZOzzkFNPTz8tcm4R3jrG0e87MYGTfvt4c0fxwWPEgDyeaK29/Gim34fA== X-Received: by 2002:a05:6000:1145:b0:30e:3f55:ebc9 with SMTP id d5-20020a056000114500b0030e3f55ebc9mr831226wrx.13.1685881026209; Sun, 04 Jun 2023 05:17:06 -0700 (PDT) Original-Received: from [2a01:4b00:89a0:2400:f4:811:100:0] ([2a01:4b00:89a0:2400:6d6f:7f4f:d888:5784]) by smtp.gmail.com with ESMTPSA id d6-20020a5d5386000000b00307c46f4f08sm6907073wrv.79.2023.06.04.05.17.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jun 2023 05:17:05 -0700 (PDT) In-Reply-To: <87sfb7qvoh.fsf@gmx.de> X-Readdle-Message-ID: 814039a1-20ea-4068-b950-1cd9ed594e21@Spark 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:262941 Archived-At: --647c80c1_5a618e66_d994 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Well, yes, I consider this a poorly considered =E2=80=9Cfeature=E2=80=9D,= or arguably a bug, for exactly the reason you said, they are local to co= nnections and machines, and thus highly variable. We can probably argue whether this is a bug in tramp or a bug in customiz= e-save-variable tho (why on earth does the act of saving a single variabl= e value saves all customized values if a custom file exists=3F) On 4 Jun 2023 at 1:05 PM +0100, Michael Albinus , wrote: > Jimmy Wong writes: > > > Again, I think if tramp needs to cache the values of these variables,= > > they should be written to a file in user-emacs-directory, not hacked > > in a customizable variable. > > But these Tramp settings are connection-local, meaning they are > different for different remote hosts. Connection-local variables have > been invented for exact this purpose. > > Now we can argue whether connection-local-*-alist shall be user options= > or not. But exactly this has been requested, and that's why they have > been adapted. Your request is the opposite ... > > Best regards, Michael. --647c80c1_5a618e66_d994 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Well, yes, I consider this a poorly considered =E2=80= =9Cfeature=E2=80=9D, or arguably a bug, for exactly the reason you said, = they are local to connections and machines, and thus highly variable.

We can probably argue whether this is a bug in tramp or a bug in customiz= e-save-variable tho (why on earth does the act of saving a single variabl= e value saves all customized values if a custom file exists=3F)

On 4 Jun 2023 at 1:05 PM +0100, Mic= hael Albinus <michael.albinus=40gmx.de>, wrote:
Jimmy Wong <wyuenho=40gmail.com> writes:

Again, I think if tramp needs to cache the = values of these variables,
they should be written to a file in user-emacs-directory, not hacked
in a customizable variable.

But these Tramp settings are connection-local, meaning they are
different for different remote hosts. Connection-local variables have
been invented for exact this purpose.

Now we can argue whether connection-local-*-alist shall be user options or not. But exactly this has been requested, and that's why they have
been adapted. Your request is the opposite ...

Best regards, Michael.
--647c80c1_5a618e66_d994--