GNU bug report logs - #44698
27.1; dir-locals.el stay on file-local-variables-alist when using vc-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Miguel Ángel Arruga Vivas <rosen644835@HIDDEN>; dated Mon, 16 Nov 2020 20:31:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 44698 <at> debbugs.gnu.org:


Received: (at 44698) by debbugs.gnu.org; 12 Jul 2022 12:31:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 12 08:31:35 2022
Received: from localhost ([127.0.0.1]:41831 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oBF39-0006tp-Dx
	for submit <at> debbugs.gnu.org; Tue, 12 Jul 2022 08:31:35 -0400
Received: from quimby.gnus.org ([95.216.78.240]:36548)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1oBF38-0006te-Nl
 for 44698 <at> debbugs.gnu.org; Tue, 12 Jul 2022 08:31:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=JnUKH6new1gTOJHS3XEG4BQmaQkQMdYd4Mt0amBw/tc=; b=RYl3WFD+Iv0NDrYoFqd4qPOD2w
 fP1xZjjbhdS06Mnm/JBM34UDFLD0AfqhF4o/lWtDI5a5s1U0Zokew85a7B5297sLI4iUJ4Ez8WiFx
 8KBH45Xydht/ENZTUCLcPJcdqZcLq7sz/Ms9xtk3NrRR/53dYIYYpTLqvgMEmbXD2Vx4=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1oBF2z-0007Jz-Sc; Tue, 12 Jul 2022 14:31:28 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: Re: bug#44698: 27.1; dir-locals.el stay on
 file-local-variables-alist when using vc-mode
In-Reply-To: <8735f7eksm.fsf@HIDDEN> (Maxim Cournoyer's message of "Mon, 11
 Jul 2022 11:22:33 -0400")
References: <87mtzhvybw.fsf@HIDDEN> <87bkv4lomn.fsf@HIDDEN>
 <8735f7eksm.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEXNsl+1qG2rlVTO
 xp65kjqRcDSMdEToxl1nTydHNx1nYE8yKhr///8MU+0wAAAAAWJLR0QMgbNRYwAAAAd0SU1FB+YH
 DAwJBCuKt6MAAAGdSURBVDjLfdFBb4IwFAfwspF4VbcPILjscxgshjOjptltSyTOE5eFnZdhitcl
 Cw3HXYxXT4Yvt1dKS1HcPxza93uPYkUIYo3OM56iM3CdkeOOXFcC6nY7LaBbE+DRcH6EBqv/cDky
 dg3RAHJPnD6wRpiEvTDExBhpAd1gsnzpA3tGorADaQPIjz4NGKSpmvGjTMMdSiFJ0kxkky6kCugE
 WZYJ4m3YBpip61GQosTGAJ44a2iZgAKAwFX3M1WQDAT4nvq1GtKrkAYRjvzXa+BNGphrSAQs3Abs
 uTHxhSNPTWADPjIALME24R0mFvhBtF9AuMBQnGHIXF8iDjK89ETNJ5SQJ4TlmhCawZ/uLymD5Pwb
 EdiKUFZgkkG3KHMBdURbAUOL5zdeRwKT44xtH+m6hfqtENhuV5RKOCLWlnn5E9N9vagayGVbuY0p
 dJSnqgHOFSzpTpQlFKrMyyxc7/JSAtepeMXCeLPKO1BVonFH4njPyi5ACsoADutLgA/ZH1huQH1g
 nZNcNiA24uMK7RKqy/wDVX+O6BBvDj35/QOTbX9P8qncFgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy
 Mi0wNy0xMlQxMjowOTowNCswMDowMJ39kf0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDctMTJU
 MTI6MDk6MDQrMDA6MDDsoClBAAAAAElFTkSuQmCC
X-Now-Playing: Hercules & Love Affair's _In Amber_: "Contempt for You"
Date: Tue, 12 Jul 2022 14:31:25 +0200
Message-ID: <87v8s2qzqa.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes: > I tried
 the reproducer again on my side, and I can reproduce the issue > (that the
 file-local-variables-alist is leaked from p1/file to p2/file). > > I'm thus
 reopening the ticket. > > I used the cu [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 44698
Cc: Christopher Lemmer Webber <cwebber@HIDDEN>,
 Miguel =?utf-8?Q?=C3=81ngel?= Arruga Vivas <rosen644835@HIDDEN>,
 44698 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:

> I tried the reproducer again on my side, and I can reproduce the issue
> (that the file-local-variables-alist is leaked from p1/file to p2/file).
>
> I'm thus reopening the ticket.
>
> I used the current 'emacs' package from Guix to test, which is at
> version 28.1.

Thanks -- it looks like you just unarchived the bug report, not reopened
it, so I've now done the latter.  (The debbugs interface is pretty
confusing.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44698; Package emacs. Full text available.
Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

Message received at 44698 <at> debbugs.gnu.org:


Received: (at 44698) by debbugs.gnu.org; 11 Jul 2022 15:22:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 11 11:22:43 2022
Received: from localhost ([127.0.0.1]:40645 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oAvFC-0007on-Or
	for submit <at> debbugs.gnu.org; Mon, 11 Jul 2022 11:22:42 -0400
Received: from mail-qv1-f53.google.com ([209.85.219.53]:40792)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1oAvFB-0007oU-0d; Mon, 11 Jul 2022 11:22:41 -0400
Received: by mail-qv1-f53.google.com with SMTP id g9so582642qvq.7;
 Mon, 11 Jul 2022 08:22:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=HUeAys2/llkmW3oF4ff6pmOG1nR32OBfx53iFo/udx8=;
 b=XJVwfhH01dUHmgx3QQ3umpiflTBuK96QoOkv6tw3wfFR2CLMZs+0DKJuT2UHwqH8+W
 0oY1oIPWfYNlum3dtt5PjJRPGmTTmTTuo8PfqYyZvH3zlyh+vLdcyuYlTaKxStQkywlC
 0YKG9nFHmup+ckFLv67SkAPb3sy4sW2B4BklBCw68aYFh5q4k4BhQW5aUu7QInzqZ1BW
 CurNzha+gYsu7K8TUBovJwQj7Xup0N8+mY133258s6rf0/S0HA+SJaBzjdDKfiUlt5cy
 M0kGy0Q2+2x1rKsC3l9xXvBUx/usoL5s9xnF7fXOPdJh0yK32167JVXwdLeLx1fvOzIY
 mKBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=HUeAys2/llkmW3oF4ff6pmOG1nR32OBfx53iFo/udx8=;
 b=cqcsLZSF4ortnqGaUDeD9FASgOVUAHkzrCOhy5KULtUHPR0ULsHmKbAsqNN3JhwJVD
 BmXkt6mXnRsVQ5CKQc/cycEfNskMw/xUt/EhiH+4xIwdTcUEHxHNwuPmnraeV5587fCI
 QPdD6wSj44tsmKyVxECYbomsJzJ3x4QQGWWzBHxSSeGh2suZNSbe9ZMwY0OXSYrqtswK
 EhFz1WekY+MaqN9f8RF3jA/UY/0KHXvYIWrHO3bLMXAGcjMz/zcGdGEDKWa4tC23W1e0
 71cAeNIwXz3bIkaf5rSpyhsU59dyuP4V7O/Kapzzpl6q2hoPG4zKPejWyomjo77cS9pO
 TAKw==
X-Gm-Message-State: AJIora+6E3WfQdrUogqXqVCS3MnzgpIwJR/6/dOZnsLxLUh+Oa/e/EjO
 DUhJ8lS1IfKUGOshoJoBWd/ad9y+bEaMGw==
X-Google-Smtp-Source: AGRyM1uj7cHWnXSgqKQqFe2pVKGkNFd/pmYKtrBNQm3U57go/HGt+x7NwyS6OlyR4KApq26QBbDzvA==
X-Received: by 2002:a05:6214:27c6:b0:472:ff4f:f103 with SMTP id
 ge6-20020a05621427c600b00472ff4ff103mr13491703qvb.55.1657552955144; 
 Mon, 11 Jul 2022 08:22:35 -0700 (PDT)
Received: from hurd (dsl-155-226.b2b2c.ca. [66.158.155.226])
 by smtp.gmail.com with ESMTPSA id
 r22-20020ac85e96000000b00317c3ce1f4esm5482668qtx.45.2022.07.11.08.22.33
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 11 Jul 2022 08:22:34 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#44698: 27.1; dir-locals.el stay on
 file-local-variables-alist when using vc-mode
References: <87mtzhvybw.fsf@HIDDEN> <87bkv4lomn.fsf@HIDDEN>
Date: Mon, 11 Jul 2022 11:22:33 -0400
In-Reply-To: <87bkv4lomn.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue,
 07 Jun 2022 13:05:52 +0200")
Message-ID: <8735f7eksm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 44698
Cc: Christopher Lemmer Webber <cwebber@HIDDEN>,
 GNU Debbugs <control <at> debbugs.gnu.org>,
 Miguel =?utf-8?Q?=C3=81ngel?= Arruga Vivas <rosen644835@HIDDEN>,
 44698 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

unarchive 44698
thanks

Hi,

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Miguel =C3=81ngel Arruga Vivas <rosen644835@HIDDEN> writes:
>
>> While using vc-mode, the dir-locals.el variables under 'nil' mode are
>> accumulated on file-local-variables-alist and they still apply after
>> exiting the scope of the file.  The attached script can be used to
>> reproduce it (Emacs 27.1, on GNU Guix
>> f6e031ab36fd99ad3536caabfdaefcc2b5f606a1).
>>
>> It generates a temporary folder with two example git repositories, an
>> offending dir-locals.el[1], launches an emacs with -Q and the shows
>> the steps to follow:
>>
>> 1. Open p1/file and accept the .dir-locals.el variables.
>> 2. Call vc-print-log
>> 3. Check the file-local-variables-alist
>> 4. Open p2/file (this one doesn't have .dir-locals.el).
>> 5. Call vc-print-log again, the message is shown again.
>>
>> Best regards,
>> Miguel
>>
>> [1] It contains: ((nil . ((eval (message "Eval called")))))
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> I tried to reproduce this with both Emacs 27.1 and Emacs 29, and I was
> unable to -- in step 5), there's no message, and p2/file does not have
> anything in file-local-variables-alist.
>
> Are you still seeing this problem in recent Emacs versions?

I tried the reproducer again on my side, and I can reproduce the issue
(that the file-local-variables-alist is leaked from p1/file to p2/file).

I'm thus reopening the ticket.

I used the current 'emacs' package from Guix to test, which is at
version 28.1.

Thanks!

Maxim




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44698; Package emacs. Full text available.
bug closed, send any further explanations to 44698 <at> debbugs.gnu.org and Miguel Ángel Arruga Vivas <rosen644835@HIDDEN> Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 44698 <at> debbugs.gnu.org:


Received: (at 44698) by debbugs.gnu.org; 5 Jul 2022 11:37:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 05 07:37:10 2022
Received: from localhost ([127.0.0.1]:49484 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o8grd-0003wT-PO
	for submit <at> debbugs.gnu.org; Tue, 05 Jul 2022 07:37:09 -0400
Received: from quimby.gnus.org ([95.216.78.240]:43086)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1o8grc-0003wC-Hq
 for 44698 <at> debbugs.gnu.org; Tue, 05 Jul 2022 07:37:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=rJSe7VR8QqfrpeCtOiTYiTLo1tiLjHxsZbOla98QIdM=; b=NHWOLBCF+GGsTYKXPHRzXdn7Kn
 tywSL66DaB5EomVYATb5X+1sKJYCiVbmcjP0Lo9K4DcvTGKYa7qfbiE37hqRdF+17nB1tAL9m88bY
 mzpigxFV6YJfgD7PLl29OaPuMkgHAbtz//Bqq/loeL/6AXfOcg0R2Cy6vjLrFu9rN278=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1o8grT-00017p-Rd; Tue, 05 Jul 2022 13:37:02 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Miguel =?utf-8?Q?=C3=81ngel?= Arruga Vivas <rosen644835@HIDDEN>
Subject: Re: bug#44698: 27.1; dir-locals.el stay on
 file-local-variables-alist when using vc-mode
In-Reply-To: <87bkv4lomn.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue,
 07 Jun 2022 13:05:52 +0200")
References: <87mtzhvybw.fsf@HIDDEN> <87bkv4lomn.fsf@HIDDEN>
X-Now-Playing: Eurythmics's _In The Garden_: "Take Me To Your Heart"
Date: Tue, 05 Jul 2022 13:36:59 +0200
Message-ID: <87h73v4wpw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Lars Ingebrigtsen <larsi@HIDDEN> writes: > I tried to
 reproduce
 this with both Emacs 27.1 and Emacs 29, and I was > unable to -- in step
 5), there's no message,
 and p2/file does not have > anything in file-local-variables-alist.
 > > Are you [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 44698
Cc: Christopher Lemmer Webber <cwebber@HIDDEN>, 44698 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> I tried to reproduce this with both Emacs 27.1 and Emacs 29, and I was
> unable to -- in step 5), there's no message, and p2/file does not have
> anything in file-local-variables-alist.
>
> Are you still seeing this problem in recent Emacs versions?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44698; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 44698 <at> debbugs.gnu.org:


Received: (at 44698) by debbugs.gnu.org; 7 Jun 2022 11:06:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 07 07:06:09 2022
Received: from localhost ([127.0.0.1]:38523 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nyX2G-0003Kk-SC
	for submit <at> debbugs.gnu.org; Tue, 07 Jun 2022 07:06:09 -0400
Received: from quimby.gnus.org ([95.216.78.240]:51842)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nyX2C-0003Jp-GK
 for 44698 <at> debbugs.gnu.org; Tue, 07 Jun 2022 07:06:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=5mmXSSFG1EwXUa/N9LUoQd4kdBORL9OYhJEVVYTv+9I=; b=uiZpLhLbiEpXayOe46X1SmoCLa
 INTDCUS/+ehrXmStegHrxGFc0jJEJsBmGKG4jsh9iDWcqB6PZXMwq6BaZC7GszJHl/sj8CIKuZTtN
 6FbMJHpSX6JSHBExTIZw3zN16zLI+V7RJitYf5v73vjr6TvOBJ9LG0OUeYPemUv8Ya40=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nyX23-0001dh-FC; Tue, 07 Jun 2022 13:05:57 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Miguel =?utf-8?Q?=C3=81ngel?= Arruga Vivas <rosen644835@HIDDEN>
Subject: Re: bug#44698: 27.1; dir-locals.el stay on
 file-local-variables-alist when using vc-mode
References: <87mtzhvybw.fsf@HIDDEN>
X-Now-Playing: Blaine L. Reininger's _Commissions 2 (1)_: "Krakenangriff"
Date: Tue, 07 Jun 2022 13:05:52 +0200
In-Reply-To: <87mtzhvybw.fsf@HIDDEN> ("Miguel =?utf-8?Q?=C3=81ngel?=
 Arruga Vivas"'s message of "Mon, 16 Nov 2020 21:30:43 +0100")
Message-ID: <87bkv4lomn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Miguel Ángel Arruga Vivas <rosen644835@HIDDEN> writes:
    > While using vc-mode, the dir-locals.el variables under 'nil' mode are >
    accumulated on file-local-variables-alist and they still apply after > exiting
    the scope of the file. The attached script can [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 44698
Cc: Christopher Lemmer Webber <cwebber@HIDDEN>, 44698 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Miguel =C3=81ngel Arruga Vivas <rosen644835@HIDDEN> writes:

> While using vc-mode, the dir-locals.el variables under 'nil' mode are
> accumulated on file-local-variables-alist and they still apply after
> exiting the scope of the file.  The attached script can be used to
> reproduce it (Emacs 27.1, on GNU Guix
> f6e031ab36fd99ad3536caabfdaefcc2b5f606a1).
>
> It generates a temporary folder with two example git repositories, an
> offending dir-locals.el[1], launches an emacs with -Q and the shows
> the steps to follow:
>
> 1. Open p1/file and accept the .dir-locals.el variables.
> 2. Call vc-print-log
> 3. Check the file-local-variables-alist
> 4. Open p2/file (this one doesn't have .dir-locals.el).
> 5. Call vc-print-log again, the message is shown again.
>
> Best regards,
> Miguel
>
> [1] It contains: ((nil . ((eval (message "Eval called")))))

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I tried to reproduce this with both Emacs 27.1 and Emacs 29, and I was
unable to -- in step 5), there's no message, and p2/file does not have
anything in file-local-variables-alist.

Are you still seeing this problem in recent Emacs versions?

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44698; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Nov 2020 20:30:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 16 15:30:52 2020
Received: from localhost ([127.0.0.1]:57462 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kel9H-0007vF-NS
	for submit <at> debbugs.gnu.org; Mon, 16 Nov 2020 15:30:52 -0500
Received: from lists.gnu.org ([209.51.188.17]:38730)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rosen644835@HIDDEN>) id 1kel9G-0007tl-Ca
 for submit <at> debbugs.gnu.org; Mon, 16 Nov 2020 15:30:51 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:42974)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rosen644835@HIDDEN>)
 id 1kel9G-0004lJ-6d
 for bug-gnu-emacs@HIDDEN; Mon, 16 Nov 2020 15:30:50 -0500
Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:36507)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <rosen644835@HIDDEN>)
 id 1kel9D-000717-EH
 for bug-gnu-emacs@HIDDEN; Mon, 16 Nov 2020 15:30:49 -0500
Received: by mail-wr1-x431.google.com with SMTP id j7so20241574wrp.3
 for <bug-gnu-emacs@HIDDEN>; Mon, 16 Nov 2020 12:30:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:user-agent:mime-version;
 bh=nPUBmrsjda5ZWFXqu9M4L7ISL34Ur5BduynSVW215jY=;
 b=mbx215umOqqOdaEcxDbC8cahm2HNuOiaEKoYshbubVpxZZVeCvvnRGvMUY8iJhf1Xh
 iaPcnXP4DSWIfTYx525nmRqxLT21ic1Lt4+k4QiVsfh74nAQDyUqmF9H0J0lu8DiCNWF
 N3Hqc/7P7oWb+nWImtQBdu1/s6CR4uBduNir1QO6jmZNsZaqOCbdt+FW0fjCZvL0kAy6
 S08V3A2cCOWulVQjOCiFU+X5GQOHgZI+nRHzI32LJfHQhckWPemFRcy1gbN4zT00UZPg
 5O068tukhOcAgPnSEi0qe26pltEHIeG6WiHdrjlRon6sChQ6AWViVsMZjKYDd7xBVGzb
 HdEQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent
 :mime-version;
 bh=nPUBmrsjda5ZWFXqu9M4L7ISL34Ur5BduynSVW215jY=;
 b=BdMCvNnZNvFhqCz4e+IgFnBL+iy8jI8HrmsPpw3d1KWmFpZ5YKyph0KTpACEB3TA0L
 LKmYFSoBfZTbPq1qQNQlZqAu/xi0U7FLcQDHc9birHDLkg3cNF/RenpM5lniZY+pX8cN
 nPQHQrgqBHr2pQEBR9kIdnzzeguwdootj5AOfzC59TvKbA7pga0lFm7p05mQE1bUJKjv
 cppiGWosDH3MUGVewAp5CdbDKuC9UkNzxYlw4ow41R5bjRgFsQVeBDH1YWl06MdaaPmX
 D3rvZbj+s7IRPmj0ItF+jWqUZxea5ZGQ5jpKbKvENYReDs/kZcHQesTc8FmtTk0EvyRl
 cXqg==
X-Gm-Message-State: AOAM531icUG7Gw8IJIb7/qVR8Tl1xUiIDeFLswI9x/pSFy+H0vwQDgJu
 5kQticUMfK5PHpOPbXEGV1s=
X-Google-Smtp-Source: ABdhPJxFG67Eo1xRqBPvaWQZRxq772hdaUoNWuLSQ5EzXupXYKDIzLQOywx5jctqeMbFJeRmvehV3Q==
X-Received: by 2002:a5d:4e07:: with SMTP id p7mr21297199wrt.63.1605558645915; 
 Mon, 16 Nov 2020 12:30:45 -0800 (PST)
Received: from unfall (20.134.94.90.dynamic.jazztel.es. [90.94.134.20])
 by smtp.gmail.com with ESMTPSA id d134sm546473wmd.8.2020.11.16.12.30.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 16 Nov 2020 12:30:45 -0800 (PST)
From: =?utf-8?Q?Miguel_=C3=81ngel_Arruga_Vivas?= <rosen644835@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.1; dir-locals.el stay on file-local-variables-alist when using
 vc-mode
Date: Mon, 16 Nov 2020 21:30:43 +0100
Message-ID: <87mtzhvybw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2a00:1450:4864:20::431;
 envelope-from=rosen644835@HIDDEN; helo=mail-wr1-x431.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: submit
Cc: Christopher Lemmer Webber <cwebber@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

--=-=-=
Content-Type: text/plain


Hi,

While using vc-mode, the dir-locals.el variables under 'nil' mode are
accumulated on file-local-variables-alist and they still apply after
exiting the scope of the file.  The attached script can be used to
reproduce it (Emacs 27.1, on GNU Guix
f6e031ab36fd99ad3536caabfdaefcc2b5f606a1).

It generates a temporary folder with two example git repositories, an
offending dir-locals.el[1], launches an emacs with -Q and the shows
the steps to follow:

1. Open p1/file and accept the .dir-locals.el variables.
2. Call vc-print-log
3. Check the file-local-variables-alist
4. Open p2/file (this one doesn't have .dir-locals.el).
5. Call vc-print-log again, the message is shown again.

Best regards,
Miguel

[1] It contains: ((nil . ((eval (message "Eval called")))))


--=-=-=
Content-Type: application/x-sh
Content-Disposition: attachment; filename=reproducer.sh
Content-Transfer-Encoding: base64
Content-Description: repr.sh

IyEvYmluL3NoIC1lCiMgQ29weXJpZ2h0IMKpIDIwMjAgTWlndWVsIMOBbmdlbCBBcnJ1Z2EgVml2
YXMgPHJvc2VuNjQ0ODM1QGdtYWlsLmNvbT4KIyBDb3B5aW5nIGFuZCBkaXN0cmlidXRpb24gb2Yg
dGhpcyBmaWxlLCB3aXRoIG9yIHdpdGhvdXQgbW9kaWZpY2F0aW9uLCBhcmUKIyBwZXJtaXR0ZWQg
aW4gYW55IG1lZGl1bSB3aXRob3V0IHJveWFsdHkgcHJvdmlkZWQgdGhlIGNvcHlyaWdodCBub3Rp
Y2UgYW5kCiMgdGhpcyBub3RpY2UgYXJlIHByZXNlcnZlZC4KCmFkZF9oaXN0b3J5ICgpIHsKICAg
IGVjaG8gJ0ZpcnN0IGxpbmUnID4gZmlsZQogICAgZ2l0IGFkZCBmaWxlCiAgICBnaXQgY29tbWl0
IC1tICdmaXJzdCBjb21taXQnCiAgICBlY2hvICdTZWNvbmQgbGluZScgPj4gZmlsZQogICAgZ2l0
IGFkZCBmaWxlCiAgICBnaXQgY29tbWl0IC1tICdzZWNvbmQgY29tbWl0Jwp9Cgp0ZW1wZGlyPSIk
KG1rdGVtcCAtZCkiCnRyYXAgImNkICYmIHJtIC1yZiAnJHt0ZW1wZGlyfSciIEVYSVQKY2QgIiR7
dGVtcGRpcn0iCmdpdCBpbml0IHAxCmNkIHAxCmVjaG8gJygobmlsIC4gKChldmFsIC4gKG1lc3Nh
Z2UgIkV2YWwgY2FsbGVkIikpKSkpJyA+IC5kaXItbG9jYWxzLmVsCmdpdCBhZGQgLmRpci1sb2Nh
bHMuZWwKYWRkX2hpc3RvcnkKZ2l0IGluaXQgLi4vcDIKY2QgLi4vcDIKYWRkX2hpc3RvcnkKY2Qg
Li4KCmVjaG8gJ0MteCBDLWYgcDEvZmlsZSAtPiBwcmVzcyAhCkMteCB2IGwKQy1oIHYgZmlsZS1s
b2NhbC12YXJpYWJsZXMtYWxpc3QgKGNvbnRhaW5zIGV2YWwgbWVzc2FnZT8pCkMteCBvCkMteCBD
LWYgLi4vcDIvZmlsZQpDLXggdiBsCkMtaCB2IGZpbGUtbG9jYWwtdmFyaWFibGVzLWFsaXN0IChz
dGlsbCBjb250YWlucyBldmFsIG1lc3NhZ2U/KScgPiBSRUFETUUKCmVtYWNzIC1RIFJFQURNRQpj
ZApybSAtcmYgIiR7dGVtcGRpcn0iCmV4aXQgMAo=
--=-=-=--




Acknowledgement sent to Miguel Ángel Arruga Vivas <rosen644835@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#44698; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 9 Aug 2022 16:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.