From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#54405: 27.1; How to reset connection-local variable Date: Fri, 18 Mar 2022 08:23:00 +0100 Message-ID: <87lex7iv1n.fsf@gmx.de> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3311"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 54405@debbugs.gnu.org To: David Landell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 18 08:24:10 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 1nV6y2-0000hJ-62 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 08:24:10 +0100 Original-Received: from localhost ([::1]:38920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nV6y0-0005jP-MQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 03:24:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV6xu-0005jH-Gl for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 03:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nV6xu-00025W-8D for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 03:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nV6xu-0007Hg-0U for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 03:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Mar 2022 07:24:01 +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.164758819127919 (code B ref 54405); Fri, 18 Mar 2022 07:24:01 +0000 Original-Received: (at 54405) by debbugs.gnu.org; 18 Mar 2022 07:23:11 +0000 Original-Received: from localhost ([127.0.0.1]:56117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV6x4-0007GF-OP for submit@debbugs.gnu.org; Fri, 18 Mar 2022 03:23:10 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:58477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV6x3-0007G1-HA for 54405@debbugs.gnu.org; Fri, 18 Mar 2022 03:23:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1647588181; bh=Yny67OaWQHeVlBzJgt9xZrVwph3jxkcU1zvEACskDGQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Slj0BhzBgaIhLsi5HfGM8Q7UV+PUL5tY3Ly3CvymKMUjaUVGn/Jx7yL7Oj889fCnC +8u990VqCCZ8ujQWprGoQE+eSAuD6q3A1snRd6+DnsUUTdU35n4VBnM1/iZIas44h/ 7NGNCyTVAn3o4yuHkDqumX19IfiWasZNYcZ6M7dM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.148.52]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3bX1-1oE6P017Jr-010fO4; Fri, 18 Mar 2022 08:23:01 +0100 In-Reply-To: <861qz0d3lc.fsf@tiefighter.i-did-not-set--mail-host-address--so-tickle-me> (David Landell's message of "Thu, 17 Mar 2022 16:02:39 +0100") X-Provags-ID: V03:K1:udtjhI9WxofzeS0BobKDgTiXJoIFLQr41OWcfnQqilbnHAbSZMa 5g+yQAO2qZ56UeKbqOTsWB2igNvtG++gx9r7y79nulH0K+ccWOoB+/rkTJqwjLqBeawAhHj Z5zn7wMMkhVv+OMKc4E8VeD7Be2HZ/UWQAFTLbL22pOv0JjuqpLqSlMxrRMJXuad/GCOQkF 7zD5slhBrF0KT6nDAqc5A== X-UI-Out-Filterresults: notjunk:1;V03:K0:8vJnjFCXFPM=:eySPQClb/ks6uallK41je6 l58eYjTgZS9gI484/OFI+of05O3HDtiEKP11cUzFGV1af2t0B4Tg2x8cpIh0Sv8O/ZeXu7XKy +flEeN7+t49sgLB8tkEk82oHr699p+Nybr+KmqOLRhjT1VmjRX/w0RIEuTmrNnsyGL/Wz83de 5mzfDkpk6mRbVM2zyMtDfL29/CQWSfkG8TiU/+ECrsFxpLk2OPWsB1r2ILvpHEpNgk1WlCkSH edyroTv8Dh7esLMeveVlLbD1TWr2uh2afS7DoDv1JoLuWHsBcQrlFEYk2+2fGUiJGJzBdrr80 2HC4huwwPvE4kS7orKLil/jM6npu1mi4wIEF0mtdtH9yh5p4GdyTo4evvuk9T3W502+74aief suiG1FMhdUmRqMUT2x4/V1S9sYOlpIRb+KZFSrtErHYd3cVNk1+KQW3BU5utCsYYwjxu4Zy0z S4CGa/hbsCjBecuPWvj0wp4ztgTRZDdwxVqkvS8MRO207et4yB8YWLBJXDpUcGncQM2ndCj/e jJ/LtXZP6mHNx9QcoxmmUpGq+00Ihv/igg++620O1MsbVS+eJim48A7nNvZyhW1BukpwZz0as 9NWrluxJzvCNAXWdeVXkhbXNiNhyho8IWJBHLS9Fqm6ej0ER2XFBnGoducfgAjfniixMw7BwX oZP5gPTWtz75K3Qhqg5E1GImNd2C/uWRsZCAqqpBEL7WM2f4JuntjpHbLMY+FvI7za2qMDJXM huV4DcK4uaet/uePvAWjbkHLBOoODBBcayX249IT5mvOMokjbZ7qBlrzzKBwUlpnmvC0t+CV 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:228528 Archived-At: David Landell writes: > Thanks Michael for the answer, Hi David, > This solves my small demo test case but unfortunately it doesn't solve > the main use case I slightly described. In the latter case something > else is calling hack-connection-local-variables-apply outside of the > resetting macro. I think it's possibly from tramp since there is a > process running in the buffer on the remote host. Yes, Tramp does this in its connection buffers. > If I understand the criteria matching correctly, it matches only the > fields available so if I use only the :host key, an unrelated criteria > will match as long as it is using the same :host key, right? Yes. > So, seems I should use my own :application key but then I can't use > the resetting macro since that is not applying locals with a unique :application > key. There is something there with 'tramp' being applied by default that > I don't understand though. `with-connection-local-variables' calls `connection-local-criteria-for-default-directory' w/o an APPLICATION argument, that's why `tramp' is used by default. Perhaps we shall extend `with-connection-local-variables' to accept another :application key. But for the time being, you might copy `with-connection-local-variables' into your own package under another name, and modify it accordingly. > Anyway, this is possible to work around now that I think I understand > it. > > /David Best regards, Michael.