From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#26624: 26.0.50; Generalized variable `buffer-local-value' does't restore local flag Date: Mon, 22 Aug 2022 08:53:53 +0200 Message-ID: <87r11822gu.fsf@web.de> References: <87zid6udys.fsf@drachen> <87o9q0m77u.fsf@users.sourceforge.net> <875yilmg4l.fsf@gnus.org> <87zgfxkzki.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4985"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Philipp Stephani , 26624@debbugs.gnu.org, Noam Postavsky To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 22 08:55:46 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 1oQ1Ld-00019D-Ka for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Aug 2022 08:55:45 +0200 Original-Received: from localhost ([::1]:34828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQ1Lc-0006Vr-7e for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Aug 2022 02:55:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQ1Kx-0006V5-3r for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 02:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQ1Kw-0004Jz-Oj for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 02:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQ1Kw-0007ec-5j for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 02:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2022 06:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26624 X-GNU-PR-Package: emacs Original-Received: via spool by 26624-submit@debbugs.gnu.org id=B26624.166115126229355 (code B ref 26624); Mon, 22 Aug 2022 06:55:02 +0000 Original-Received: (at 26624) by debbugs.gnu.org; 22 Aug 2022 06:54:22 +0000 Original-Received: from localhost ([127.0.0.1]:37645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQ1KH-0007dP-OK for submit@debbugs.gnu.org; Mon, 22 Aug 2022 02:54:21 -0400 Original-Received: from mout.web.de ([212.227.15.4]:34007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQ1KF-0007d6-Uj for 26624@debbugs.gnu.org; Mon, 22 Aug 2022 02:54:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1661151236; bh=qWTwfJ4uO7g9DNm/aHHpEQGpra482PqCZi+DB9u7vag=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=dH0EnZQTjq23d4afSclXkgtF/V9yovkxp7alH4XWa+1tq9x4hP33PHpLXKsnV8X9t 4ZjmGLH0cHyz1XMKJ7s+j5ILtETKFKlNwAYSS7YW8ll2+HrEo2jZMUUOSe1TousUTE txZXZg78E7jcBTDXslFc1oxA9PlmiArS2j5bIzVU= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.57.248.18]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N14pS-1pRQsw2XMY-012lc0; Mon, 22 Aug 2022 08:53:56 +0200 In-Reply-To: <87zgfxkzki.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 22 Aug 2022 00:21:33 +0200") X-Provags-ID: V03:K1:B42TAd0Un/DLAgN9wFnDTHcfA0f/bRmF8GZ6Afxy7bdO8QlJews teH2VpGLIN3MTe8hxCuVh2QnpOOTzsz4iEiUcMatT2ZekXVqB/3fUCM92CLuwk4HD3vLqhI ijFsO3pDTRdnMNy+0x/Sc3gcuVeS4eZ2aVLANmpkKKNnYiMgykVcn+IVIofWQB2Aryzm+ye liPxUArewr8a5CkBgo9dg== X-UI-Out-Filterresults: notjunk:1;V03:K0:FOSWgmxBaQQ=:BbEsWMmjStCAXvhyJx8KMT Yo4j081Wjfj0x+8ZvM2OtXCXKSlAz+qVyjHytHXyioS2cqtwyXn6DP1oZIN6rpSl1kmaGX7Sr Bm7gpzNSj/3rfIYcLSOJ5dxIuRH0nnG5nXfxxicZIz4veVco/OtAy5YFNPgEehr8vfalqrhAV 1A1zvi+Z9N9/567VRCfKdGeqoQOJn6kyOJphx8HmzgL27TMEHwzYgOE7dCcetYiZbToAX9DR5 ff+TQeAYI5BRL9R5PyGyM074UJvtlCQgdUVla37eTDRxwCKw8ZOOpN7nTk8lGIeC18c0srgPv Hvyp5fKNcohIG1rEAb566T2t9TXCD+C5JqeZkxP2NfTpohk+jtl8FJ3t870iCY48LPxR2WrbJ t89ANrMtY5Y4wsAeUfonNsh4BCCQ8I1FqoazAS04NwDjCDLUE58iy+VTSteMsBcb/IcFIDclj b04DKeGqdDqGDeMAOgun6gV649FIsde9dI3mFQweCkYl4SGBh5+4qos5zoKBIisX7qG40FzxW Euharl9qd6nWWYmfaNSqu2VvTG819EWgfiVj3AlpVmMnfjwHEhWsU55t/HknxbXHlDA2BG6Kl dumQoaaKeSgbvXeOxOb+yONLq4Tw4Aen6sTb7nwdCwhcf3L6oDSvPPQcGuO/6KP7FYl+dXHyv En7s3QudvMdiUHPeQc59sRCtOaehrt9Ub9c73EMRgR4D56tvZgBMbpzIHJJaXKS9rYUDNWWYd AxHNKgE3r/lZY2pjBA6w0VqQDZELSGv7fHKV8nGDd6HD+4uZAYvEjQ28YzlrmpdnFlEVfo4u 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:240380 Archived-At: Lars Ingebrigtsen writes: > It turns out that while not well-defined, it's useful here: > > (define-minor-mode electric-indent-local-mode > "Toggle `electric-indent-mode' only in this buffer." > :variable (buffer-local-value 'electric-indent-mode (current-buffer)) > > Rewriting this to avoid this is slightly cumbersome, it turns out. Why not use the (GET . SET) syntax for :variable? Michael.