From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: Default lexical-binding to t Date: Sun, 03 Nov 2024 14:44:34 +0800 Message-ID: <87o72w3jfx.fsf@melete.silentflame.com> References: <877c9lykpz.fsf@gmail.com> <10694ea0-f2cd-0b2c-e90e-b21291c953c4@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35283"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , Visuwesh , emacs-devel@gnu.org To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 03 07:45:07 2024 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 1t7UMF-00091W-DG for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Nov 2024 07:45:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7ULw-0000uP-Qa; Sun, 03 Nov 2024 01:44:49 -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 1t7ULv-0000uG-6X for emacs-devel@gnu.org; Sun, 03 Nov 2024 01:44:47 -0500 Original-Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7ULs-0003Cp-E8 for emacs-devel@gnu.org; Sun, 03 Nov 2024 01:44:46 -0500 DKIM-Signature: a=rsa-sha256; b=ORd3ZUuvaVX3TDp9hWN67/jvMToZBwwXCA4H4UxSRbqWZujDCI93zNjc4BCj7LxQASprioRi3e56YOJSxzEQQIBOJfWuDkBaA5pvCzrUH8bU8oB4CmI34JFi9pTVDSZDmqKsE4bVG9Eop5uvCyaonMdhGDTNxN455eg5n47qQGTdGQonR/U7Qs9eWB9RtLNTcdBKxbtA6V54bbIVm6mKusctgI09L7hCyGODIbDobCnL7r0tx0uIottSlR3wnH0yMnvmYf7yaCunC+o6VdVzwCmZ1PU0i0KIXEQcCPXdewYKv6HwvNU8DNpHUqordOq1+rqjxUxUH/g73prnLuiY/Q==; s=purelymail3; d=spwhitton.name; v=1; bh=ZHN3y5oibH9HJvkVFYHOqdDaR775WJUucBM0f7U0Iw4=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=ToGDqi81xTpgya4EnSC0z8fVZxBtb6KhcstKFMuxP1q1gq7w4Bc44PcUCTjbu/wDWRCo95AtYiQW6C8ECzFV7OU10tfhVsDW2C4TYCZSAABTsPh8b3/qbcuXqEcwVHT/uJVOJakvtTbX74r3C56ld9dXf2MzFzdrXM6Sb8+AEfWb9brSaak8OJo5aeEBuTshxwNrxOD8qfagWMA3BOnGH2lPDQZfZUECaySym+rxvakXNkxSOyKvWVa0TKwueAUmYimMPMhCH4VsgVO2jOlf170p5mJHm3+0tEt10AHHk1GR0H9XlDq7rePW5UCztZ5vExu6SiPFYSHVZ7uNwod5Rg==; s=purelymail3; d=purelymail.com; v=1; bh=ZHN3y5oibH9HJvkVFYHOqdDaR775WJUucBM0f7U0Iw4=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: emacs-devel@gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 2067719305; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 03 Nov 2024 06:44:37 +0000 (UTC) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id AB4257E1938; Sun, 3 Nov 2024 14:44:34 +0800 (CST) In-Reply-To: <10694ea0-f2cd-0b2c-e90e-b21291c953c4@gmail.com> (Jim Porter's message of "Sat, 2 Nov 2024 13:42:24 -0700") Received-SPF: pass client-ip=34.202.193.197; envelope-from=spwhitton@spwhitton.name; helo=sendmail.purelymail.com 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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:325047 Archived-At: Hello, On Sat 02 Nov 2024 at 01:42pm -07, Jim Porter wrote: > On 11/2/2024 9:24 AM, Stefan Monnier wrote: >>> Would it make sense to alert/warn the user when loading such a file? >>> It would cause less confusion to the user when the code is suddenly >>> not functioning just right. If there was a warning, she could add the >>> lexical-binding cookie and call it a day (or nag the package >>> maintainer about it). >> We could easily make the code of `load` emit a message when loading >> a source file without a `lexical-binding` cookie, yes. >> I did not include such a message in my patch because last time someone >> suggested such a thing (Mattias, IIRC) it didn't seem very popular. >> But that's easy to add, and I'd be happy to add it, > > I also think lexical-binding is the de facto standard at this point; I'm > not sure I've seen any dynamic-binding Elisp in a while. (I know it's still > out there but I've only seen it in very old packages.) Paredit is a notable example which doesn't have the cookie. I don't know whether it actually uses any dynamic bindings but I think there's some chance it does, based on the style of some parts I've read. -- Sean Whitton