From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Landell Newsgroups: gmane.emacs.bugs Subject: bug#54405: 27.1; How to reset connection-local variable Date: Fri, 18 Mar 2022 17:57:06 +0100 Message-ID: <864k3vi4gt.fsf@tiefighter.i-did-not-set--mail-host-address--so-tickle-me> References: <867d8vc5dq.fsf@tiefighter.i-did-not-set--mail-host-address--so-tickle-me> <87y219iw3l.fsf@gmx.de> <861qz0d3lc.fsf@tiefighter.i-did-not-set--mail-host-address--so-tickle-me> <87lex7iv1n.fsf@gmx.de> <87h77vij8i.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8146"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54405@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 18 17:58:42 2022 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 1nVFw2-0001xx-4T for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 17:58:42 +0100 Original-Received: from localhost ([::1]:35448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVFw0-0006OZ-S5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 12:58:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVFvP-0005m7-8i for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 12:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVFvO-0004sf-Vs for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 12:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVFvO-0002cW-DQ for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 12:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Landell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Mar 2022 16:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54405 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 54405-submit@debbugs.gnu.org id=B54405.164762265810034 (code B ref 54405); Fri, 18 Mar 2022 16:58:02 +0000 Original-Received: (at 54405) by debbugs.gnu.org; 18 Mar 2022 16:57:38 +0000 Original-Received: from localhost ([127.0.0.1]:58241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVFv0-0002bl-Ck for submit@debbugs.gnu.org; Fri, 18 Mar 2022 12:57:38 -0400 Original-Received: from mailtransmit04.runbox.com ([185.226.149.37]:41992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVFux-0002bU-9u for 54405@debbugs.gnu.org; Fri, 18 Mar 2022 12:57:37 -0400 Original-Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1nVFuq-001Ylr-Gc for 54405@debbugs.gnu.org; Fri, 18 Mar 2022 17:57:28 +0100 Original-Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1nVFup-0000D3-VJ; Fri, 18 Mar 2022 17:57:28 +0100 Original-Received: by submission01.runbox with esmtpsa [Authenticated ID (666394)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1nVFua-0002Yv-1K; Fri, 18 Mar 2022 17:57:12 +0100 In-Reply-To: <87h77vij8i.fsf@gmx.de> 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" Xref: news.gmane.io gmane.emacs.bugs:228561 Archived-At: Excellent, > Michael Albinus writes: > > > I've pushed a change to the Emacs master git branch, which allows to > change the application in `with-connection-local-variables'. The Elisp > manual has been extended with > > Does this suffice? > This seems to work fine as far as I can tell and as far as my testing goes with this feature isolated. There is however a small complication which I don't know if it is to be considered a bug or not. Still this fails with my package. I discovered that this is because `hack-dir-local-variables-non-file-buffer' is called at some point for a totally unrelated variable to be applied. The actual trigger point is `hack-local-variables-apply'. So further debugging indicates that the connection-local variable that is applied (and reset) in `with-connection-local-variables' is also added to `file-local-variables-alist' which makes it a buffer local during the call to `hack-local-variables-apply'. Question is if the file-local should be reset at the same time as `kill-local-variable' is called in `with-connection-local-variables'? Anyway, on my end this can be resolved, I have a workaround in place. So this is mostly FYI. Cheers, David > > Best regards, Michael.