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: Wed, 16 Mar 2022 19:35:42 +0100 Message-ID: <87y219iw3l.fsf@gmx.de> References: <867d8vc5dq.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="23288"; 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 Wed Mar 16 19:36:33 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 1nUYVd-0005qM-G5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Mar 2022 19:36:33 +0100 Original-Received: from localhost ([::1]:42308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUYVc-0003G8-1m for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Mar 2022 14:36:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUYV8-0002h1-UY for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2022 14:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUYV8-0006fO-Lv for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2022 14:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nUYV8-00016z-Fu for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2022 14:36: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: Wed, 16 Mar 2022 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54405 X-GNU-PR-Package: emacs Original-Received: via spool by 54405-submit@debbugs.gnu.org id=B54405.16474557524255 (code B ref 54405); Wed, 16 Mar 2022 18:36:02 +0000 Original-Received: (at 54405) by debbugs.gnu.org; 16 Mar 2022 18:35:52 +0000 Original-Received: from localhost ([127.0.0.1]:52292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUYUy-00016Y-D0 for submit@debbugs.gnu.org; Wed, 16 Mar 2022 14:35:52 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:40781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUYUw-00016L-Io for 54405@debbugs.gnu.org; Wed, 16 Mar 2022 14:35:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1647455743; bh=ZZWDbNynFaL8Ra+6KCCEw4HiHMipg0TwHg7Hbzcj0JU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=PDQzgIeDROxFW/oHu5nC1tAi/5S4SdIbBuSbq34WgzLC0RQNDhVZxQN/slnsyhJ+F OAX9OQyY0qJLWUv4sZ+m1oS7uYyLKHB3G7Lt+i7gdrBlQu1RnRTMtSCPOkXISTBTC5 hPknH1yFSFWCRgnSUIcnXEBo+mfaS6LZLGHKbGG4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.124.64]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M59C8-1nVeQN0btU-0016GT; Wed, 16 Mar 2022 19:35:43 +0100 In-Reply-To: <867d8vc5dq.fsf@tiefighter.i-did-not-set--mail-host-address--so-tickle-me> (David Landell's message of "Tue, 15 Mar 2022 21:44:49 +0100") X-Provags-ID: V03:K1:BEzYt4itne9e50LMkBIeu2u6XtWpezn+Avd/keD+RTW4ztWUNfH ALWM/EAEiQ5GmEGEs9eMf3cddptdIGx67VNDqq8N8hHquFtNXrss2K8U5useJzp8fDHR0xl nSQZ0Gf2mkIOQR/ozL134RhDGyMnNxxw5s8Y1Li4RC6h9ORVYWckImhjcKE7b1cywe/ssFJ SzjZgMPxEyIPrTlV8v3Vg== X-UI-Out-Filterresults: notjunk:1;V03:K0:KX/Qip3HbDs=:XM3wq1hBCVro56cV6HgTAe aeD+FOd5IS22dN3kqjayKEPTNqTrvOLZZMFscm1GDNWNj4gwK3/mc8GU0V4GBqoWBg4Bga9rJ mQSdc2lAW54RprV78DIBWyUoi2eoUNWWpexDc8BhZjCzPwYTlGCR87mjbTiARSHPrukGlOaD+ RDMPhSocgxBgRCXj0NOLtkZK5ALUNHzWfYv48USDghPVkmSl/MDgPFgpQiyDmVJ8Pyhfu0GWs Bs515GC6ExZglHCvyJOLdwyAYN+sFpYhx3nFXzYtaX9TXT630dUEK6uiMB4fOcc2XOGVR7CfE ghlivipzCMZ/Gf3TWO8bGDbNrIm3JunVMk1HUHTWHRGT5vMGKo7SP7oSzdkMzoF8/RBl9UEm6 gLgNfIjD7/mLRD94/5FzeIscDce69ByW4f0A0wk7e/gxzWOry/2PijBDD72/dx2oymYwI6MZf xBJHyZ9qB3GL/H5YJ8jIabyLFjIjuv68jeOVdyt53k9JeKvWrcWdnTmxDPMjLwAuc8SIWeSg1 KnUIs+UNcLUxZFdHvleI79LH+QqaJyPxPiudmwr25YJNQJGn8UNzRElB44sWOtTvZyBGnDelc ZXRIqmlkYyfRVCXBdxU/Rnqeu9zp1zskcbk+ozu5Zt/jgZbaMAR0RM1K9Dem4nbOMzeOOXJv6 LSiozBQYFeh767cXohe0rVmxsGPdC6JWpZKLGeppkvMyQGsRYyo2ImqHhderzc3g3Ordn2dl+ emWcQsGfkJJmUhGAuhxBGZ4E4WLNv1QTCHd21h0gaeTd/PCoNl9qxp0OpevDLdtxEdq/+PY/ 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:228444 Archived-At: David Landell writes: > Hi, Hi David, > Is it possible to reset a connection local variable to the default > in a buffer when default-directory changes from remote to local? There does not exist a dedicated function for resetting. What I recommend is to use the macro `with-connection-local-variables', which runs BODY with applied connection-local variables, and a cleanup to the previous state afterwards. > Best regards, > David Landell Best regards, Michael.