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: Wed, 05 May 2021 10:56:47 +0200 Message-ID: <87r1il7e40.fsf@gnus.org> References: <87v97y94t6.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="13454"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47843@debbugs.gnu.org, Stefan Monnier To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 05 10:57:35 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 1leDLa-0003Oh-Jk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 10:57:34 +0200 Original-Received: from localhost ([::1]:48666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leDLZ-0008D2-KF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 04:57:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leDL4-0008CP-OI for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 04:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leDL4-0006QN-4D for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 04:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leDL4-0006Te-2r for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 04:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 May 2021 08:57:02 +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.162020502124892 (code B ref 47843); Wed, 05 May 2021 08:57:02 +0000 Original-Received: (at 47843) by debbugs.gnu.org; 5 May 2021 08:57:01 +0000 Original-Received: from localhost ([127.0.0.1]:58742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leDL2-0006TO-Pj for submit@debbugs.gnu.org; Wed, 05 May 2021 04:57:01 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:33704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leDL0-0006TG-GB for 47843@debbugs.gnu.org; Wed, 05 May 2021 04:56:59 -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=6pFgVTSBR808etscuN5Lm42xCklz9SNgPippZoB8YfY=; b=BekiWnTUAzwzd3osr0BLjksUdE RIgJQtMyjcLZZUx8USRyRVJK3DSnBR1WEy61wBj6sku2dRe+vpVIqqc/RV8eIsYLeaGYDSyXjr9pB WfGcxOY8TDNfpVfC8TelXhqnmdtHAoiCs8zgjs9nXHmBuyoSruCRzKIEQOZ2er22vvEY=; 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 1leDKq-0006qT-2K; Wed, 05 May 2021 10:56:51 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUjFBNZJBF2SAul RA/Nhwr////S7MhlAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UFBQg2G3gJVvIAAAGvSURBVDjLdZSB saMwDESl5AqQzC/g204B2KKCQP813coGYo6cZjJJ9JB2kQVExJxtWQ0RQlUhUtqDc502B6rK/v8E oeRWIj3FsgNcmA0lZU+cgFVtAYhHi1NEg9m2qpy9zx+TQURZ6SYC5bdONScZQRO3ArshlH8qJrNc wWNtOTldBRTAi6Z8OugAJc2sTpHGAAkCHoUhwmkoY4GzMhU2IVvKWPXwMRbehKutV6XXavGJHKzI RQlg/rO50DRfwGNV+lkZN8pXQLA6GcCbrq2acQfrPU8EsGzlC4iEo4lfegn5dFhujaAvwxkesWDE DxlO/YhA/wGIGoTuGoiS6DtobXyVbqzttZ/z4C3/+p3oAT5Hsq0+DIhEHVtxsG0T4tjBUICd396E w+ByBVg7lOA+eOaLK4BlLdi559znKSdYFquV6Onu+GMMFZVT2QF11+075Ehh7pMn/QBfVfLVOcbF +1OGvLSr/Taxyu3TNWIbEO8Ae55E+s6byz7LXq8hHTOYfG1/fg+QEpqgFK+MF7T3h8hBtuqkFaNT 88IdmKXkQFhe3SODJLP2+onqE3x7+i8iTzq2pPwrqAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0w NS0wNVQwODo1NDoyNyswMDowMPpatDgAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDUtMDVUMDg6 NTQ6MjcrMDA6MDCLBwyEAAAAAElFTkSuQmCC X-Now-Playing: Bark Psychosis's _Manman_: "Tooled Up" In-Reply-To: (Phil Sainty's message of "Tue, 4 May 2021 23:45:12 +1200") 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:205668 Archived-At: Phil Sainty writes: > 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.) Ah, right. Hm... well, I guess that's kinda logical? But it's a bit confusing; yes... > 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. Hm... can't think of any other variables like this, either. I don't really have an opinion here -- I can see arguments for both sides. Perhaps Stefan has an opinion here (added to the CCs). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no