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 12:30:52 +0100 Message-ID: References: <87h6rnsiup.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="647c75f2_7e9e22f2_d994" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38582"; 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 13:32:28 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 1q5lyF-0009tj-Jx for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Jun 2023 13:32:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5lxt-0006fY-Pw; Sun, 04 Jun 2023 07:32:05 -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 1q5lxq-0006fL-IN for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 07:32: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 1q5lxq-0002FG-A9 for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 07:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5lxp-0006Jr-QA for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 07:32: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 11:32: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.168587826824231 (code B ref 63300); Sun, 04 Jun 2023 11:32:01 +0000 Original-Received: (at 63300) by debbugs.gnu.org; 4 Jun 2023 11:31:08 +0000 Original-Received: from localhost ([127.0.0.1]:45168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5lwy-0006If-4F for submit@debbugs.gnu.org; Sun, 04 Jun 2023 07:31:08 -0400 Original-Received: from mail-wm1-f49.google.com ([209.85.128.49]:49246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5lww-00061y-2o for 63300@debbugs.gnu.org; Sun, 04 Jun 2023 07:31:07 -0400 Original-Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-3f6042d605dso31753575e9.2 for <63300@debbugs.gnu.org>; Sun, 04 Jun 2023 04:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685878260; x=1688470260; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=aZAr4UV7i+pF0f51dJ9wvYj/nYCp6dRQo/QwLfFxC18=; b=JD7F3hFBVsEWr4+jIKosl4+MgAyglZ5+Kbpva2Z0YuZSPRCWoPDoYT1llSj124R28O 2FuQZ27DpE6MYXgVxDp9mspa4I2hDuMnFQ08BK3lPw0pELLfm0gMhlXXfjPUNjDPZePE mvHjiPJZA5ISjJJkCuelKlnZNLPl1swflAc+tNKnl9NbxvK/7g9tem/eyY+Liz9wHbs0 2JhMvAGJ77OgqP0bZ0x9qLevljRUkYNw5fVoyivELBUTRYpQ7ESO9X4K4FlKtM2w02n0 wk+fw2Z/BfMwMtwa8DIOmqIRm61tlgrcLUp+gpq/lglJ17UIUZqUyLCFxc7IM4rGWu8G 3tYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685878260; x=1688470260; 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=aZAr4UV7i+pF0f51dJ9wvYj/nYCp6dRQo/QwLfFxC18=; b=aPqKXzbxT2JyuC044snbPYV9G/HoHlmn4jGXWRVjEbDu5RIWQbKUJJH4zMcI68L+wx r7mg+dQATAgTAK5o3UgbjbfWQ545/tpRThTnhj4FHASwDOzcQ2Gdt5abQdfAghPVENaZ oEQ5xZ8/tFeVzdeSrzNDnpd8YNbhjZygkr9PxiAKqv5JnpdMNsP1rzhMofvmvdn5Ov/h qMxVULsTOG2aPMZXA93lgEZv71LxdrVg5voj0ZUQSWiL6gkL+HqvahrBm+pP0jqK0aSr fUQoySCPo6VlF4WHA5l5xHb8HL7yeo150enqmBRgmFPeuroWPg0iOvYkSmEcDHy5caxA D8yg== X-Gm-Message-State: AC+VfDw0DqhDNN8ZFWFdsH0G/dmYha2uEVD6XhskbYL2pFLQ/DAntmgD 7u/rXVI8eoFQoHqPsSoZ6M8= X-Google-Smtp-Source: ACHHUZ5fZOBcbPH9eu01pURIleHx9v8T4imq57QnSHQEX2pa12tWkyts6NVnNIfc+BkHmE02Qe7WGQ== X-Received: by 2002:a1c:4c1a:0:b0:3f6:ed5:7e8a with SMTP id z26-20020a1c4c1a000000b003f60ed57e8amr4601550wmf.30.1685878259987; Sun, 04 Jun 2023 04:30:59 -0700 (PDT) Original-Received: from [2a01:4b00:89a0:2400:4a:1615:100:0] ([2a01:4b00:89a0:2400:6d6f:7f4f:d888:5784]) by smtp.gmail.com with ESMTPSA id a10-20020a1cf00a000000b003f6050d35c9sm7524130wmb.20.2023.06.04.04.30.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jun 2023 04:30:59 -0700 (PDT) In-Reply-To: <87h6rnsiup.fsf@gmx.de> X-Readdle-Message-ID: a140c676-6726-4e7c-8b54-22706e5cd19d@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:262931 Archived-At: --647c75f2_7e9e22f2_d994 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I can still reproduce this bug on the latest emacs-29 commit. I do not ha= ve tramp-save-ad-hoc-proxies set. I have since found out that simply M-x load-library tramp will have these= connection-local-*-alist variables set without haven=E2=80=99t done anyt= hing. On 4 Jun 2023 at 9:59 AM +0100, Michael Albinus , wrote: > Jimmy Yuen Ho Wong writes: > > Hi, > > > Whenever I install a package or do anything that turns on Tramp such = as > > sudoing, Tramp writes to my =60custom-file-path=60 the variables > > =60connection-local-criteria-alist=60 and > > =60connection-local-profile-alist=60. This is undesirable as it preve= nts the > > customs files from being versioned effectively and shared across > > multiple Emacs installations across machines. =46urthermore, no packa= ge > > should write to the customs file without the user's explicitly > > approval. Defcustoms should be used for customizations, not caching. > > This sounds like the same problem as bug=2362106. This was fixed in the= > emacs-29 branch as commit > > --8<---------------cut here---------------start------------->8--- > commit 36ade0704e1829fd27970e8d478cf4b52deed517 > Author: Michael Albinus > Date: Mon Mar 13 18:02:36 2023 +0100 > > =46ix connection-local variables settings > --8<---------------cut here---------------end--------------->8--- > > Tramp itself calls customize-save-variable only in case you use a > multi-hop method, and you have set tramp-save-ad-hoc-proxies to a > non-nil value. This behavior has been implemented with commit > > --8<---------------cut here---------------start------------->8--- > commit 53dc7bec8303584772e0922acb64aa6e1625b556 > Author: Michael Albinus > Date: Mon May 29 11:22:54 2023 +0200 > > =46ix regression when saving tramp-default-proxies-alist (Do not merge)= > --8<---------------cut here---------------end--------------->8--- > > Could you, please, check=3F > > Best regards, Michael. --647c75f2_7e9e22f2_d994 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I can still reproduce this bug on the latest emacs-= 29 commit. I do not have tramp-save-ad-hoc-proxies set.

