From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: Default lexical-binding to t Date: Fri, 01 Nov 2024 12:03:23 -0500 Message-ID: <874j4qyjhg.fsf@red-bean.com> References: Reply-To: Karl Fogel Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19864"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 01 18:04:27 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 1t6v4V-00054H-8F for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Nov 2024 18:04:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6v3c-0000BZ-Sx; Fri, 01 Nov 2024 13:03:32 -0400 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 1t6v3Z-0000BG-Vt for emacs-devel@gnu.org; Fri, 01 Nov 2024 13:03:30 -0400 Original-Received: from sanpietro.red-bean.com ([45.79.25.59]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6v3Y-00053U-AM for emacs-devel@gnu.org; Fri, 01 Nov 2024 13:03:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=red-bean.com; s=202005newsp; h=Content-Type:MIME-Version:Message-ID:Date: Reply-To:References:In-Reply-To:Subject:Cc:To:From:Sender: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lG2jZ/AhOjKlySRAPeYzYt/MGJmM50oTh6Zb79O6Dxg=; t=1730480606; x=1731690206; b=UPyVs7jz4MGwouQCWOd4gzB6EGOZJUu7nWCfwYRwa5Lp16+zS2ps52Gj9UJe0gzW3pZEkAuW9Rk fDgHSnWqr07OMKMdNq7LHv8Dmk4JN0omjH551N+Rd42HcqUQ/D/eZWk0upl2hIebIm1GFm/HziFDN lvI4uDIcFB9hsyX0Fkcav0aqCpDQyvUv3aWaEhpQhXBXPR6NcZCAZ1Ede6ud2EpBwmhdogNUHcNZC iAFcCAT1Y6IO5p38gcT9U08NTViaMvp+DoSD5PHxEZ/k524fd/eP+QC6Oq56tqENYR375VVM/d7yz G2buFPltMS//akTz9veWT5LD5pEMVgE4ltlA==; Original-Received: from 99-112-125-163.lightspeed.cicril.sbcglobal.net ([99.112.125.163]:58546 helo=floss) by sanpietro.red-bean.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1t6v3U-003B3j-0l; Fri, 01 Nov 2024 17:03:25 +0000 In-Reply-To: (Stefan Monnier's message of "Fri, 01 Nov 2024 08:55:56 -0400") Received-SPF: pass client-ip=45.79.25.59; envelope-from=kfogel@red-bean.com; helo=sanpietro.red-bean.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:324994 Archived-At: On 01 Nov 2024, Stefan Monnier wrote: >In bug#74145 I suggest that it is time to change the default of >`lexical-binding` to t. Clearly this is a breaking change, but >only for >those files which: > >- Don't have a `lexical-binding` cookie. >- Have code which happens to behave differently under the new >dialect > (such code is not rare, but a lot of code works identically in > the > two dialects). > >I believe by the time Emacs-31 will be released, such files will >be >uncommon, and it is easy to fix them (either by adjusting he >code, or >by slapping a `lexical-binding` cookie). +1 It's time. Anecdata, but: a lot of the random Emacs packages I encounter in the wild lately have `lexical-binding` cookies already (and usually to t anyway). Most recently https://github.com/kmonad/kbd-mode/blob/master/kbd-mode.el, for example. No doubt there are also many that don't, but I think knowledge about the new dialect is diffused widely enough now that when Emacs' default switches over, some user of a given package will quickly recognize what's going on and submit the appropriate change to that package; in a few cases I have done so myself. Best regards, -Karl