From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#26624: 26.0.50; Generalized variable `buffer-local-value' does't restore local flag Date: Tue, 23 Aug 2022 12:28:47 +0200 Message-ID: <877d2ztfs0.fsf@gnus.org> References: <87zid6udys.fsf@drachen> <87o9q0m77u.fsf@users.sourceforge.net> <875yilmg4l.fsf@gnus.org> <87zgfxkzki.fsf@gnus.org> <87r11822gu.fsf@web.de> <87mtbwbnbw.fsf@gnus.org> <87bksc0xa5.fsf@web.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="12828"; 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: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 23 12:29:12 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 1oQR9j-00035t-AN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 12:29:11 +0200 Original-Received: from localhost ([::1]:59974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQR9h-0003A2-Sf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 06:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQR9a-00039s-EM for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 06:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQR9Z-0006vU-UU for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 06:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQR9Z-0008Ug-QX for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 06:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Aug 2022 10:29:01 +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.166125053832641 (code B ref 26624); Tue, 23 Aug 2022 10:29:01 +0000 Original-Received: (at 26624) by debbugs.gnu.org; 23 Aug 2022 10:28:58 +0000 Original-Received: from localhost ([127.0.0.1]:42715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQR9W-0008UP-8K for submit@debbugs.gnu.org; Tue, 23 Aug 2022 06:28:58 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:37020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQR9U-0008UB-AS for 26624@debbugs.gnu.org; Tue, 23 Aug 2022 06:28:56 -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=mGQ1MHZeeLSudFCB+vMbENw7qPpkFadw7NR4NsLxX6I=; b=ri8Q6kTj3ftGxlknJqBt9pL1qr eZ50VOCx2uepppX5qQtInUtqn2MJXB14bc87pKxQSfRceT95Ui6UXgrjPzNIvU2PUx0GcEx387Vle rDA84bSBgS4IqCC4zdSPsEPJlGcZEThKbGyC4PS9L+lltp6p+65sBsjWSLBl5PAsFH8E=; Original-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 ) id 1oQR9M-0007Ql-4R; Tue, 23 Aug 2022 12:28:50 +0200 In-Reply-To: <87bksc0xa5.fsf@web.de> (Michael Heerdegen's message of "Mon, 22 Aug 2022 23:43:30 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEXaZTP7lUnrWBDM NAWjJAV7EgL72cL///8JScQPAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YIFwoIDtOBVAEAAAGBSURB VDjLlZPbbcMwDEWZxwBOAuTboTwBqQGKSt4gGSAokP1HKB+iLaftRy9iOdIxSZGUAFQn14CwGxBx 1H+9sFNb2tskkTzMjPKA/JZPuRPUwr8KqikvOD5sQCQLMuRa30HNbehAXimXNcZ8r70OAe7zY40j QcJiXkEhLmXaU2rgEa4oUS4TpQA1QEmUavKqMDzE4jg7sDXyyoAGGMIXYi4ewvIoDj7VhNWEIsHh qEnSVEh8iVmAfDn6pgqSAW2Mgo8vKwZLORAn24KDcrEtpaxBJiuigwpScPk428DE1vPIjpHUjDO1 w6CLWi2ZW6AFAHg3iMnLuoKWNSfvUQpw8B5KIxz4OSIATc7PQFk8JbWoDbRm4wZwbmcjQgswT5zq dllAdtD56RKUFdukpEI9WNqpzmgtSTHf3GdnoFjQ0bvQxWhB7e68A7UHT2vRLW7ZqLdwPHdgH6Y6 O2GMt81tvp3Ouq4jxt1Xwc5eZyM92Aher3VyfT2vHfip519A9X/wDbU84Ai1SWu2AAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIyLTA4LTIzVDEwOjA4OjE0KzAwOjAwYKQTzQAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMi0wOC0yM1QxMDowODoxNCswMDowMBH5q3EAAAAASUVORK5CYII= X-Now-Playing: David Allred's _Smells Like Everyone's Watching_: "Your Way" 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:240517 Archived-At: Michael Heerdegen writes: >> :variable (electric-indent-mode . >> (lambda (val) (setq-local electric-indent-mode val))) > > Looks good - similar specs are already used in other places. Now pushed to Emacs 29 (and I've made buffer-local-value obsolete again as a generalized variable). > BTW: I find the definition of `electric-indent-local-mode' inelegant: > the handling of the variable is split between the :variable spec and the > body. The body enables the global mode and sets the global variable > back to nil - quite hackish. Yes, it's not ideal at all. > Anyway, if this is needed in more places it cries for a > `define-localized-mode'. I hope it's not used a lot -- we'd rather have modes work in the opposite direction. That is, the mode is local, and then we have globalized versions of it.