I have since found out that simply M-x load-library tramp will have these= connection-local-*-alist variables set without haven=E2=80=99t done anyt= hing.
On 4 Jun 2023 at 9:59 AM +0100, Mic= hael Albinus <michael.albinus=40gmx.de>, wrote:
Jimmy Yuen Ho Wong <wyuenho=40gmail.com> writes:

Hi,

Whenever I install a package or do anything= that turns on Tramp such as
sudoing, Tramp writes to my =60custom-file-path=60 the variables
=60connection-local-criteria-alist=60 and
=60connection-local-profile-alist=60. This is undesirable as it prevents = the
customs files from being versioned effectively and shared across
multiple Emacs installations across machines. =46urthermore, no package should write to the customs file without the user's explicitly
approval. Defcustoms should be used for customizations, not caching.

This sounds like the same problem as bug=2362106. This was fixed in the emacs-29 branch as commit

--8<---------------cut here---------------start------------->8--- commit 36ade0704e1829fd27970e8d478cf4b52deed517
Author: Michael Albinus <michael.albinus=40gmx.de>
Date: Mon Mar 13 18:02:36 2023 +0100

=46ix connection-local variables settings
--8<---------------cut here---------------end--------------->8---
Tramp itself calls customize-save-variable only in case you use a
multi-hop method, and you have set tramp-save-ad-hoc-proxies to a
non-nil value. This behavior has been implemented with commit

--8<---------------cut here---------------start------------->8--- commit 53dc7bec8303584772e0922acb64aa6e1625b556
Author: Michael Albinus <michael.albinus=40gmx.de>
Date: Mon May 29 11:22:54 2023 +0200

=46ix regression when saving tramp-default-proxies-alist (Do not merge) --8<---------------cut here---------------end--------------->8---
Could you, please, check=3F

Best regards, Michael.
--647c75f2_7e9e22f2_d994--