From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Why is lexical-binding's global value ignored? Date: Mon, 30 Jan 2023 14:32:58 +0200 Message-ID: <83r0vc5hj9.fsf@gnu.org> References: <25094a24f891856fe0757fa34d80017b@bitrot.link> <83bkmh96gc.fsf@gnu.org> <43216edcfeada34083e17a8230af2ee3@bitrot.link> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6979"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: abq@bitrot.link Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 30 13:33:56 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 1pMTMC-0001XB-C8 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Jan 2023 13:33:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMTLT-0004Wd-RY; Mon, 30 Jan 2023 07:33:11 -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 1pMTLP-0004U3-LG for emacs-devel@gnu.org; Mon, 30 Jan 2023 07:33:07 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMTLO-00050h-C0; Mon, 30 Jan 2023 07:33:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=VM3xXmeZdx5f6NiG2F/s0GdeKXKkBvarZnEW+cOriRk=; b=UjJVW4kkyHEZTVR4N9Qr TzIOus3KL5t0hziCe/PCehjDOb0TiaSXuYcNi1xsU4BcTEnBU87gc/vZcDYrlEhs/DWfQvAU6tC8U sZT7MfJ9zbbFj6eroIHkw7KffeLH30gr+aAQIJOl/RlrpXYFJNDrDyddyCXAvcr86q4BVWZtQ3GHH VtXeKUyx2RGKm98CEAyCQvNhowHs4/eIjqS5ZT5t5RK3+ZzxDodOtKkYB2ELgdhYxJAWkk81237c2 3UwIS32frtkYN3Zp3lcsE93L5krFBv1RMEE6GwM+DAeSPpOYbLXFrQzqkezIdPTD2H0XAw+g7Q5gW r+i6qPpQHZcEPA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMTLN-0005NW-LL; Mon, 30 Jan 2023 07:33:06 -0500 In-Reply-To: <43216edcfeada34083e17a8230af2ee3@bitrot.link> (abq@bitrot.link) 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:302776 Archived-At: > Date: Sun, 29 Jan 2023 20:53:30 -0700 > From: abq@bitrot.link > Cc: emacs-devel@gnu.org > > On 2023-01-28 23:54, Eli Zaretskii wrote: > > Wasn't that already explained? What happens if you say > > > > (setq-default lexical-binding t) > > > > and then load a Lisp file that expects dynamic-binding by default? > > Then it breaks! We want to avoid such a breakage. It is year 2023 out there, but there's still gobs of code that assumes dynamic binding. > As I wrote in my response to tomas: “In order to break > anything, you would have to do so explicitly, via (setq-default > lexical-binding t).” We decided that was not explicit enough, because many people will not understand the disastrous consequences. E.g., even the user's init file can fail to load. > Of course, nobody actually does that. Therefore, it would be safe to > honor the global value in Emacs 29. Sorry, we won't, not in Emacs 29. And that's final. Please accept that, even if you disagree.