From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty 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: Tue, 4 May 2021 23:45:12 +1200 Message-ID: References: <87v97y94t6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29464"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: 47843@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 04 13:46:18 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 1ldtVJ-0007ZA-Pt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 13:46:17 +0200 Original-Received: from localhost ([::1]:34090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldtVI-0007ZA-KO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 07:46:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldtV7-0007Xe-3C for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 07:46:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldtV3-0003J3-W0 for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 07:46:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldtV3-0004e5-U5 for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 07:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 May 2021 11:46: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.162012873317848 (code B ref 47843); Tue, 04 May 2021 11:46:01 +0000 Original-Received: (at 47843) by debbugs.gnu.org; 4 May 2021 11:45:33 +0000 Original-Received: from localhost ([127.0.0.1]:52731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldtUM-0004dm-5J for submit@debbugs.gnu.org; Tue, 04 May 2021 07:45:33 -0400 Original-Received: from smtp-4.orcon.net.nz ([60.234.4.59]:33265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldtUJ-0004de-GV for 47843@debbugs.gnu.org; Tue, 04 May 2021 07:45:16 -0400 Original-Received: from [101.53.216.162] (port=59117 helo=[192.168.20.103]) by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1ldtUG-0006Q1-N8; Tue, 04 May 2021 23:45:13 +1200 In-Reply-To: <87v97y94t6.fsf@gnus.org> Content-Language: en-GB X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:205598 Archived-At: On 4/05/21 10:22 pm, Lars Ingebrigtsen wrote: > `C-M-x' on the two forms failed, as expected. (When enabling the > variable, they are successful.) > > So I think everything works as expected here? That is, the buffer > doesn't use lexical mode if you set enable-local-variables to nil. > > Are you seeing something different? I see the same thing. I also note that `eval-region' produces the same result as `eval-defun'. (I'd only tested `eval-buffer' initially, and that respects the `lexical-binding' setting.) My main point was that I'm dubious that enable-local-variables should be allowed to affect lexical-binding in any situation. While it's strictly true that the lexical-binding implementation utilises a file-local variable, I feel like this particular variable should be guaranteed to be respected when set, because it fundamentally changes how the code will be interpreted. Are there are any other file-local variables in that same category? I couldn't think of any offhand, and so this seemed worthy of having an exception made. -Phil