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#47843: 28.0.50; Setting enable-local-variables to nil *appears* to inhibit lexical-binding (but doesn't) Date: Thu, 06 May 2021 11:04:56 +0200 Message-ID: <878s4s1bd3.fsf@gnus.org> References: <87v97y94t6.fsf@gnus.org> <87r1il7e40.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="26896"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Phil Sainty , 47843@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 06 11:06:26 2021 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 1leZxi-0006tg-L6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 May 2021 11:06:26 +0200 Original-Received: from localhost ([::1]:49774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leZxh-0001ca-NA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 May 2021 05:06:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leZxK-0001bA-4a for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 05:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leZxJ-0002T5-Te for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 05:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leZxJ-0005En-Nn for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 05:06: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: Thu, 06 May 2021 09:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 47843-submit@debbugs.gnu.org id=B47843.162029191120112 (code B ref 47843); Thu, 06 May 2021 09:06:01 +0000 Original-Received: (at 47843) by debbugs.gnu.org; 6 May 2021 09:05:11 +0000 Original-Received: from localhost ([127.0.0.1]:37078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leZwV-0005EK-IM for submit@debbugs.gnu.org; Thu, 06 May 2021 05:05:11 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:45542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leZwQ-0005Dt-B0 for 47843@debbugs.gnu.org; Thu, 06 May 2021 05:05:09 -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:In-Reply-To:Date: References: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=eDula6UzAuCw+kGlow7XSWr3aUVoWnLKUGamH6IpUQA=; b=K4f/k48Ch7dJKN4A/kXj12XVD2 N0bW8u+s/Y06UyQtsy0a01+XP2KTABqZ6aNd3XEyinnfiiLIosoCyhlDIqq1XiMLhC6eoGwA+QUmG ddxiAndA2WXagPctvzk1t80dh6IDyy4Go7OO3RoNrpUODTgi7f+UKb2fxaLIlbOLHis0=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leZwH-0005Cw-1l; Thu, 06 May 2021 11:04:59 +0200 X-Now-Playing: Zola Jesus's _New Amsterdam_: "Orthodox" In-Reply-To: (Stefan Monnier's message of "Wed, 05 May 2021 08:46:42 -0400") 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:205779 Archived-At: Stefan Monnier writes: > Indeed, an exception would be welcome for that var, otherwise there will > be bad surprises. We could probably have a variable holding a list of > vars that always obey file-local settings. Poking around for a couple of minutes, would the right way to implement this be to always call `hack-local-variables' in `set-auto-mode' here? ;; hack-local-variables checks local-enable-local-variables etc, but ;; we might as well be explicit here for the sake of clarity. (and (not done) enable-local-variables local-enable-local-variables try-locals (setq mode (hack-local-variables t)) But then filter out all variables except the ones in this new list in `hack-local-variables-filter' (if `enable-local-variables' is nil)? The new list could be called... uhm... `permanently-enabled-local-variables'? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no