From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#66706: [PATCH] Automatic elisp dialect insertion Date: Wed, 25 Oct 2023 16:06:43 +0300 Message-ID: <438d1186-3759-4462-06d8-b41c69134eda@gutov.dev> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7995"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: luangruo@yahoo.com, mattias.engdegard@gmail.com, 66706@debbugs.gnu.org, stefankangas@gmail.com To: Eli Zaretskii , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 25 15:07:48 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 1qvdbv-0001rj-EO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Oct 2023 15:07:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvdbh-0003XM-02; Wed, 25 Oct 2023 09:07:33 -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 1qvdbf-0003XD-RW for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 09:07:31 -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 1qvdbf-0002jp-J8 for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 09:07:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvdc9-0007ST-Ne for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 09:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Oct 2023 13:08: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.169823924628615 (code B ref 66706); Wed, 25 Oct 2023 13:08:01 +0000 Original-Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 13:07:26 +0000 Original-Received: from localhost ([127.0.0.1]:57698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvdbZ-0007RT-NH for submit@debbugs.gnu.org; Wed, 25 Oct 2023 09:07:26 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:44531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvdbX-0007RE-0v for 66706@debbugs.gnu.org; Wed, 25 Oct 2023 09:07:24 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id A372B320097F; Wed, 25 Oct 2023 09:06:46 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 25 Oct 2023 09:06:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1698239206; x=1698325606; bh=K6glWaeHxh2B/U16fCWmHlxzoUFt7+YSNxq mHy0e4VY=; b=kGhDc9hcXtDat69xvWtzdK2q34b2FxgpmDsS+bKNc3jz4m7Y5m3 izW+hvixGWkD7aBG4rD7VAJRh7jmkW7fpYpWFg3o3+Ai0l0iNmB4x612i0Awqf6j lZ+q6o30ozOQ8HqJG71w5oRW01CLUkTf2Zf6p0p40J1LigfTejIiN7THoXK7KgGz RCD2HkucrMSGW6zFOBZvi9ZcA9nU4YiSlG93jvpUWwWX+Oop+Zdojzpo2/SOypCo 7qg2KCrcW6uUfFm5RYdgFMHu7aXyTkuxcEqmRBSkckImT9VkE0ozQyV6c8Gai0ZB GVH8Vwx8mAFARjez45apNKNT9WDH890mFUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698239206; x=1698325606; bh=K6glWaeHxh2B/U16fCWmHlxzoUFt7+YSNxq mHy0e4VY=; b=ljt4lrrMLpd+hx9RmHx/vvM+LEdZEzRWtCcoufXguI4ok8uEDw8 2avYtnLojnBhSIyBuJ7uu+JoEogEE87kHFzW6oHHBhTjNSCquIr9mBUYyNFsyFb5 HuZXu7wFgs5ift/3DuPKjlH/MIU2/wBf/7CVbMU+sBXS9YPxe4cqjR2hj1Brn3ph B1wOyqk8IP1uspezlj30Dxu/39mLh030D/KUbjZDIJOY9a0kS2irqh5ii4L36CkR vb5Ms6v+4fnRP4Bu1WC4vMLFCm1tGq0Ac8GcN+X5S3ZRUPgXfG99OlzIjQArn89p LrPXvleaC9naaqD4O+YM3euOZL1ZiZpDqOQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledtgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpefhffehleejffegffeugefhkeektdffgfehjedvgeejtedtudehueffgffgfeej heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Oct 2023 09:06:44 -0400 (EDT) Content-Language: en-US In-Reply-To: <83o7gmkiyn.fsf@gnu.org> 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:273172 Archived-At: On 25/10/2023 15:03, Eli Zaretskii wrote: >> From: Stefan Monnier >> Cc: Eli Zaretskii, Mattias Engdegård >> ,66706@debbugs.gnu.org, >> stefankangas@gmail.com >> Date: Tue, 24 Oct 2023 22:01:25 -0400 >> >> Just to be clear: the long term goal is to eliminate the dynbind >> dialect, or at least make it be an opt-in that requires taking extra >> steps, such as adding a cookie to the file, whereas the lexbind dialect >> should be the default. Not because dynbind is evil. Not because it >> imposes an undue burden on the implementation. >> But because having two dialects imposes an undue burden on our users. >> Those who read all the docs may not care, but all the others are >> vulnerable to the usual "I copied the code from that webpage and it >> doesn't work" because the code on that webpage used the other dialect. >> >> So the question is how to move from here to there in the least >> painful way and I believe that inserting this cookie by default is a step >> that will make this transition less painful. > I thought we already decided on that: we should make lexical-binding > the default at some point. Until then, I see no reason why the > prominent indication on the mode line should not be enough. I wasn't aware of that indication myself, FWIW. Or forgot. Regarding intermediate steps toward making 'lexical-binding: t' the default, are you of the opinion that we've made enough of them now? And will just be able to flip the default in some future release? All in all, I'd say the byte-compilation warning "file has no ‘lexical-binding’ directive" which we already show might suffice. But it only helps after the user learns how to byte-compile files and/or enable flymake-mode.