From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: Why is lexical-binding's global value ignored? Date: Sat, 28 Jan 2023 19:44:59 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1Jrf6BS0Lv6TSPe7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21875"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 28 19:45:52 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pLqD2-0005Sq-MT for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Jan 2023 19:45:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLqCL-0004Lq-FK; Sat, 28 Jan 2023 13:45:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLqCH-0004Lb-Uu for emacs-devel@gnu.org; Sat, 28 Jan 2023 13:45:06 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLqCG-0003Kh-1P for emacs-devel@gnu.org; Sat, 28 Jan 2023 13:45:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc: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=djm2yxTwzagg2zwaV9EsUU15lIeEMVH2Ns/cPDPsSTo=; b=gJJ0CM35KQtO5Zq6NsXQtRDvLm wwsTtpC4l63RSb9irpCwxLvqujqzhgafnGQgDK68OXyxqPhGZd05gsHhsI3ALX8BuqTQYaCjT8c2n cTyiJSD2H3UooxZEvnTT5FdA6dNNr/1NhLPRbnyuGYa7wf3E7a/Eqg16EDrnTvEhEAGguErHsWn/k CoXiGqFbcxYaRat2GStXT6VWnlca7flCYOVNOXj4FT3MmVKOnI84NCY+fIoFQ+40O1SccKTxCMwPz J9fSWZL7HCm+YfVIi94CsBFcgfnIhRUTBKWtmOLteEuIjcH3uJExzQtR/t9BHJrJlSmOC/iWdt0mH 3z60oiGw==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1pLqCB-00018T-DK for emacs-devel@gnu.org; Sat, 28 Jan 2023 19:44:59 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302728 Archived-At: --1Jrf6BS0Lv6TSPe7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 28, 2023 at 09:11:41AM -0700, abq@bitrot.link wrote: > tomas wrote: > > I think it's backward compatibility, mainly. Files with no explicit > > lexical binding setting (may) contain code which expects dynamic > > binding and would break. >=20 > As I mentioned, the global value of lexical-binding defaults to nil. Yes, you did mention that. > This = is > the case in Emacs 24 through 28, and obviously will be in 29 too. Therefo= re, > even if the global value were honored in 29 and future versions, files wi= th > no explicit setting would continue to get dynamic binding, as they expect. > They won't break. >=20 > In order to break anything, you would have to do so explicitly, via > (setq-default lexical-binding t). The docs only talk about a buffer-local variable, so I'd guess that the global variable of the same name is simply ignored. Cheers --=20 t --1Jrf6BS0Lv6TSPe7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY9VtJAAKCRAFyCz1etHa Rp+BAJ0V08m7h64UHHxCc5gP+rPNMOWb4gCfeER9Y0/3b/YPxRK8uwkQvJe8b6g= =o1TL -----END PGP SIGNATURE----- --1Jrf6BS0Lv6TSPe7--