From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 09:32:04 -0400 Message-ID: References: <87v97y94t6.fsf@gnus.org> <87r1il7e40.fsf@gnus.org> <878s4s1bd3.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40531"; 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: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 06 15:33:12 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 1lee7r-000ARE-JW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 May 2021 15:33:11 +0200 Original-Received: from localhost ([::1]:45658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lee7q-0005dT-Ie for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 May 2021 09:33:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lee7i-0005bO-G9 for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 09:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lee7i-0004dE-8t for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 09:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lee7i-0000gt-36 for bug-gnu-emacs@gnu.org; Thu, 06 May 2021 09:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 May 2021 13:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47843 X-GNU-PR-Package: emacs Original-Received: via spool by 47843-submit@debbugs.gnu.org id=B47843.16203079342634 (code B ref 47843); Thu, 06 May 2021 13:33:02 +0000 Original-Received: (at 47843) by debbugs.gnu.org; 6 May 2021 13:32:14 +0000 Original-Received: from localhost ([127.0.0.1]:37552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lee6v-0000gQ-RG for submit@debbugs.gnu.org; Thu, 06 May 2021 09:32:14 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:23058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lee6u-0000gI-KX for 47843@debbugs.gnu.org; Thu, 06 May 2021 09:32:12 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5C388806F1; Thu, 6 May 2021 09:32:07 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0C2B980695; Thu, 6 May 2021 09:32:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1620307926; bh=UubwFTrhZp6bZg98lc2cYgOykGTUsUID4HMVPzwGFBk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cA4fkZ0gAlbmXO8XrNFGR9JP437p5doB+tJQWnBk2b6F/VtPqu3XJKgyo0UlpZFAk 1+aRHwP67gNqso69W+5C3nIbg2ZZxhjzuqIqnLUMtIf6G/44AdZY373CWj2RC6zGYd FtQOCEHO7F/ybC7R8CeWPr2DfhdYG3GKaIynhJfwjM1OE02WeTvqB6tj1CzGgWU2z2 srqZFHXl4v7yjqE5jbGqjPfAA05ZF4vouPyBu8BTDTS/871Xqs90f3fdPXJkV69IQN uHCkKdeFcAlniTPMf7pwjY5rx5UbmAAdGmrXlkSgAZza+ju6Knp5C0i4p5aI4xZuUk 7vJ4PV5F9jKPQ== Original-Received: from alfajor (76-10-140-76.dsl.teksavvy.com [76.10.140.76]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id CCBA21209D2; Thu, 6 May 2021 09:32:05 -0400 (EDT) In-Reply-To: <878s4s1bd3.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 06 May 2021 11:04:56 +0200") 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:205833 Archived-At: >> 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)? Sounds about right. > The new list could be called... uhm... > `permanently-enabled-local-variables'? I like mine pink with grey octagons. Stefan