From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66706: [PATCH] Automatic elisp dialect insertion Date: Wed, 25 Oct 2023 11:11:52 -0400 Message-ID: References: <17C83052-7946-45DE-B660-DA7EB82001B0@gmail.com> <83sf61mb54.fsf@gnu.org> <98CD592C-0E82-4795-8168-2B5E597FF7A7@gmail.com> <8334xzlvy9.fsf@gnu.org> <87pm131pq6.fsf@yahoo.com> <83o7gmkiyn.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20579"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com, mattias.engdegard@gmail.com, 66706@debbugs.gnu.org, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 25 17:15:49 2023 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 1qvfbp-0005BB-77 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Oct 2023 17:15:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvfac-0005EO-QV; Wed, 25 Oct 2023 11:14:34 -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 1qvfaa-0005Dp-K8 for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 11:14:32 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvfaa-0003dX-CS for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 11:14:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvfb4-0002Tt-1C for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 11:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Oct 2023 15:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66706-submit@debbugs.gnu.org id=B66706.16982468829496 (code B ref 66706); Wed, 25 Oct 2023 15:15:01 +0000 Original-Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 15:14:42 +0000 Original-Received: from localhost ([127.0.0.1]:59782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvfaj-0002T5-H7 for submit@debbugs.gnu.org; Wed, 25 Oct 2023 11:14:41 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvfaf-0002Sn-P0 for 66706@debbugs.gnu.org; Wed, 25 Oct 2023 11:14:40 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 27BAF8014F; Wed, 25 Oct 2023 11:14:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1698246840; bh=rPYUK3PGWsDoJCsmiyhEbSBTleF78JA+pC/IFW7HHC0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Kk1EZUO1CibYpvbdzQQ5QKdhKr283yk9TCXI4PbgYqR0hu0k5EVHdhUDK9Hs8qPjq uvjbk2IXDGEzbbXV+ahmGKXI5AzJIqSyitUd2gcwGDC1W3OXF91eL7BXXNAZp9t5bt YAWJVDGUqIiwjuQDgRogkw8rulyMbEvZcVGPvTaQo0BWYGjTvMn+rfhwljNZBLE+eJ T7RTYgS9Rd0KA2GF+MeBtNSR0dLPkz5SiDLG4sj2tINp5lQGTnw8hGPpyvhmf5Rdtq +ownIg5ByoLUdAgA4r3uIQQV9+y7eOmMVSXeHN5F5cGYZIryBs7o0oJwoCoUPI0STx 5uySZYQpIC+Kw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BBC9880409; Wed, 25 Oct 2023 11:14:00 -0400 (EDT) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A6A0412036E; Wed, 25 Oct 2023 11:14:00 -0400 (EDT) In-Reply-To: <83o7gmkiyn.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Oct 2023 15:03:12 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273189 Archived-At: > I thought we already decided on that: we should make lexical-binding > the default at some point. The question is how to get to that point. My understanding is that we're waiting for enough files/packages to use lexbind so that the change will not introduce too much breakage. > Until then, I see no reason why the prominent indication on the mode > line should not be enough. It's much easier to write code directly in lexbind dialect than to go back and change existing code to adapt to the lexbind dialect. Since "we should make lexical-binding the default at some point", all files which come without `lexical-binding:t` cookie will need to go through the harder path, compared to those who started their life with that cookie. So inserting that cookie in new files would help our users take the easier road. For that same reason, it will cause less breakage when the default is changed, and thus will let us make this change sooner rather than later. Of course, maybe I'm not being bold enough and we shouldn't wait: let's change the default `lexical-binding` to t right away and just tell people to add a `lexical-binding:nil` cookie if they don't know how (or don't want to) adjust their code to the new dialect. Stefan