GNU bug report logs - #66706
[PATCH] Automatic elisp dialect insertion

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Mattias Engdegård <mattias.engdegard@HIDDEN>; Keywords: patch; dated Mon, 23 Oct 2023 17:48:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 14:59:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 10:59:41 2023
Received: from localhost ([127.0.0.1]:59770 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvfMD-0007sR-4c
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 10:59:41 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24159)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qvfM8-0007sB-H7
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 10:59:39 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9A922807D7;
 Wed, 25 Oct 2023 10:59:00 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1698245939;
 bh=WGrkMThpSnVQscD6AMdKDzBtfhpfaU4DuAG2fFwcWB4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=JTfyR2RN8mUErOOlSj7tV2itqmA/wB0ixCgsMl2Mbo2NpQW3Fkzixffb14Xeamrja
 Y2yPPi0adlW9swkdFe100q7jrWuMnqGP1DqdtJWeR+g8aIgQVHFMVyDfuRUrqhxDt4
 vwKsQ9G3Ss2B4dqME/gPaZL2IogcVQk3b45MmHMTlvEQa/zZKLv2rbtq58JUuE32yz
 ggYwavIti4nVGlJ5/E7Rb1DdjwfSMGCCWk6/ibZ/l2aafpWXtEkFix5xZd9IYs8CxL
 aNVqjyT1dkpEhkz5LVCcg+c1lR8+Y1Ymjsho5IIMoZ4Xv6iDvonNLPHUODPZEvD93r
 8tjLljancV07A==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0987780409;
 Wed, 25 Oct 2023 10:58:59 -0400 (EDT)
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DF3C712016C;
 Wed, 25 Oct 2023 10:58:58 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <87cyx227gx.fsf@HIDDEN> (Po Lu's message of "Wed, 25 Oct 2023
 20:48:46 +0800")
Message-ID: <jwvjzralplx.fsf-monnier+emacs@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <87pm131pq6.fsf@HIDDEN> <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
 <87h6mf1k43.fsf@HIDDEN> <jwvedhjx7gh.fsf-monnier+emacs@HIDDEN>
 <87cyx227gx.fsf@HIDDEN>
Date: Wed, 25 Oct 2023 10:56:50 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.070 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org,
 Mattias =?windows-1252?Q?Engdeg=E5rd?= <mattias.engdegard@HIDDEN>,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> OK, and why is it such a reply does not suffice?  And why would any
> measure short of initializing lexical-binding to t eliminate these
> people, when so many have failed in the past?

Initializing lexical-binding to t by default is currently not an option,
because it would introduce too much breakage.  For this reason, we need
to take smaller steps that will later make this change possible.

> How will the automatic insertion of lexical binding cookies in new files
> affect M-: or IELM, both of which already execute lexically bound code?

Because it will reduce the occurrence of the case where I copy a chunk
of code which relies on dynbind and then incorrectly execute it in
lexbind mode in `M-:` or ielm.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 13:58:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 09:58:07 2023
Received: from localhost ([127.0.0.1]:59715 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qveOc-0003Xu-Ua
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 09:58:07 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49052)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qveOY-0003XL-Pn
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 09:58:05 -0400
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 <eliz@HIDDEN>)
 id 1qveNy-0004ZB-1b; Wed, 25 Oct 2023 09:57:26 -0400
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=zeckM1Vmbq1y0dN9Q+UOFLfdswX4zShRq8SLGUCTd7Y=; b=e/S7tvstDI8N5GSNWw0l
 rmYQebjyEBC9nxbrOUSJ/ea2dee/K+9B5NLvFRFVWA/t+FcA0z8/0sKO7CvzviZjLA3ao8/MAOnOC
 tKWHpHAIKWtpAi0Gs4OOD+wR4iSeVENY7buCdE9qbfs1gG++Dd/zQ8TOMhDgUO5vCKdU7fTW7PLQc
 KDXEXQpdls0Rwko3L64WXHbwJWljeVqUIUXMtg6t3Ms2yxfoCypJflpyj5z+kl+CHj2HI4AR+WOJb
 VHohR3Ne4bQGuWit/AG2qREA2PNlnK+yZGgYgVevPkW3c72Tugz0+BpLBpWRAToibEbdiYnX5CPE6
 Kieeu6UpkvliMw==;
Date: Wed, 25 Oct 2023 16:57:30 +0300
Message-Id: <83v8auiz3p.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <438d1186-3759-4462-06d8-b41c69134eda@HIDDEN> (message from
 Dmitry Gutov on Wed, 25 Oct 2023 16:06:43 +0300)
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN> <87pm131pq6.fsf@HIDDEN>
 <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN> <83o7gmkiyn.fsf@HIDDEN>
 <438d1186-3759-4462-06d8-b41c69134eda@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: luangruo@HIDDEN, mattias.engdegard@HIDDEN, 66706 <at> debbugs.gnu.org,
 monnier@HIDDEN, stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Wed, 25 Oct 2023 16:06:43 +0300
> Cc: luangruo@HIDDEN, mattias.engdegard@HIDDEN, 66706 <at> debbugs.gnu.org,
>  stefankangas@HIDDEN
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 25/10/2023 15:03, Eli Zaretskii wrote:
> >> From: Stefan Monnier<monnier@HIDDEN>
> >> Cc: Eli Zaretskii<eliz@HIDDEN>,  Mattias Engdegård
> >>   <mattias.engdegard@HIDDEN>,66706 <at> debbugs.gnu.org,
> >>    stefankangas@HIDDEN
> >> Date: Tue, 24 Oct 2023 22:01:25 -0400
> >>
> 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?

I thought we already answered this question by YES.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 13:41:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 09:41:40 2023
Received: from localhost ([127.0.0.1]:57754 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qve8h-0002YW-RG
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 09:41:40 -0400
Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:50065)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qve8e-0002YG-4f
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 09:41:38 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.west.internal (Postfix) with ESMTP id 6E0DA3200932;
 Wed, 25 Oct 2023 09:40:59 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute3.internal (MEProxy); Wed, 25 Oct 2023 09:40:59 -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=
 1698241259; x=1698327659; bh=zIAgXKGwRSAi6t5mpQWQIhvP5EHI2yUBkxm
 /Ma3/Je0=; b=IbLg119rvST0lAh82/Ev/w6+yEhEeJTGti4NdYxWTuRLKueF5Y/
 Y069BcOXE4r0Cu18yOk5emSZuSpZ3EKbKTTjcugsAzfFAc7lDYSZRWOUhVlCsYz1
 9/ALp/xbWeio4NB4PL2XWEmz6rMknGFle6NGVd8BDQXhEihypHE2kcwulOMHcwsz
 1hKaax0yBPJwTwsJkEANYpIRufpPpA/I3wLwlcSZk8gqKCxpgxQUiWUpTG5uHS3u
 B9uNVwt9wM6SHbltDvVqKTNj+9CuYUjom6/jZiKfNas+18pA01Zt+J3yDt0fr4Ts
 Ukpql5RaVYr7Om0cw5RbzYsNDRgjm5CKY0Q==
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=
 1698241259; x=1698327659; bh=zIAgXKGwRSAi6t5mpQWQIhvP5EHI2yUBkxm
 /Ma3/Je0=; b=PLSRn7RV1n9ZaoI2P5LE6c+gLcP6DHE9XUz0NN3Akret1wdjOl6
 wXxAVxNDy4NSYPHGBj4BvrXDLpdsdOj1Jm5UJFtNZRqsyk+o9STZUR7IvWf82dgE
 X6gmUSjiY7R4S2xb2sx7iCOrJFJ4ZXa9L17A95HB4X/5eCiHB/L+nmKYQ7BU6jT4
 Fw9Zgu62uPBviWGhwDWvbYM3CCHSDos0PPHINADsG1cL15V/5VmsNPmLYF1+NjZq
 8fFmibmaTOttHouDdKarh7tMzMbU4R6esHmK+3mH+Rxj7m3YZ7FUP47YPktuTp5q
 hCsciQ+1G2p9cM30n+Qf9RxCudObLWrvF/w==
X-ME-Sender: <xms:6ho5ZXY-Qw-JdOguEhvBuqMPwJ825AujpnuSNTKa7ZQtxiPoHeIONg>
 <xme:6ho5ZWa4fRpRKZJ-rA3Mdeh5z1XBABfGziGNyNKfTKJASYH0ZCE9kMsHlBl-0lfU9
 ifHbedIXwrOra3saac>
X-ME-Received: <xmr:6ho5ZZ9_m6TYaD6HgbgQWUxPPFxLvArbHSNyZJUf2gncwd-eOr1TA9IMCw78K_U>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledtgdeiiecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht
 rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth
 gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv
 veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh
 hithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:6ho5ZdqcVZjxf6A4Kq8bpEO3wd6MN9lao_L7iiR9QIkT7xY2v5PPUQ>
 <xmx:6ho5ZSppm6gy8fmfASau1k2MQywJlWRUXInkiFpAVRTA8UbRjVjTmQ>
 <xmx:6ho5ZTQfRkoJ9M7jumYDf52C0l6NHjxfWDbidCheNpT5wXdKCDquGQ>
 <xmx:6xo5ZbkMP2TKQZrLaRasnhXDmdframXs7dHvqp-_TlB6H3m8s6OP8w>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 25 Oct 2023 09:40:57 -0400 (EDT)
Message-ID: <4d66e353-5dc5-124a-574f-015f131d6982@HIDDEN>
Date: Wed, 25 Oct 2023 16:40:56 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
Content-Language: en-US
To: Po Lu <luangruo@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN> <87pm131pq6.fsf@HIDDEN>
 <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN> <83o7gmkiyn.fsf@HIDDEN>
 <438d1186-3759-4462-06d8-b41c69134eda@HIDDEN> <878r7q25zh.fsf@HIDDEN>
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <878r7q25zh.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org,
 mattias.engdegard@HIDDEN, Stefan Monnier <monnier@HIDDEN>,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

On 25/10/2023 16:20, Po Lu wrote:
> We cannot make lexical binding the default until an adequately
> proficient writer is found to explain it within the Emacs Lisp
> introduction.

Do we have an explanation there of "dynamic binding"? Or mentions of any 
features that wouldn't work in the context of lexical binding (e.g. 
referencing a local variable of a caller function)?

If so, those would be the places to start with.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 13:21:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 09:21:38 2023
Received: from localhost ([127.0.0.1]:57714 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvdpJ-0007rc-O5
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 09:21:38 -0400
Received: from sonic312-23.consmr.mail.ne1.yahoo.com ([66.163.191.204]:39665)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1qvdpH-0007r4-Je
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 09:21:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698240059; bh=TwMJ1mYr/kSZlQ1pa3bmKefhMaulQF+1q5w7DfOumfQ=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=YOMvCk0ML7cFas4mz6hegzoMr02I/dH+RSEgcfEvCM4pU5eJbTp2BHeQ6uHDD9J0dtJ5Ry0zCYGjAB4IopXgG4roSGF0GNU74BiduXDIC3CM+t8aozBmuLYlEvOiyrgmkSrVEAafIT+I3IWzglb4PCaRmUMjqTwOSHF/zTCMHXVH/LJPRT52iB2f5nwSQP7ny5qdivDbB0qshTzQthwrsG/xFFTJwWBYjhbAWX461oKyD6uTV8sGW0w/7bQ9/Xlc4KkpPauOpC2xsa5REy0etxspl8HpZVTO8C923e20vR0DZuBn4WIRyXJoTAqBE2ZyDpBoC8nJtezUcQR1W1UGpQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698240059; bh=KTltBTajBcOzb+3gFLNx5HsMFyEEcBCLkT+4I8T0V8s=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=IajulgsBh6wc8QtlyBtEBR0MHWUmge+M4lZIHlxbI9tBoMwkKb9ALGPeVHuflmPBpUBUjrBuzY3u/UPPbUzcB43CZrBjvgfRlFDv2Ljm7kChsrSJE4K6MP0vpIM/MQKhKT7HDonglw1hw0V60sqVODMrNg3J0F3gL/YLDmf5BH+qNP9NAs6wdL8cSCIsfC67Dio/GdyCpuxS4gDRglXnQo5bwowMtDkUyoI3aOPgi1HQ1SkT4ZbgWTfCROB57roVn8KfsmXmJMyTttaAvsszc9Na4kNQlAKccIByeOU4dAsMTwH9zmhPSQXryweU/cN0aSpODuENEw6RujW0ggnw2Q==
X-YMail-OSG: Z2zCMIoVM1nIcleUCZSjWUZYma9YwZi3KgWHjjAnhXo.LwKYc_oK4Zi5gzn1MEL
 kl2XcPVfc.5T78by6KtYAJ1TdR4YAzN_Udr3gLlBrVRh6fw2gNQ_6dvJnwLjc_juKC.2rCQaE.PA
 t7Z8BfyZCXPGk4cPeXd96gkhqZV66W00cnw_fz4OkZyd9RxRvMC8bXgmKHZyLKLcHGzBQKkUf39l
 If4NJxPtbh4lSdq7tiRPxCDODfqTA8h0jwGh6.AqrEZJHfQkaVlPOsGu3LMa0LjLUVKcv_KoWwLi
 Xx_42ua6f1.3nPOiELPqi6HGSM5bWn3L7Y6ZcwAjYklVJxyIV_1UwWtjoLsCU5Wry2d9F5A7iSCt
 JXvKTGlb689D0T0Wb2.1.gcKISCcP_rdTa98I8MpYWNDlnmOQ28NXIuZthBGTMS_MbBg7__c2sm0
 GMH7ZtPcReZcamz2Agrx0zIIHQHkBIYUQ34FCNfAJ9nMKhaggYvy3japoT5LiZ5JkT3EOave4hND
 2wH4cNfzNqt5Ml2.PS1ytYaRhxK3bnxoGclnbpon_awvYyTrQXFigPrS9H7TwcsvL0AAtpFbnLsl
 0WTnpta0D3JUb8CYMIjr25t0mQTOZSGvTe9SOPV9Ki0nF7e15USGXjy3da6zzGHMV9Y_LA9uWYsB
 630bwzlsIY5OtMA2rjC4bwklt1DJmTE7pWkBG8K3JOzFscmcWhYsy2Vr4G1GSKZx_2iWUUa6GEeV
 BEnP7cZ7bWX8mpj0R5weQmQ0WYy_PjGOVYkAW02TQnQdD8xxRJevek1QjnxE2I7azUcPqKJV0Xi7
 oX0u0MLpY3LE22SQh8blgnhg5ECIuDuOjtmE7FJXvoBKlOoWjgITiCmfMkeIBhRXBfGM_jxanv_G
 xOrA_9AQ.n4A9CueocY1jc7r_5jEdQxOyZUS4V4lb42RuDArtkA7nzP1xa2ya8fkvtwQfopOrSuf
 h1afC_RaKtyYx4Imx3TQrjND4UucG8rXjLAV57UPXOLRJsHjwamwSBRmyMM4kWP9YonhVmNUH2Uz
 H.QTq23J1_vNNDFLVi0p44avy4pTwL0X5PtHI_oJnrR3EBZTaQIZt2wZgFdv56zdPEQB.2spsUMc
 dsn7hbMz.R4IFU4fvp4hSyCoYDHOJb4ZAYxu.T_sEBfG1ID3LzMe_mBvShKy9OMvJBtg0HxtG5Df
 uRdF1cc3nHNNTAFRq47tsP0HNPTzil4e6MD7Xekvdcmca3MVhp_Gk5W5AH2u_M8d2AcKNZXqIKXu
 4YX3kM9MTkIt2_UtTA0KdwSujwCTrJXJiYxC7_5YjXjBM5pHh_QTOEr6QfkEYJ3uWmStcR69eobS
 DkY5M3AIXCvQLm8cnEgRrtecGznYnKj.h.nJeI5Edpn6jvuBN3PXMXmnOugmcarqoTLGgTbT4K3b
 oxY1424LfcFMVq0lTpKDfgO2oLC.k4v0P.TB4oKvFbQvazDsVttLE23WPWfqJrTVmtKDHDZ0Fd1h
 bcSjRXI389yxuXB775kb0psffAB6lwI6Wpx6Gg12VR6lEeDtW1o1aUl9njTzjwrNuci2e4aKrW_A
 IDdkwMNx98dnw3Ugf7cQUCpGs.2LBbwCs38xib.KSSfwiml.z6XA98W.OV80nAqz2mdk6I2zS1U0
 00x0aJpsv9nJXO5zh6eUeJDcfcjabbivHHdz8FiQsp29sde4wwCRGHNpE.R1lmyrtGss3N81Z9yC
 gDgBLKrbtlv_qHxLjfziqPVabOlnGyvB8R2Ssb95sIHUO1iz6vfebEsxmeNx8FohFl6FInwMFJxL
 _XeczkkTNdNs8r16M1uEvdQwhG1NsJ3HM3r3pJYFcPmQbAOgvQDUat8euFt.k7nczhCIj99WPTEy
 4Cei6RNzYxzBI9052_9RrYQSRcMB4bUAOeXczO3.frF52q.KmK6Oz72wT.H4g42S6wI7YK1k6_8V
 3t5w5sMJiSXjkqw6jjHCeHcKHXVM2fBWX03axdEW.kQ32dWhmff.V4T4g1b9Dp_onfAhwn2.Hn74
 f_x3jetKk2IN8YJdn4FDLiXeBu0DBI7wNgqudTpU_lFAhqGjkXcWJEvfeQhquYr6VB6HwhVOACNA
 2WKB4dLxzVg2A96ESV5WXhsxZ61E4HyiFNVYSoUwql.gMBsaznaxYDzMUTgCDRzK6weQQ7Es5FBv
 Q1TICbwTHunU.Zlb_.KAYkemiaN52IUE7UutO1Ykl_erc1t5PdNEhzqIJUErJs4D0wte61XUhNRT
 d0WXYQTDvp9ho3eWQhJep7STJU.pQLTbO2gmCFstaB.Zt0P9t_j9zx7peRw2TSihK7vJ__DeE
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 20a35240-c3eb-43d2-bc06-a65686a11f9a
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic312.consmr.mail.ne1.yahoo.com with HTTP; Wed, 25 Oct 2023 13:20:59 +0000
Received: by hermes--production-sg3-57f7997989-dp725 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID ee742727cb0aa7e8e750849f17a3838b; 
 Wed, 25 Oct 2023 13:20:56 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <438d1186-3759-4462-06d8-b41c69134eda@HIDDEN> (Dmitry Gutov's
 message of "Wed, 25 Oct 2023 16:06:43 +0300")
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <87pm131pq6.fsf@HIDDEN> <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
 <83o7gmkiyn.fsf@HIDDEN>
 <438d1186-3759-4462-06d8-b41c69134eda@HIDDEN>
Date: Wed, 25 Oct 2023 21:20:50 +0800
Message-ID: <878r7q25zh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: WebService/1.1.21797
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 921
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org,
 mattias.engdegard@HIDDEN, Stefan Monnier <monnier@HIDDEN>,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

Dmitry Gutov <dmitry@HIDDEN> writes:

> 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
> =E2=80=98lexical-binding=E2=80=99 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.

We cannot make lexical binding the default until an adequately
proficient writer is found to explain it within the Emacs Lisp
introduction.  Any volunteers?  For doing so would certainly be more
conducive towards that goal.

But today's software types are generally more interested in the much
simpler (if doubtfully efficacious) expedient that is coercion.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 13:07:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 09:07:26 2023
Received: from localhost ([127.0.0.1]:57698 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvdbZ-0007RT-NH
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 09:07:26 -0400
Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:44531)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qvdbX-0007RE-0v
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 09:07:24 -0400
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)
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: <xms:5RI5Zf2kezr1N4C8JNCC5XylPJvbND5VGR2pLJzKGKYCBZ0Q4Ohzdw>
 <xme:5RI5ZeGpEsQaR2nCjJTAwoAx8C8EuDoB9EZdnqFirTBn6OxV_w7VICKzZx9nia5bc
 AA0YGp_wqKgXrIKTiM>
X-ME-Received: <xmr:5RI5Zf7SXvH11VJ4sz0kMfsn2oa0M50-quTa9wVrA13k4SdEV0khqFIZn0y30jQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledtgdehlecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomhepffhmihht
 rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth
 gvrhhnpefhffehleejffegffeugefhkeektdffgfehjedvgeejtedtudehueffgffgfeej
 heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh
 hithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:5hI5ZU12-wEYQ_v93pvmXduRRkIcxKpDIt1UGUyQcLDaUd6EaAOkew>
 <xmx:5hI5ZSFRmtXWRxISLI8996qazWuIiTz7PsdR2bFu1oHGKOCRDE8c6g>
 <xmx:5hI5ZV_N6oA3GYpqUvlE0eL_O2RQP7MWc8K2SJLi4xVMG05uxzp4lg>
 <xmx:5hI5ZegxJ87EiCSfk4TVntc6CCaBzIt4feJa2rl4BZQLRrhgYLWqlg>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 25 Oct 2023 09:06:44 -0400 (EDT)
Message-ID: <438d1186-3759-4462-06d8-b41c69134eda@HIDDEN>
Date: Wed, 25 Oct 2023 16:06:43 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
Content-Language: en-US
To: Eli Zaretskii <eliz@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN> <87pm131pq6.fsf@HIDDEN>
 <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN> <83o7gmkiyn.fsf@HIDDEN>
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <83o7gmkiyn.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 66706
Cc: luangruo@HIDDEN, mattias.engdegard@HIDDEN, 66706 <at> debbugs.gnu.org,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

On 25/10/2023 15:03, Eli Zaretskii wrote:
>> From: Stefan Monnier<monnier@HIDDEN>
>> Cc: Eli Zaretskii<eliz@HIDDEN>,  Mattias Engdegård
>>   <mattias.engdegard@HIDDEN>,66706 <at> debbugs.gnu.org,
>>    stefankangas@HIDDEN
>> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 12:55:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 08:55:44 2023
Received: from localhost ([127.0.0.1]:57659 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvdQC-00075B-GU
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:55:44 -0400
Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:35601)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qvdQ7-00074p-BY
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:55:39 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailout.west.internal (Postfix) with ESMTP id 08E17320096F;
 Wed, 25 Oct 2023 08:54:58 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute6.internal (MEProxy); Wed, 25 Oct 2023 08:54:59 -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=
 1698238498; x=1698324898; bh=in5Ac1jYPv+MLYmpOsLDtEccSlDRdWSRDZd
 vFBwHSOk=; b=VU6aqzuaS2VVzAQLWA1P8L99ZZma+wS3mAoYIOJkrRrXMSDge0n
 bxpQqwzdUNEJE8Ma6rjRQ0TLlzLfVD29spbLhiHNl9MKvDscfFXo6QrurON+DOiG
 pyFg207ptmGbnBI0T+DUQk6lu/OK0nRoM4gbJbsBZxtr/jwFCVRg/wS2H/s7XHC5
 V9dnyuNAFt4Dm+qUFyhniWS4lZZKC+UmguB9M+B0zoYIG9OjJtpOAKl9t9nZD8yo
 2Uvy4pdu/BZo3O0vnALn9ogBF5N2mjOoL6miexiHFn5eIKL/yk9DVOBBg8AbcLek
 KX1S8uwTwiF3xdcn2Flnhm0CkIZta7Grf1Q==
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=
 1698238498; x=1698324898; bh=in5Ac1jYPv+MLYmpOsLDtEccSlDRdWSRDZd
 vFBwHSOk=; b=Qn0kCazMYVHMfwtErhuWO3Cvkaqb2jft7xksgoGqdWPcPL72FdL
 x2d3ibNev82m0d1nxFNVP0WN6zV55SGA8DFCsU32NwfC/4L/kViR2zFiXk/anIFg
 aPd1VdUl1g8QQ0w5FfDIQumJRoX0SJqWYnYMt8kh5vQlXtDtznUrOQPMym3+14rx
 1hk84KqDRqesqKewiEH0t4GXZIA09P8GtxBRFpNPpfsADQKEum/lXpYr1BF6+M7q
 tXmz/7c+I0nhY9anXidKhgpIN82EFiIJC1fb0yFNyPNn59vGpwQCHlZecOZx10Iv
 DkkrRxgm9spWUf8KpALmRWku/SPskMk5DLw==
X-ME-Sender: <xms:IhA5ZSk33qb_3yxbbDQeLP8lxdMY7nOpZ6_uV2_RKgdbnLG9k7mwOw>
 <xme:IhA5ZZ1u7mHUgA9ilcd7TbIhYBMyN2KX-YwEI4IjRWTrGRE3-fi5gbQ1TPRxREGuv
 sUkD0INnBlGKp_mijw>
X-ME-Received: <xmr:IhA5ZQp_AgDY3xYeU0OjFa0RIeXWmxkUQlYXTyZ48drHofb_6z1m5UZ9F2LY3ys>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledtgdehjecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht
 rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth
 gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv
 veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh
 hithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:IhA5ZWl_Tk0cN6W49_QfWrbSGeiWvi6FEcw0CX6Kbmakjd1jQNO6Qg>
 <xmx:IhA5ZQ1a9C8LEMcSVggso19sxU5ZnAqI8mqN64T69us2dIWoPtAuYw>
 <xmx:IhA5Zduh1L6IRhv7fMeRAddMujMr46DhDQEc-MiGZdARpc8i3ooSAQ>
 <xmx:IhA5ZdxHP_n847TPN4CGtFTla4XEjYDNqm9PpwZ-BwCdU6KEmWzDTg>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 25 Oct 2023 08:54:57 -0400 (EDT)
Message-ID: <d321ba23-bdb5-5188-20a1-4805fa41ebf8@HIDDEN>
Date: Wed, 25 Oct 2023 15:54:55 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
Content-Language: en-US
To: Stefan Kangas <stefankangas@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <CADwFkmnqXAVvJfU6pAE_acMnuDf+O+cmRXfGje1mE3SadakJzg@HIDDEN>
 <83v8avjuv8.fsf@HIDDEN>
 <CADwFkmn4Xb8mdi6yJOb1GB0hn7AeGRoZeYKYkHdAv-+OU1TCRw@HIDDEN>
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <CADwFkmn4Xb8mdi6yJOb1GB0hn7AeGRoZeYKYkHdAv-+OU1TCRw@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 66706
Cc: mattias.engdegard@HIDDEN, 66706 <at> debbugs.gnu.org,
 monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

On 25/10/2023 15:17, Stefan Kangas wrote:
> This will mean that a lot of users will have a Bad Time (TM) when we
> eventually change the default to lexical-binding:t.  We can help
> mitigate that pain, or we can choose not to.

There will be such users, but their number will likely be lower than 
some might expect, simply because the lexical dialect very much 
resembles how programs are written in other languages these days.

To use a feature specifically available only in dynbind (e.g. access a 
local variable from a caller function), one would really have to know 
about it. But of course there can be typos, wrong refactorings, etc, 
which could contribute.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 12:49:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 08:49:38 2023
Received: from localhost ([127.0.0.1]:57654 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvdKL-0006vV-HZ
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:49:37 -0400
Received: from sonic315-20.consmr.mail.ne1.yahoo.com ([66.163.190.146]:34236)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1qvdKJ-0006vE-7a
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:49:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698238139; bh=TdK4PbMkS2wLZKNIVOIzVpWJYlo4x3K+KrbjsujAVmg=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=TWmgHJ7ds18nSh6CHOynW/cXE2ERQUk8JGEMOZjXKbQmRhFlXncD/yrIh8x2fIRObYxaN+vFy8UJEtA7bbLHmmzZa1JlNPRp02bOcrDsxLh7CBzfEEZ51idOphQMQCQc+6z+msemGdRhCJ94yFb1doROia7xekfo6Ap6jUbkx4BuQhDXKd9eS4fTZu7cdYMrJs1P95H/xLJKzOPlFeWDRQ/EfqLCwDEs5SMZPvBeiQ3UXoi01tY7hybSY1z0Rt9gLukncqsdxdh1SFS+NS6P66FC/jKr9cOlhqMWuc77H6yuH0gyAfo54mygPO5jOuDl4aK2UQhLFbvob7ph11ix9A==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698238139; bh=Ejo4sUl8d9Ymu31+3prKRoX1edjr24jQWvsx5w/yrKU=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=lScUeFGT3ex6xwV74EXfhnCqlZkcXdbg5Y98KUPQ70/UBrYS4FTiEf73EEJNYc0IFuXratyUAtJ3J8ED8eaicTuWdNIyqEoszw+u95zOJMXXNhaC6dGOaSn1R7/DifN9XRJbx6ZJ0+twGWWAFUuto/kNsPHd4zBExDB+HRG6wN2ooo+SXtV4Zt3JUhI+B6xaC9KwbnuKBk/XbaNcbxcIksALYbaecw+YEqwYDFRFWYMCfLKRB4Kd3Z3J+JCHsetW+7nEyPWbXtdvxV2DD6ZvSsx/tUX9Ue+aYhzm34OBIQxO9Haoqjt/DVqIZcpwVlr+5LQVHdoNSayYj7Md4autBw==
X-YMail-OSG: p4zmpe8VM1lDXp9c1r7126sYlIvSEBHQH.ZAFarIWoklxl1OPzxcRDMrLjKF8ah
 rII6yveh62RfDKBxhEQOgi19mW_voIE2D8N7OdBqAeyPxc66uQUeQb6o0BFqbe73TRjeIe7uIULz
 I4QflpflTJQ7N9l2FXY70XDtBNbiUNkQBz8Inq0.sDN_M3IMkCHok_I5wTkuwpoNl9AFrFG6ic3T
 QuNQY5Cb5VYW08uHeVhJkgrUA_MUmL45pMVaHWKSkNEP2y5s_CW5v2E12OScJvMDHShe8vL5erk0
 rwVQ39ClmEX2XouEY8DNrf_eNbE._8xQQi4ZrcPAHpS7A6upWVN1i7Nl5PjGXuAnomHH6iCVUqRI
 4n7wi6wcTRCuCIxRbNqvkFWWvOa7ot5cuApSzoZOHzBK_EFJPkQ78OeG6mv87Nki_49tTzxiETBN
 n3r5jayx4.es_kqj65IYz3McRs2D4X2ODX.biqmX1WURe4BvG8Z5hZwdVvyybmCe8hTZvSsRpxaO
 6Olvsms8MlkwxwxENThNJyJ2DWS56dplOXtBSEmoIpFdtxp8wCzPW8D16MkhjkIosMYtU3t.Bb6M
 NVePgdk0uV28qsItxcuJ7Mk4Y.LynLdsdZzKvHTe53dRpgkM1AiPeVd_9Hm7vWSgdV5MhGAMo9S8
 MdqqF396IYmrrIAUMQXmkJ3o_5RyNIjift6up.3.iDLHZxWKP3N8QieRAxt83Qqe9t7XiFk7IE7n
 LU74hG0GRtrGTZRl64F_hjGfTY1xXpWgQGBPcoy2IjuPRPwuTpYqGiHWFRspg.HjPav7uTP24uqd
 5Bkit9IGPv245aDwYJKdtx_qYFnHWi_DQsd4UhrvbMs6QqbALu0Th1H4Hquur9izHR0g3jEahDGy
 7dxALJqPBb2S.DKUXX4BRBxOoRA2bcqOmnoKswKxkczFXzUDs9E6jPJeSU6DUuZwdQn1MnDtmua9
 vm18EGX76Ie3yMrCE1naZ7DwSZQn0HkHNysXEGb.UkBf441GdhWGruXnxk_3Jd1aVX8isIi0qgAy
 Da.0xXKmTdXgUVre.8XfFJmlnEZjJ4H9tta1KX27u1vMzCtYhCrhu5_WsDjJOugtAcRfMalqIIlh
 n54OGLI3i6MVTz9kVcNb1kbwtWm3SamTNMNkFJXjqZaen7XnZX6hWZ4yXcS70vvjV6QdjzOqjNdY
 frnQbKEHmOJnV4mc4CKvgX7EyQG1DD6U5_4mIznLW7LM1jZDkdnAFK3Ub7hGmnxjky1pqtl59OhJ
 eDMaePDG9rzm6ElfFOG1aXF3sb30Hv3GsMEyMuXo1UMb.rI4UY101OL35aonan.2QNv7vhC9V7X4
 P5maIJ_nhjSC4xWDJCesqL4b5XMR_5Nx3UIqXoNBsv9IiflMl2z1vGaii1paYH0zYr5jVpjtrauh
 QvT7F4sAt54rDD0BdReygXGfMCoM5oVCLTJjPizNQ9mZE5nsowNi7WUWrgfuxDzOunBmEZZe4wIO
 R_TY0WLWAf20U7wTgjWvL.O_m.lJnfxLrqffiqa7tNdIy5n8WX4RzaXgGISInUAaOVvQ6pTcx3_z
 2HBFqt87WfMZWGzsEMcXA9xHGJi4lxksNr0OutCuzDtXgazpXTGovCkC7mzQl0XpUWe.BiPV2TiS
 uj4rZ7vKwaBZ33euj4OnUJI41RQrvIeEsow9GBFIpcZZxazZjGn4pflygPL5G18B7SxbfKZi7lYp
 TwuLFTsMrBzTKPT2JAwJC_V3JoLMmoZHXFDrXbFFuccFmXMLtTvEjyaf4uzDDAAx_309GviflKFT
 _pfnhIbnwXEn5vibspPSN.r0w_WLpyQ55F3ZolG6r9V5CgAQjTHvn3W.sTxDPsV6KkoUZnNYZn3H
 6GKHM3lhvB8GhQL.LV.kIlv63Q6yZD1N5652giVMB1hy2mvEdlRkkNAGguXW_Su_dC.fgWXlX92O
 H30pQqZfi6ENvr1.SulLGJ3sMN0m90I2kxxWD_9aLLfxGXN3XfwsbNqnlT2Ap9XS7oV7peGauiuU
 _NljKazsau_Q9nXuUKfcZ45fTJyTyiBgOYT02XrDkv6YMJeiv31WyexN__sT0W7uMzNTc6j7RpxG
 K.jj.Y_T9zcd_Cd0dTONEniWNqbalJUij12hVu2LRY8TLEYpXV___mGsNzcHxseTMKtPIVPFFQcY
 6t5_e.Hgu5axOKY82LcEgRO7OCYJLJuu1JgIgT3Xf.nkFBe_SxOen1d9yqEVry4NZPS8m_k56ZxI
 m4ibGrqydGiE_268pQDxaWaoa2HrTozS3aY4m9d17WipWB_epKCKKPJj7uokVgyFNIO4-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 9680b3b9-4bed-495a-af27-8863ff19dd60
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic315.consmr.mail.ne1.yahoo.com with HTTP; Wed, 25 Oct 2023 12:48:59 +0000
Received: by hermes--production-sg3-57f7997989-mcz6s (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 66b9b9bb63c6f98b22eba41ef3e40d6b; 
 Wed, 25 Oct 2023 12:48:51 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <jwvedhjx7gh.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Wed, 25 Oct 2023 07:48:19 -0400")
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <87pm131pq6.fsf@HIDDEN> <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
 <87h6mf1k43.fsf@HIDDEN> <jwvedhjx7gh.fsf-monnier+emacs@HIDDEN>
Date: Wed, 25 Oct 2023 20:48:46 +0800
Message-ID: <87cyx227gx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: WebService/1.1.21797
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 2083
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org,
 Mattias =?utf-8?Q?Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> There's no patronizing, here.  Just experience.  It *is* a source of
> confusion.  I've seen enough such examples during my time in SX where
> people give a valid answer, followed by comments like:
>
>    "doesn't work here" --Mr.Foo
>    "I assumed you have lexical-binding enabled, try enabling it and see
>     if it works" --Mr.Bar

OK, and why is it such a reply does not suffice?  And why would any
measure short of initializing lexical-binding to t eliminate these
people, when so many have failed in the past?

> I don't doubt that our users have the capacity to solve those problems.
> It's just that my sadism is already satisfied by all the other problems
> we foist on them.

Then please inure yourself to such trifling matters of theirs.  Those
who are ignorant of lexical binding will run afoul of it once, learn
their lesson, and from that time forward routinely check whether it is
enabled.

You are not obliged to guarantee that no person stumbles across this
pitfall, and we are long past the juncture after which the law of
diminishing returns begins to assert itself in full force.  Such
"safeguards" as those proposed here will irk the informed and the
ignorant alike, while the latter, which is to say those who elect not to
read the documentation, take notice of the prominently decorated mode
line lighter, or heed advice given to them on forums such as
StackExchange, will continue not to enable lexical binding where it is
due.  As they have always done.

I am not the only person empty of the =C3=A9lan for lexical binding that
serves as the impetus for these increasingly heavy-handed measures,
incidentally.  Eli seems to agree with me.

> I myself get bitten by the different dialects every once in a while,
> sometimes even copying code within Emacs itself (typically taking
> a chunk of code from a buffer and running it inside `M-:` or `M-x
> ielm`).

How will the automatic insertion of lexical binding cookies in new files
affect M-: or IELM, both of which already execute lexically bound code?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 12:48:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 08:48:49 2023
Received: from localhost ([127.0.0.1]:57649 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvdJZ-0006rb-5f
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:48:49 -0400
Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:55503)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qvdJX-0006qq-N3
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:48:48 -0400
Received: from compute7.internal (compute7.nyi.internal [10.202.2.48])
 by mailout.west.internal (Postfix) with ESMTP id D1B22320095A;
 Wed, 25 Oct 2023 08:48:11 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute7.internal (MEProxy); Wed, 25 Oct 2023 08:48:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=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=
 1698238091; x=1698324491; bh=B0syZCg1OQqn4iPXvhEumQuBukXgArrDUOR
 8CexFjCI=; b=pAB4rCAd3TAfvkLedz7xQuX5lVdjXKZR6xiX06W8oTOLxCB9GpS
 H1nyTAGjnCCRGLePsotEcATdpxPQvVsNvHHvsqLhc/0nQiigS70Vo+T75bIefxom
 gUzabswAkjMJd/Euv4Zsl/d7w3js3W+JtGs1ppnIytde51aToz/MZbr/1V8NmcsN
 W4DiuoMvboZcqstzlyTx4/dJIJY4cI4t/5o8D1qCq+zcamloYhcGXBYZBcmwdAk9
 5C02ugN3/IG18Ac+Nz735St7XM1WPCOvbuBJ/KvZXMsmbp0V8nKBIwOmg+dEV2Qw
 2OFtn1/WUeQJ4GqX8UX+4iYhmMmcvMxBawQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=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=1698238091; x=
 1698324491; bh=B0syZCg1OQqn4iPXvhEumQuBukXgArrDUOR8CexFjCI=; b=D
 JEH2FPPotY8NV8ORO+ioGyzsPQm3fuTQ9vNUVyUetttGK7TCBPkWHT7zXll+cid/
 O1anvloZve1flFFayNoy7EjVoT0RNEmKsXvK+W6ojqQMcMZX5Kao/R6jqPUtw+8q
 3vuzb532eyODLpL5nQJBKmr+e1ExbdslqJDynfD/1JpfcuJfjisKg6Rv1WOAuOgP
 EMwRmbTLZoFUh25BSRgQO2YZ62ms9v+u11SQcRG3JDdEERNVhDoxs64jypRCS5gF
 rG+XoUt70kgKvE9rw8w6lAJfL4F3GJAwI9cR9TeJ0fEu4EvVvO3I7MgxygQbJV+x
 af5XQ/k+9L7a1ey7jmZiA==
X-ME-Sender: <xms:iw45ZfXYBvLv7QzWFLsLQKAEPjaAZV2TjybNSyKTTPVSDSh6pWbnJQ>
 <xme:iw45ZXmaqPMTKwF7H8HdeEOBExjcEdYad89N7FFdXnXskO-VYXxqL1mtti2bWQ-pW
 Lg9qlY9BqUwennqfeM>
X-ME-Received: <xmr:iw45ZbbTfoaC4tBO5s5wKPWqEsgvrZI006SfXMNeI_Bc-5I8naX69PipZUYZxF0>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledtgdehjecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhithhr
 hicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvg
 hrnhepgeehtdehudejieetuedttdejkeehjeetueekheffuddtjeeuvdefveeuveeiuddu
 necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmih
 htrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:iw45ZaUU4XqWG_viVqzkx-cr7ENM741Z-YGTvoz0HwrblhTVPyTY2g>
 <xmx:iw45ZZnMweSJ0MJG2DKL2aKrIHQ7fpNocjrd2eoxfIl4PNwgpLDVrw>
 <xmx:iw45ZXcvSFCsz7kpwKhoCpn-q9qbygcm64MlrbqDjLyHVSwVda2-cw>
 <xmx:iw45ZYtxcudpmInRrdmz_Rgbi-nG2grJGAW6Cf_HMidNZ_WpJxk7MA>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 25 Oct 2023 08:48:10 -0400 (EDT)
Message-ID: <514fda25-c526-34f8-c3eb-8e31bdcf1290@HIDDEN>
Date: Wed, 25 Oct 2023 15:48:09 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
Content-Language: en-US
To: Nikolay Kudryavtsev <nikolay.kudryavtsev@HIDDEN>, 66706 <at> debbugs.gnu.org
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN> <87pm131pq6.fsf@HIDDEN>
 <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
 <b9e43905-fbb4-486e-85e2-c8ebef61cde5@HIDDEN>
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <b9e43905-fbb4-486e-85e2-c8ebef61cde5@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 66706
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

On 25/10/2023 15:36, Nikolay Kudryavtsev wrote:
> Same thing here. Assuming the user is reasonable, but not knowledgeable 
> yet, there's a risk that forcefully adding that cookie would derail such 
> a user solving some trivial problem into learning the differences 
> between dynamic and lexical scoping way before he really has to actually 
> care about them.

Knowing the difference can be helpful, though.

E.g. flymake in emacs-lisp-mode isn't very useful without lexbind.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 12:47:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 08:47:12 2023
Received: from localhost ([127.0.0.1]:57639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvdI0-0006ld-D4
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:47:12 -0400
Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:38399)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qvdHw-0006lM-9A
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:47:11 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id 86BE232009D8;
 Wed, 25 Oct 2023 08:46:31 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Wed, 25 Oct 2023 08:46:32 -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=
 1698237991; x=1698324391; bh=8dP1V8RKe0dLSX5VXs1Poqd6gWldGQA9wWV
 /1r4/0Fs=; b=UpvouF/5Tr7SiF/u7zOEDCen3M8yq3+JR5/TOYhi5Mr60cKjQiD
 KOTZz5MYixIlkUZfyfKK/few2ORghKZYqGhfTrDf0cGuVpkdfS83w9LwBBa+DUMl
 yILK2cmQXTy8v6OilT7LhkzlhL/tKbmmPdUzZ0HtGbTvxzKv/tjn6nPw33GWgNzh
 YXPVBSJZUK2qX894B1jF4cw/OGwLH57ox2ktaQoG6UNQLyj64AK6pa8EJxEQDCAQ
 lrV28NbrZIwuw86MLXG1qR09Mbg1VY3s7QkjuRkq4WAhgM0P8n6KwsBCz+3jiMtE
 ujfNhRwCWQiMkC0uTnQ9zFQFAnJgJOzwH4Q==
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=
 1698237991; x=1698324391; bh=8dP1V8RKe0dLSX5VXs1Poqd6gWldGQA9wWV
 /1r4/0Fs=; b=VWTYkUt85YvDYmaLY30+6vRL2/2acD1d3jspXqDzoGWDQr/3pmm
 U3mVeBzytiiLqwrw9DUH6IBEMPRCtpIbruu2EFt5aIVBkHVZI2QRPBw4WroEZA1Z
 2kdV5aH9G8vbJmueNdxs/ngJbsw6kdZqf5a8uI1sfqTPIL8RFcXXvD1qyrkklTpT
 ANtep0rj37zcF44nSBicOsS6ziw75+3j42u+joHraS6vvm9AnRQrQYhoE4wSGPWX
 9jJf6K5LBAEa7Edfen7w+D1VjXFtoT6QzXnhtq8J8jF8uuIckxfPaLaK161x/IL2
 SpVXGDvAFZHOWzEe+nwDFqvU9MifvGAA01A==
X-ME-Sender: <xms:Jg45ZSO6N7cIYaVYGyconQJl_LLB2L_hGKYhXRUx10S96Ic5dgljkQ>
 <xme:Jg45ZQ_PL04iz13J_mDxxUXaWIcq4bOhGX37i4CMt_GPsdxFFXgL-aizqqaIbzo1s
 ZigylGl0wdS_210twA>
X-ME-Received: <xmr:Jg45ZZT7lhm_Hff5XS4E95C4dYitThXlMUy0qxOpCUfbPlKpEbjwiaEdrIhJHeQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrledtgdehhecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht
 rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth
 gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv
 veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh
 hithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:Jg45ZSuCoxSfHOYmC-wl3sjIS0yBpDedZJWeYAZVNFncOomGpjCgPw>
 <xmx:Jg45ZafSeDbfEyi_JCKpi_Ev2spN0T-VILHUUbtEow_cFWUrKAOzGA>
 <xmx:Jg45ZW1XjkNplLg5XgcfjLesZFuWzayGa3H9PUh8qjbXKOCjmaVvzA>
 <xmx:Jw45ZZ7WsNIjaigGX6H7qcfbkC_NE37dI7T2FtpHptEGsEFjZN53Fg>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 25 Oct 2023 08:46:29 -0400 (EDT)
Message-ID: <211ad6fd-72b0-4454-90af-2f9666807987@HIDDEN>
Date: Wed, 25 Oct 2023 15:46:26 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
Content-Language: en-US
To: Stefan Monnier <monnier@HIDDEN>, Po Lu <luangruo@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN> <87pm131pq6.fsf@HIDDEN>
 <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN> <87h6mf1k43.fsf@HIDDEN>
 <jwvedhjx7gh.fsf-monnier+emacs@HIDDEN>
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <jwvedhjx7gh.fsf-monnier+emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>,
 =?UTF-8?Q?Mattias_Engdeg=c3=a5rd?= <mattias.engdegard@HIDDEN>,
 66706 <at> debbugs.gnu.org, stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

On 25/10/2023 14:48, Stefan Monnier via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
> I myself get bitten by the different dialects every once in a while,
> sometimes even copying code within Emacs itself (typically taking
> a chunk of code from a buffer and running it inside `M-:` or `M-x
> ielm`).

+1




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Oct 2023 12:37:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 08:37:06 2023
Received: from localhost ([127.0.0.1]:57613 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvd8E-0006Uu-9h
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:37:06 -0400
Received: from lists.gnu.org ([2001:470:142::17]:35846)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nikolay.kudryavtsev@HIDDEN>) id 1qvd88-0006UN-Us
 for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:37:05 -0400
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 <nikolay.kudryavtsev@HIDDEN>)
 id 1qvd7Y-0008Ub-7G
 for bug-gnu-emacs@HIDDEN; Wed, 25 Oct 2023 08:36:24 -0400
Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <nikolay.kudryavtsev@HIDDEN>)
 id 1qvd7W-00054s-Lm
 for bug-gnu-emacs@HIDDEN; Wed, 25 Oct 2023 08:36:23 -0400
Received: by mail-lj1-x236.google.com with SMTP id
 38308e7fff4ca-2c50ec238aeso81183711fa.0
 for <bug-gnu-emacs@HIDDEN>; Wed, 25 Oct 2023 05:36:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1698237380; x=1698842180; darn=gnu.org;
 h=content-transfer-encoding:in-reply-to:references:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=M8JF5MIs5GuFpPHcxbY4QtOC8BOMqFVD63jSIWsjcOs=;
 b=hBCXbnUwbgzfKLjj8uqEY66u50d8pAtCFXFXIJ+l05QzI9KlPacoT34gSYj4VjSGtA
 Z3ohqkMaiKykYTbVML4/HPWMBLCvlWnULryl1leA+/T5i0vteNeJO10f7onutmC7R4yi
 DykK/oOYJoy5g/Gb8gnMmOmsenSDNT+hbO7lOxEbv+89C4bAg59cdOpl7Rn2hea/guRM
 oxbSmsXLEGEGY8P6qsADh1dtEZrmG7vb20cRvZKK9R0F+23HGlwniIk4KIEyD42M70tq
 ki1MWfYI2SLKdK+Uf8jTl7cDczePYHJzmdnBPkfm4ByCDv4bwGSsMe8VEP7GE5+UM6nT
 hT+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698237380; x=1698842180;
 h=content-transfer-encoding:in-reply-to:references:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=M8JF5MIs5GuFpPHcxbY4QtOC8BOMqFVD63jSIWsjcOs=;
 b=cbKUUzLlnoKyvISuPMeCP9I9NCe1UjsiImuvZgUo7HPxZhr3N7BzOl7+TIHXrpkga4
 eRIbrkpRIlfmxJxDeTXgAG0zSrT1YEJAn/5+Yt5H9YF1nYzvu/RIzVY22+yBiJa1TNnj
 S0hg2KND9+DFLLgjOXeDfOZZ7VyYeEqiFvvE5Sri9ia4cj1bmVZ72gCgI4j+MnjFi6Vo
 mP74lkgg3ssHwWcDjihHg/dJeRBlUFrOToZVNGkXC/JEIm/amAydiKJIgD6xql0YBm4N
 H4c7aY5rDddKWmBZSixWZwD0rm4VgyOF3YZHbXlZGnM22Mo0i5boCBONA6hOYgfO3wd2
 uSnQ==
X-Gm-Message-State: AOJu0Ywb9zXWDx8Rj5BYHU/NUhbTISi8/eGiL9mTPiq8lalMMfwpXI0s
 Gb8yLROv6MKia1XWrDL8XfktHYQ0mH4=
X-Google-Smtp-Source: AGHT+IEU7JqO8HZLqqQ5pqyW8j+IzhpzcyEjSzvYpiPeDylEBkU1JsqSZyALsJI2lcchzX0eLvUZIQ==
X-Received: by 2002:a05:651c:a10:b0:2c5:1f92:b464 with SMTP id
 k16-20020a05651c0a1000b002c51f92b464mr14641142ljq.10.1698237380248; 
 Wed, 25 Oct 2023 05:36:20 -0700 (PDT)
Received: from ?IPV6:2a02:2168:b3fc:c600:b19f:651b:42c7:7059?
 ([2a02:2168:b3fc:c600:b19f:651b:42c7:7059])
 by smtp.gmail.com with ESMTPSA id
 y23-20020a05651c107700b002c1256558bdsm2442752ljm.5.2023.10.25.05.36.19
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 25 Oct 2023 05:36:19 -0700 (PDT)
From: Nikolay Kudryavtsev <nikolay.kudryavtsev@HIDDEN>
X-Google-Original-From: Nikolay Kudryavtsev <Nikolay.Kudryavtsev@HIDDEN>
Message-ID: <b9e43905-fbb4-486e-85e2-c8ebef61cde5@HIDDEN>
Date: Wed, 25 Oct 2023 15:36:18 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
Content-Language: ru, en-US
To: bug-gnu-emacs@HIDDEN
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN> <87pm131pq6.fsf@HIDDEN>
 <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
In-Reply-To: <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=2a00:1450:4864:20::236;
 envelope-from=nikolay.kudryavtsev@HIDDEN; helo=mail-lj1-x236.google.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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

I think a better perspective to frame this discussion is this:

Lets say you go to a restaurant and you order a duck. The waiter asks 
whether you want a white duck or a yellow duck. And then you're stuck 
thinking about the differences in gastronomic quantities of both.

Same thing here. Assuming the user is reasonable, but not knowledgeable 
yet, there's a risk that forcefully adding that cookie would derail such 
a user solving some trivial problem into learning the differences 
between dynamic and lexical scoping way before he really has to actually 
care about them.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 12:17:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 08:17:46 2023
Received: from localhost ([127.0.0.1]:57605 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvcpW-00060H-FK
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:17:46 -0400
Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:44426)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qvcpS-000601-8u
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:17:45 -0400
Received: by mail-lj1-x22c.google.com with SMTP id
 38308e7fff4ca-2c503dbe50dso86190701fa.1
 for <66706 <at> debbugs.gnu.org>; Wed, 25 Oct 2023 05:17:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1698236226; x=1698841026; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=j51qNlUf/dFm9EcEtg02QARhLddW3hS42uX72fJXhFI=;
 b=Lg6QvWqXAwLUBeJtYHSfQOaOk7V/beOwDL2TCUebdVlwmh/iQgb5j4Ez6bV+d6hvQC
 J4eAG8QZD35YtTX3pCLWJsoJUU699pnw5Xq3w7ij7dBY3HdVzq2PlYLjUreUaFXvsAGU
 +KzU9ar4Bwf3B0s2XhAQqo2UthaqyMaRDLTrRjmle5u1gNTy9oCW9aeW/MoLyC+8cBRz
 jMXI/pF2VZk0r78+PSms8jrKplKCqDX2dIIIWZBhVE0tTDUrqxPmyH/b9U3MS4qPYXLq
 3q29sJ5Bz4oioSjuf3m9NvoEQz4Gcuhj5hMSsBHWqsFLXhh3FF0RSQ4BkCYnOBu/QOGQ
 Bysw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698236226; x=1698841026;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=j51qNlUf/dFm9EcEtg02QARhLddW3hS42uX72fJXhFI=;
 b=Th/0FkHx3Da1VWHgcNIK/FqUYYypp6/JunMH8hJHnA3hOUjxwhjRaBz9t9DINyTcIU
 1vKWPRvneKyDn1FxENMh4qn1+wmcEBW9b/ZHKkPohr0ZsV/a2chgdDWsKHOqUSW66a1s
 4S7Gq8VspIxNhFTiRRKrikNP2jyG+TtQSLSjC7igiPb7aV5lLdv3k+xTIiMTsgAa3mZi
 pE09KIQrBrF6/9BM/2n7JdO/Libdjh85agijCyAjNMF5wOnYxCqb5ZNW1ImvPYyJWM6+
 8OO7npzcXedxPoLLJr6nlO48Mnr02Sx2kK0o/ATX2eXQqsY20Wwn5sxT2uyHQ6Q9EfHg
 R9Yw==
X-Gm-Message-State: AOJu0Yyda9Euj5cBPd8KyR4z/91yCU3VGmheKiVMZCj4+YiB75RCL0yM
 8lg6e0YEv1SFP2bQi6vYTz+JFQ1UnCsefSs0gVQ=
X-Google-Smtp-Source: AGHT+IGRPRWGS9u4NEkR4l3Xj8z8Tp72dp3AVqeGXGtMkR1BhADThD0TmvjZ8stLgta3PNFbAYMYVj0ozD72MSNSmps=
X-Received: by 2002:a05:651c:14c:b0:2c5:9a5:a1c2 with SMTP id
 c12-20020a05651c014c00b002c509a5a1c2mr11108485ljd.30.1698236225879; Wed, 25
 Oct 2023 05:17:05 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 25 Oct 2023 05:17:05 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <83v8avjuv8.fsf@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <CADwFkmnqXAVvJfU6pAE_acMnuDf+O+cmRXfGje1mE3SadakJzg@HIDDEN>
 <83v8avjuv8.fsf@HIDDEN>
MIME-Version: 1.0
Date: Wed, 25 Oct 2023 05:17:05 -0700
Message-ID: <CADwFkmn4Xb8mdi6yJOb1GB0hn7AeGRoZeYKYkHdAv-+OU1TCRw@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66706
Cc: mattias.engdegard@HIDDEN, 66706 <at> debbugs.gnu.org,
 monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> We should also ask ourselves if this is not "too much".  I think it
> is, since a clear indication of dynamic binding, with a face that
> makes it stand out, already exists on the mode line.  I think this is
> enough.

I expect the users most helped by this to not even register that warning
on the mode line.  It's quite inconspicuous.  I never see it, myself.

We have had the mode-line warning for years, yet most user
configurations still implicitly use "lexical-binding:nil".  Just have a
look at the configurations posted on GitHub, Reddit and elsewhere.

This will mean that a lot of users will have a Bad Time (TM) when we
eventually change the default to lexical-binding:t.  We can help
mitigate that pain, or we can choose not to.

The controversial choice here is to see this situation coming yet refuse
to take reasonable steps to help.  That would be unfortunate, and a
disservice to our users.

> It is not Emacs's business to force users into something they don't
> want to do.

No one disagrees with that, AFAICT.  The proposed patch has a user
option to disable the new behavior.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 12:03:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 08:03:44 2023
Received: from localhost ([127.0.0.1]:57593 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvcbw-0005eO-8Q
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:03:44 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59934)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qvcbt-0005eA-LW
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 08:03:42 -0400
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 <eliz@HIDDEN>)
 id 1qvcbJ-0006eg-Tu; Wed, 25 Oct 2023 08:03:05 -0400
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=/EiSfrSldrgNgeXhCLd/x6arOmpqf56i9VwJ6t8UUT8=; b=a5XnGlesFuUtFydiOWsR
 avQucM3TYQCUGVVuyivjDGHLapyTNVygifZr1hlvgpFblSZtEuW1aYWCC4YWz7K55G2MScrlDYh33
 d/+5ZZ4KYf3lHsOijlv79fBsIiyl1xaQhybgel65Uti3jhV1+IkeeOZlYg8pej0cgbmZqjfwiDdet
 xiCz25llTYwQg2o19QHdBljvqW4EGgkyRCIPWbZc9IUfO2TKdPuBEfxL+3tWIH3LYWGrGcoRxNhCa
 rdydZur3wE8QUMyMlUYAxAYSVhTZoG3x0r4+Lnhkq/ixvlE4F6xekQ3wh7R+86JrGnwVxhWdrvv+z
 PyhSz+Qsd+2DVA==;
Date: Wed, 25 Oct 2023 15:03:12 +0300
Message-Id: <83o7gmkiyn.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Tue, 24 Oct 2023 22:01:25 -0400)
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <87pm131pq6.fsf@HIDDEN> <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: luangruo@HIDDEN, mattias.engdegard@HIDDEN, 66706 <at> debbugs.gnu.org,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  Mattias Engdegård
>  <mattias.engdegard@HIDDEN>,  66706 <at> debbugs.gnu.org,
>   stefankangas@HIDDEN
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 11:57:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 07:57:37 2023
Received: from localhost ([127.0.0.1]:57578 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvcW0-0005TD-RZ
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 07:57:37 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:39415)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qvcVw-0005Sx-TC
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 07:57:36 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4EE264412FD;
 Wed, 25 Oct 2023 07:56:57 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1698235015;
 bh=XUxR7NxAo5WCotdNBKo+LB9M+NQBTY99gPQNepKqfXI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=UGvrRDdVJBwHBVxw1UpEC+9/DAi495cXOkxf1kZ9JtffBfbk/UqvtVHLf0icKB7GU
 V8wAp1qmEfCF2OFg71o17HbZxarOJk0A7UxBxgu+6Y8yfc3jtpDnNs+HXKrZUUkBx6
 HWQmy9hmy5quatuKusM4wGbqIa+ER8m0bgrvbXcuPPR2dzufCSQcys7If8zl2d8zG5
 FNkRNOq84wlGNFkYTRGelbpHVUiU94BL+uDDebjGv0jGtAL1XWGvBloK5WbYyN8cmg
 BOhujP8gD6MrR5N7JrpoUCTwRWmHIRmedLD1VBUcXQn+yvFOBhFN+5v16WNLPWDzUf
 iyxadYfZ/iubw==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A2212441213;
 Wed, 25 Oct 2023 07:56:55 -0400 (EDT)
Received: from pastel (unknown [45.72.216.111])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 75B4112034B;
 Wed, 25 Oct 2023 07:56:55 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <83v8avjuv8.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 25 Oct
 2023 05:31:23 +0300")
Message-ID: <jwv8r7qyla3.fsf-monnier+emacs@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <CADwFkmnqXAVvJfU6pAE_acMnuDf+O+cmRXfGje1mE3SadakJzg@HIDDEN>
 <83v8avjuv8.fsf@HIDDEN>
Date: Wed, 25 Oct 2023 07:56:54 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.001 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: mattias.engdegard@HIDDEN, 66706 <at> debbugs.gnu.org,
 Stefan Kangas <stefankangas@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> enough.  It is not Emacs's business to force users into something they
> don't want to do.

Not inserting a cookie (i.e. what we do now) forces the use of the
dynbind dialect.  In my experience, most users either don't know which
dialect they want or want the lexbind dialect.

This is reflected in the fact that almost all the code I find out there,
is either using lexbind or is old: the only code still using dynbind is
the code that started its life before lexbind existed, pretty much.
And this is to be expected: lexical scoping is the standard in virtually
all programming languages (e.g. Python, JavaScript, C, C++, Java, C#,
Rust, ...)  so programmers are much more at ease with that choice.

So we currently do "force users into something they don't want to do"
and the patch will simply let us do that less often.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 11:49:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 25 07:49:03 2023
Received: from localhost ([127.0.0.1]:57561 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvcNi-0005Ei-Fa
	for submit <at> debbugs.gnu.org; Wed, 25 Oct 2023 07:49:03 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:3604)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qvcNc-0005DL-Rj
 for 66706 <at> debbugs.gnu.org; Wed, 25 Oct 2023 07:49:01 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 561CB10013E;
 Wed, 25 Oct 2023 07:48:21 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1698234500;
 bh=igydY7gb+stbAd4FOtEDiFlNF1doTc+DR5d6+LclYg8=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=Hu3ARDtMpgI01AeH5Yyc+XCtVJV2zhbTqQvM9lK/burTtlJbevde9N6Oe44j4h5Ju
 CjAAB/+cRRt14aojbRjDPwKU4yNLsiEahDepma2oMhHzf7GImVFJm1v6VE4d3yXOYm
 t82KgdRU2Sqoquj0FnDWnXA/1yJ+eloAAZRMkHc+GBsEi4pOXWqneqffbGu5pbNjBM
 sDPryVVVc6MDw8w1VncBwDT4dG9ItYqUPnrGetJjB8Fr1S0dNYskMn0MWpDd4vP29X
 ii5k6ORNmnK/2MmsKMWJd14MJvuvg9m9sG9+GpuI2oIoA/5puZeve79kltWmH1Ydgq
 absq4QJRk27hg==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 38F6E10006B;
 Wed, 25 Oct 2023 07:48:20 -0400 (EDT)
Received: from pastel (unknown [45.72.216.111])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 085D612044C;
 Wed, 25 Oct 2023 07:48:20 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <87h6mf1k43.fsf@HIDDEN> (Po Lu's message of "Wed, 25 Oct 2023
 11:01:00 +0800")
Message-ID: <jwvedhjx7gh.fsf-monnier+emacs@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <87pm131pq6.fsf@HIDDEN> <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
 <87h6mf1k43.fsf@HIDDEN>
Date: Wed, 25 Oct 2023 07:48:19 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.149 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org,
 Mattias =?windows-1252?Q?Engdeg=E5rd?= <mattias.engdegard@HIDDEN>,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> 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.
> I find this categorical dismissal of the intellectual or problem-solving
> capacity, and perhaps fortitude if you will, of Emacs users very
> patronizing, needless to say with my Emacs user hat on.

There's no patronizing, here.  Just experience.  It *is* a source of
confusion.  I've seen enough such examples during my time in SX where
people give a valid answer, followed by comments like:

   "doesn't work here" --Mr.Foo
   "I assumed you have lexical-binding enabled, try enabling it and see
    if it works" --Mr.Bar

Sometimes the original poster tried to avoid the problem by including
the `-*- lexical-binding:t -*-` cookie in his snippet, but the other
user just copied that snippet to his existing file so the cookie didn't
end up on the first line.

I don't doubt that our users have the capacity to solve those problems.
It's just that my sadism is already satisfied by all the other problems
we foist on them.

I myself get bitten by the different dialects every once in a while,
sometimes even copying code within Emacs itself (typically taking
a chunk of code from a buffer and running it inside `M-:` or `M-x
ielm`).

> Furthermore, it is quite dubitable that minor customizations of the
> sort found on most web pages are suceptible to influence by the type
> of variable binding used.

And yet.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 03:01:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 23:01:51 2023
Received: from localhost ([127.0.0.1]:57012 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvU9W-00007b-JY
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 23:01:50 -0400
Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]:43982)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1qvU9T-00007N-Ge
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 23:01:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698202872; bh=2QeQ2jByol8dHzkqdbxTGIt76l7W6kVuXVl/XLpZSf0=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=DvzGjAILonKv2laWCgAe7ejVzT+JoO0yZ78wfJ8+vRrg9t8JpaUZBM/uI79dPpROKM0MZjQx4/zwPgbvoZKY21YH6HIeUGja6AgZ6E8+J9WpDLqBWnG1KvCf1ArntfHPjiVBqEc0WNwgJYGLMtrcQ5/TaovvjFZgfuzHU93Q94S9YSs7oPZaWvwtQRq/giM2Gyj20hs8WqIzPDnwnjvRVj+J4wkP9pXT6ZSfA5r2C16Ko1n8DQJ1z/qsRujY+8pZ9EWMgVkhp/w6j3lrCgZXPsYpJ8xcWqL42Hc7K/g4tpwIKR324+QYhDsE/uOSOWfl/v38ESDeF6U4T1QybeU59g==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698202872; bh=cpEylbh1rPVqNawVSa2yviLf6uUq9MoSFxP7noCRvPS=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=fBY4R/7gUeAr4MmWkco7Ey/YN27JuzaTWpUaAEMwFX+OEyC8S1RYlMT+2I5i2Sht6Rsh8EwRvZN+pRoteT/V2Op/SvOo/eLXLHy1ZxnyEztrOjykZ/uol+6+blNZFwFuSohiO5+xxouv+7RAtJFCr/hob9dbWVUUWvTpfixIDLyGHXIM97VbIGMbRzceOfDLqTLMLqV+F3Ms8MzEDiOdpqFDblClFl4f0fQxceH4JLv0fiVy3A+eJlSYmoro2ILV7y45/5gofM3GLEcDxX9W9f7cDqZPQZG+XvshjEz73n6pXlTOJBz1p3X4WAQlYxvnQizvXNu6zv6Y12dbQGd1Bg==
X-YMail-OSG: S5.Xy.YVM1mwLXYklVJLvl.Z5MfBphNX9KgdDVX1cN.z6RaSzT_3pqKfVp6fQAO
 i3xfTOvyLQw2gu5ysE.GnJZDXkIb9_Hns7a0cJ65CBeAE4iI9Nc6xi1695PVuaM2bgI2_1zz.rPj
 GNOzVZpQiYreB0NZr3R5YHKCAmBaeFhRMIO8D3Q9LuPqm94RMXLj3sR72cie0UoqMUDlJpZkzpXn
 J2oST0ESztfrE0W2we3XpD7.wlCV7qSjRSMeCNC1hHTm0dNpUgL78BXHLf.s7Zb0839g.jFPf_MO
 VSK4jNNHUah1jx33urUe0o.sMCtWlr0CkghH0Y7yT5FvOdUfsiKxlHYTAW07RVU.hUteQ0cFbpxz
 9jhxEvtmpu0MGTVpvxsqNIhEjsTxebh9zpVnx0CBv9OUoAKwGkumxYum8MoqdjUiZOp_xEYBT2do
 CV0cjZ3gA08OOuDE6FzGsG6NF8IpT8uHHZtiSS8DHf6Pe_Gb37cG.Gy3Wserhp8ypeg.bP5rd_.z
 qRldgwLUJ6PrzR_c_l9dSjzrBELJjwstxj3evdeW.6C2GyMrCRdRxCJbWHlKLmcOC3jMI1QsM5Sl
 TvZbZRgnR_Ze15AQqOhrHkmuxRpRkxVizvCfRg8gRAhI8dPpVXozJIkxx0h64iEwfJrW5xEPI33i
 eRNtnzWyAiW_ihWeKwPZCr7Mw7nchvKoh_WxL4hLgnRERyJCrbe08MSPlVn1Nai7WL8e71zzkstG
 thaRqheA_t1WH4JPkjsfe7SGaM7kIM3LQ6QDST2L.LLeN8C08AlsP5hU2UlwOO5CSJOTUgrHrSOO
 GhO0tyBBVPSR_OC6ajj2pFgfs3yDyNUUuM1ALZkiQ2gJXM6lwsI.Xa5ADL2PVx3zIlGQ99S754Du
 MNvp40QbmTkhMWJXPNno2xj9kQw1Zn4we.gRxTIZvvEviaR8hw0Or6MG5wGnx7FlVS54FgY3USDh
 wBKUaD4VedpkaiCZV9fk7Gv.WC0NxvzGaXXtXkd_miMOQ9l2waborPKeI5H5y07fQp8pSw2EqIQI
 1WFEUiyK3Gz3lWAXL4Tlf0ay317O8mJgFtfnrEIUgQqw7wQ68zQI0GWTwZi2qcRzQdRYcQIfDBO6
 Ec9__gRFAkGBdoI5AJ0urb68nfUkpL6HPdeNCYie42L1U5MVpSXW7ZCJYGTyJqkMVvIng5ShpUeU
 k7jW1rMtMaEFh28sfS5GSWpF_gsFcCiDtTRegn2E.Eog4.VxGIQwijV3JaaC1qGxzM.b3_urAZyP
 O56VJ3aBb.Y9ac40.LGAMcABFuCaUdVzocsDXyqBsOsjLZTWTVcbJXRIG8lhaskttyubcPhjPCan
 lO7Sh2_8h0gdKwFyTm18JjeHW0kaEOUeaAkEGziqVTkbGRi.vKceewdv.5FL45l8tP267fC_z4oP
 E4HlEpuCdGctP6Rc77wbbBrhREAnBg.DBJreji2fdLEj5BVVp24LymKOb8cFRMRMCks3ZGocZF7l
 K_qVKGtlA6okL4UPpPU9PtokGO0dExKhawFonxGAF8FGwZfM7HBXX6.UBdaniWqMeECbc6qC.e0B
 LhLlTfBngPkXwZtD0PZ0SKZRFPJC2exjNBEQYE0QkPWh3YfrJd4.wEohXpooXcElqTcUCrhjYUwE
 BZaVfCITtWHZiGHuc0OJRIOlLbd5lZhdJBbQGGie_k6d8TqaC3NsI532O6WePifz5c5m6MScOdhl
 jRAJM4UVgZhBy3fk7iROO5aJJG6_41QhbV.2j4.xeICd0E8AWzg6vEMo6_BwFQU_27VgjP9VfHg1
 ZLWwRN6YvCAk3lV5hg8vl20Xy6c45hkED8l_IeDwtiRsVDo17BupV3IOckKgpD1yCsImgG0SNfF8
 _jV6LTEeNuYBz38wT1w7lpXzSvEm4Vu1xoH_ye.Dptqctsqft4VZJDYnaCxFrbLsjhxcc7y6sHYY
 hM2NQStz4OjGjLNAB9yZJ5bPbi7Hbwmg6fVeZnFcvyNWEVXkFp0mYghdOWhzHXvJKuIa4GY.xSwe
 e5gyoI96Av3oFgVf1srpBjQtTgrXx7HFQ1gv02CKmoAD8g5QMBiZsydN5KBSbdXP1L3dknrboL22
 nm2V99_P0Zo5f1stc2n1DHG7aPnnjlGbT32fOCoAQnOvK5BfwOtPDi1MnMYKjKgIIIgWo1js9fOv
 U1wwRzg2MIDRlIuGOFKGA0y.FSHBwNkuGgklltTLfkNHxdkrylyICsm38amqiQFvc3QRbe0e0Kua
 gjnOprhcBLbu4vupjgJOYT6of4KtRPDBbTlKRHQPr1Jg2aetUl.WyI46DIp.cN0lGYyTeB4g-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: ed28a85b-c6bb-4ba9-8585-74d8a5f44b70
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic303.consmr.mail.ne1.yahoo.com with HTTP; Wed, 25 Oct 2023 03:01:12 +0000
Received: by hermes--production-sg3-57f7997989-dp725 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 11eadcfc573d601c09ecd70e09d07e47; 
 Wed, 25 Oct 2023 03:01:05 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Tue, 24 Oct 2023 22:01:25 -0400")
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <87pm131pq6.fsf@HIDDEN> <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
Date: Wed, 25 Oct 2023 11:01:00 +0800
Message-ID: <87h6mf1k43.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.21797
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 2504
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org,
 Mattias =?utf-8?Q?Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> The lexbind dialect is the dialect we recommend:
>
>     Lately Emacs is moving towards using lexical binding in more and
>     more places, with the goal of eventually making lexical binding the
>     default.  In particular, all Emacs Lisp source files and the
>     @file{*scratch*} buffer use lexical scoping.
>
> So why should a new file default to using the dynbind dialect instead?

Because that is the default, rather than a mere recommendation.  A
suggestion is an idea its recipients are meant to judge for themselves,
on the grounds of its merits and deficiencies.

> We simply can't satisfy everyone: either we impose the dynbind
> dialect by default (the current situation) or we impose the lexbind
> dialect by default.  In both cases you can look at it as something
> imposed out of a sense of superiority, but I don't think that is
> a useful way to look at it.

There is no quandary between default values here.  This change is borne
out of both a desire to _retain the status quo_, and a belief that our
users are of such low intellectual caliber as to require instruction for
even the most elementary of tasks, so that the one pious way of writing
Emacs Lisp code is inculcated into them from the outset.

> Those users who read all the docs can easily turn that option off if
> they so wish.  We shouldn't decide on what's a good defaults based
> on them.

As mentioned above, we are not adjuding which form of variable binding
is to be enabled by default.

> 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.

I find this categorical dismissal of the intellectual or problem-solving
capacity, and perhaps fortitude if you will, of Emacs users very
patronizing, needless to say with my Emacs user hat on.  Furthermore, it
is quite dubitable that minor customizations of the sort found on most
web pages are suceptible to influence by the type of variable binding
used.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 02:31:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 22:31:53 2023
Received: from localhost ([127.0.0.1]:56998 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvTgX-0007kO-G1
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 22:31:53 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46388)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qvTgV-0007kA-Sh
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 22:31:52 -0400
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 <eliz@HIDDEN>)
 id 1qvTfw-0004u1-LG; Tue, 24 Oct 2023 22:31:16 -0400
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=GK1VpHVVvJ5sAW1vQT+93oZJ9aYoVICZr2fNh7PG/7k=; b=e/ZtB9XmLAIoiVortNps
 zTTDqQzToRnVkxTD9WksrvenYhlmuM7wTEgADbZzcdOdtQ+bq0hlm2gRuv4OcWGiCRJzJQJvnBPy4
 WUyt7dioL1EgYkq5ryVitdvLohCLwz+eS20BzBKuMXUiSCp3iQzwv8elx/HVmF2bCzQC09xAtwn+5
 737+tPwB4jitF6dfmrH/GuyHlyX5lCUUSIrul+k7q934cffFX2da/STBTsYYuI0aLdVg4/NI3by8Y
 dMU/vKSxCHuvoAh75wVKwgb2TGMW2XBM0puSmoe0ETggox/H/zGf0rv0BAA7GwcRs7/Nbo2XJjgQu
 pdwwyQol2KadJg==;
Date: Wed, 25 Oct 2023 05:31:23 +0300
Message-Id: <83v8avjuv8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <CADwFkmnqXAVvJfU6pAE_acMnuDf+O+cmRXfGje1mE3SadakJzg@HIDDEN>
 (message from Stefan Kangas on Tue, 24 Oct 2023 13:22:03 -0700)
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <CADwFkmnqXAVvJfU6pAE_acMnuDf+O+cmRXfGje1mE3SadakJzg@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: mattias.engdegard@HIDDEN, 66706 <at> debbugs.gnu.org,
 monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Kangas <stefankangas@HIDDEN>
> Date: Tue, 24 Oct 2023 13:22:03 -0700
> Cc: Mattias Engdegård <mattias.engdegard@HIDDEN>, 
> 	66706 <at> debbugs.gnu.org
> 
> Stefan Monnier <monnier@HIDDEN> writes:
> 
> > That makes the patch completely useless.  There's already an opt-in
> > solution (via `auto-insert`), so I'd oppose this patch if it's OFF by
> > default since it's just added complexity.
> 
> Indeed.  I also can't see any downsides to making it non-optional.
> 
> I think we should mainly ask ourselves if this feature will help users.
> In my opinion, the answer is clearly yes, in almost all cases.  For the
> rest, a very small minority indeed, the patch provides a user option.

We should also ask ourselves if this is not "too much".  I think it
is, since a clear indication of dynamic binding, with a face that
makes it stand out, already exists on the mode line.  I think this is
enough.  It is not Emacs's business to force users into something they
don't want to do.  Emacs never did that, and should not do that in the
future.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 02:28:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 22:28:05 2023
Received: from localhost ([127.0.0.1]:56988 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvTcr-0007dA-HZ
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 22:28:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50536)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qvTcm-0007cb-I3
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 22:28:03 -0400
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 <eliz@HIDDEN>)
 id 1qvTcC-0004AZ-A3; Tue, 24 Oct 2023 22:27:24 -0400
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=/IoiW+SPxSzp6OK3t9gYwy4xVfGEGl2sGOifNsmERTs=; b=U6/jtV+ljnpfIsB2C22X
 5QvtOxYVIEtqjp+RFHMvEl+mLMcRWRvukfSmKas/U/G0xdZ8CU9ulNfJ9sV0vGqk/CDbWvLo6AlpV
 pxOJG13JBNeLmeUGoNbWO043OgVp9em6TCD0JoUHG6rfBFaZ18OUjkSz/596d92RDVo/SQSGNedyh
 wVlwimwLgosykSIrT4oUIKwhENarBS554ntWF001SOOxfL2gcbLxvSp0Yz5Geap6G74hKylfwL4D1
 2HJtIjRfMmDthyEskQlevKlnQ+n4Hdq8e4UxGoOwe6qSsCjY2lkF2ixy2vpa4NuHB3GE1fJT5NHLp
 NRWYfxoaV9Q4Aw==;
Date: Wed, 25 Oct 2023 05:27:30 +0300
Message-Id: <83y1frjv1p.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Tue, 24 Oct 2023 15:19:46 -0400)
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: mattias.engdegard@HIDDEN, 66706 <at> debbugs.gnu.org, stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: Mattias Engdegård <mattias.engdegard@HIDDEN>,
>   stefankangas@HIDDEN,  66706 <at> debbugs.gnu.org
> Date: Tue, 24 Oct 2023 15:19:46 -0400
> 
> > As mentioned earlier, please make the automatic insertion be off by
> > default, and please reflect that in the NEWS entry.
> 
> That makes the patch completely useless.  There's already an opt-in
> solution (via `auto-insert`), so I'd oppose this patch if it's OFF by
> default since it's just added complexity.
> 
> The whole point of this patch is to help those users who don't
> know better.

But we already have ample features that help those "who don't know
better".  We turned on lexical-binding by default in *scratch* and
other situations, and we have the prominent indication in the mode
line when dynamic binding is in effect.  How much more is needed, and
why?

This looks like an overkill to me.  Almost like tyranny.  And
inserting stuff into a buffer without the user's say-so is completely
against the Emacs spirit.

So I'm very much against this.  I can live with it if it's off by
default, but if you and others cannot live with such a compromise,
then neither will I.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 02:02:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 22:02:08 2023
Received: from localhost ([127.0.0.1]:56972 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvTDk-0006ys-1s
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 22:02:08 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:45900)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qvTDf-0006yK-0N
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 22:02:06 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 56CD9803B1;
 Tue, 24 Oct 2023 22:01:27 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1698199285;
 bh=KK0xGyLB0lBmus9YkhWy1Qv/8iCiLOGjMC3/egMCam4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=nWAOmpbWTfPett9dpK/4G1S/cZk70CW2dJdc9so7hzoyI4KH1ee9hPnBuuv3fibfu
 n2eZIDvB6Ha1ITtNYVJ+A+I707qkkKWtC8xNIHJGjtliwCOFSzbga6bWlMqYZPxSkI
 Vb91vTbeQf++GD0jLehg1ZM9e7pBONOEGXRbtKyhhhYYOrVw/JEoldEwOULyo5iHRa
 kgXDqiiyi91xMTgElTy7jd/rBGU9QoxKq3t4xCvvwIW8nA93KLyZZ3OVsuUuAbLw06
 1gdqtQbYK9KfSJFqrnD4MWal73u8i0rMrefWGCUb4HF0Tfuq64AMLQaeQ8MYr9gFzJ
 +X7zKrwe20NCQ==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D835F80257;
 Tue, 24 Oct 2023 22:01:25 -0400 (EDT)
Received: from pastel (unknown [45.72.216.111])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A11EA12025A;
 Tue, 24 Oct 2023 22:01:25 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <87pm131pq6.fsf@HIDDEN> (Po Lu's message of "Wed, 25 Oct 2023
 08:59:45 +0800")
Message-ID: <jwvpm13xz2s.fsf-monnier+emacs@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <87pm131pq6.fsf@HIDDEN>
Date: Tue, 24 Oct 2023 22:01:25 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.009 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org,
 Mattias =?windows-1252?Q?Engdeg=E5rd?= <mattias.engdegard@HIDDEN>,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> I want this off by default.  We teach users to enable lexical binding in
> the Lisp introduction and a myriad of other places; inserting lexical
> binding cookies is not "the icing on the cake", but a gesture that
> implies we should override the judgement of our users, and are willing
> to browbeat them into abiding by such notions of ours.

The lexbind dialect is the dialect we recommend:

    Lately Emacs is moving towards using lexical binding in more and
    more places, with the goal of eventually making lexical binding the
    default.  In particular, all Emacs Lisp source files and the
    @file{*scratch*} buffer use lexical scoping.

So why should a new file default to using the dynbind dialect instead?

> Similar measures taken by other software bespeaks the existence of a
> sense of superiority in their developers; doubtless,

We simply can't satisfy everyone: either we impose the dynbind
dialect by default (the current situation) or we impose the lexbind
dialect by default.  In both cases you can look at it as something
imposed out of a sense of superiority, but I don't think that is
a useful way to look at it.

> they think it beyond their users to read several pages of
> documentation pertaining to lexical binding, and to make from that an
> informed decision.

Those users who read all the docs can easily turn that option off if
they so wish.  We shouldn't decide on what's a good defaults based
on them.

> We never insert text to enforce our conceptions of good practice in any
> major mode.  Such is the first step down a very precipitous slope, which
> culminates in the adoption of the haughty attitude that other software
> has seized upon with particular zeal.

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.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 01:21:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 21:21:27 2023
Received: from localhost ([127.0.0.1]:56944 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvSaM-0005qd-Dg
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 21:21:27 -0400
Received: from sonic315-21.consmr.mail.ne1.yahoo.com ([66.163.190.147]:35894)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1qvSaG-0005qM-JE
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 21:21:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698196845; bh=Drn2FQkVyPpTZltVaDV5KEshWEebwSxxEdWUMWzKYF0=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=A60pVxdN9ZMXMaUyVEGPjWtVgdj46hK9mdlbCObTPbIDzXkQBR5G0a42w1pZE6uCItk1S3RayuUqoha5er+nuK8Qxs7T3d2J807Sb+sWHkV10u55xAp4lCvR6Ea86Uubs9T5zBmpx9tXirnSmafJpgyXcll+2xlI3mPO3DVEBty8ex19MT9B9fY6s7QJaBl+iTuPX+82RIQI35J1YLLohZJUjop5tn+qIm1WlE0OBTy7LbYw06aIUe6vhY36L4Ka5Gfe0Mh9TF107v/MI+PEPHOZO0HUKvUKGJTmruy4vYQEdRAMaQFa1jggk8ikub6lBoxGqGSD9rSy9qhh4YnVqg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698196845; bh=wuqU4gIbE2PTyr59FeohWEDcSueCnbiNhPSVEjNB+9d=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=e6N7rApf4Mz8i7jyVsxTxQdrTENG2kNkpAr63p8f7JIKLZKVhzn0Rr8hroXLVPSELAlTK37yxLYbKdHtZfSuWxVdu3yqYpmZOcVsPcOo7/Hmxx8mSnxwM2coZk7Ufa47kegpz4fhMLzokC8bvN6s3av9ePULq6tjuf3ggd5rz/T6scaLoFJBGXAMrkaG1ra7FbCatkhiKub4cEwd9Qnnztca06kuvkMHVU33WgZxkl3sQ9RGvmrxWXLIiVcT5cdOcsmJAmjgUfU94rsmeEA9Lw8OXo+bBPgih2iorowCPi6UFnxJ7TQLtROZxOaMJbJwStTTR81D0b2b7vU03zkclw==
X-YMail-OSG: hB5t2M0VM1n6TbhJmful9SybOqPV9dHcZ14LnuaciaoxTm7NiT475GYo5Sn4emY
 JsmucE5l9Gcv72jx6VjiD_CSOHiea5mY5818Rr8qsBd5yQPbzl.NRhOD.BLt192ABo_xwey_h81y
 SAD9EKtrelkKUD_VB.Yy7irOGEUS9I4zYmXo35rCiwUh6j4pTsQRdmo40l8YMcu9DU6lJEfw2f67
 TQ6VE7SS4tkZwg95ugsEthcc.b4jdG7WianOvjZIf3Cx9JB3zjLJwDLTN_KztltiBTUmDQNCXpzB
 xQcqqX2OJWqehIiFKr2z2ch3iXwrKGFTUoS9tP9nDCGWlhHrIKv0u299HhDFaVv1YUful..ZOwh3
 ms4nvV_ZzODIishbOop71VaeIgyKG2eXJG6IGGI7C0bcDpSisgr8DktdJf4AcVY6qz2eiNg312oJ
 POn_q8GwAF1PF6ca1gAOi4THUW9RRYZIe43.PpzWBawLs2hC3MduFbNRiA2gwDtFNDbS3nUogyZ9
 ssLx6.NiIsY3iD1DzT8X3x_NU60sO4pZhWSSunqqajuQiw7OP9YyaU82TZqq3OddThmQ1CeBizGG
 hpHDH.QLdyLdO5czc493V82ddjoeTxmSiF8KYiYrmjtp8a4KSD2by.nzUSl0Cxtf0r0bFpSjlHg8
 3XJGMMN3JNH5XSYAZIsKIwiKtmvhJIZI6yuK92vj3hYDw448yJZRQHC4H0hqVb4TgzHNE0HvHAaX
 ZLyYuTcMLDF9RDJQpnImzXf2u34p8vA_PbHFLpidCHEwAApKzIcHy0SFxe363cnMJn.0Egqg6fO9
 .u6sfdpFuw8T7m04wOBWaMrQ.Fi063lOuLk1lGRyT2hAv3qkJ42lGQUAR_.SwTkyH5isRc0HsmfA
 jb6UAW3uSSl.A8aJXN_vqWnXyonBz.I.wOZLblo7Ri9bylwNu1FPAY539EdkFXTKLR5m8q22.oP5
 0JAvxkWvLxjnLWwVgBepPfLHkAnmmGvxJEytqRmOeCeMdjPR41.5vLbkTBKgyNBeF5N4m.hfFUHR
 NN8pg0s1MQ4Jsv6H.ggl4eY1JNyF8k7j6kr8Ov.rEGt.EPkcIK.lhj7EhZ.RF1wtPXgd0ijCcRTP
 ZdF7divmQCH9WyMRndQWPerDEaAdmqKZPq7SXy8LED4DewNFMANl1RVY.ZDu8Uad56bBcV0nfk1e
 TPQPbqugP9ZmIOFihkZZm8iBarhEyIfHvspz4nwi47TM9QadPxV703uFba_uuxDknXh8C.QE27Qz
 vLeg.toQ5ONO7ex3gOCwbx1YnRSXQI.ispN.SVJbOafwAMK2mD6wbRvEVj.fSPc1Y7wDTUKpXDv1
 fwlYAZfw8buyCoMVPf0kcwqvOMCFfSfhHMo.DP57R_baaOUqkHPPWB9Tz_x2KQkbLqCmzRM7lIFN
 .dcVzwz.bcXTIyJinjxPTGMt4_RIFkmWAqjRluLpf6ZxY0VgTerbLvj29kb75Qz8Bu2eG51ldRny
 rpHR2unskqJJ.v5idTDtPVmxTSo7lu__loLtk4.wEozSOjmGpcBrkI675zeUT.I_zfFcc9UpghfO
 LHZFjjhWN6bypNlCqx3yRXL7EcIafop9McDl678kgUY_9LENnB4OPiwy88rqGUBNdDyp3JT9OLl1
 YBw8Jqaaali_siUxYONTmDIKCzyhXDZSafpNwyHv2G0v0jS5_P0bcIbIH9b.84Ve8LEF2oT5gOoZ
 OeuIeOgmXxKWTuCeMmiJk8Q3fR0j5._ipoCSjWbEp0tPRiR0FsS9VdiEEH6Zt7A5qP8IOSuQZD0C
 .36iN0su46EP4wcp3dRQi6J6fbKOo31cp55QGREW6Z24TsJ_Fk3j86j.xaqyi4sSdDQDQmrismYO
 TNA9IvOO2pbeZymE_0r517HHgTS2x3RGu2yAk1st4jMF_8tkmh07PGz_SBxVrT398KokW14HlxnB
 DPl1jd0mFVXySGCd7qTAEeBkyYgb9dRaJvUWQrQroea_hkmrZp43EjfJUyN_cUJAbpeBDbdy2t1f
 sgbBkuIdYGrQhzYfMVp1z2WJ2nEm4HTtyBYQWKYYQ5esun34_Rr7pCcgLpk3fizVJjmkQKNC1qU.
 pkZYYi8ls.BnduueCbAb1bihpjkujx.Bdv0L2ujwe38UGUppGHSyf.Dzs3KphlUdIXV5D3ng.w06
 vOXAbTXl5eldXCfP8_IdvY26errY6ZZSTeoERIpFr5Wy3MBBWtcAXBDMrvRP8pR2okZRtzaU8qWW
 Vo_6oibJ5SFwcTD0eCPiOCcQlfZk8Mk0Kz5FQI30rpcGfnLJEwN5Y9D0kdwqv8dGhKNU-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: fec7281b-21d3-4fb0-91da-14adf2593d55
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic315.consmr.mail.ne1.yahoo.com with HTTP; Wed, 25 Oct 2023 01:20:45 +0000
Received: by hermes--production-sg3-57f7997989-fcsf4 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID f1aa48d8c8f40641582e4c14266a606c; 
 Wed, 25 Oct 2023 01:20:40 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <87pm131pq6.fsf@HIDDEN> (Po Lu's message of "Wed, 25 Oct 2023
 08:59:45 +0800")
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
 <87pm131pq6.fsf@HIDDEN>
Date: Wed, 25 Oct 2023 09:20:35 +0800
Message-ID: <87lebr1org.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.21797
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1714
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>,
 Mattias =?utf-8?Q?Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>,
 66706 <at> debbugs.gnu.org, stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

Po Lu <luangruo@HIDDEN> writes:

> I want this off by default.  We teach users to enable lexical binding in
> the Lisp introduction and a myriad of other places; inserting lexical

I was mistaken here.  Lexical binding is briefly mentioned as
non-default behavior.

So why are we attempting to remedy this pitfall of the novice in Emacs
Lisp mode by inserting a feature hitherto _undocumented_ in our manual
for the uninitiated?  Everything suggest to me that documenting lexical
binding in the manual is the proper course of action.

> binding cookies is not "the icing on the cake", but a gesture that
> implies we should override the judgement of our users, and are willing
> to browbeat them into abiding by such notions of ours.
>
> Similar measures taken by other software bespeaks the existence of a
> sense of superiority in their developers; doubtless, they think it
> beyond their users to read several pages of documentation pertaining to
> lexical binding, and to make from that an informed decision.
>
> Users who know what lexical-binding controls will enable it without any
> wheedling, should they so desire.  Users who don't or won't will delete
> the cookie, then repine about its presence; quite justly at that, for
> software which holds its users in such low regard is nothing except
> impertinent.
>
> We never insert text to enforce our conceptions of good practice in any
> major mode.  Such is the first step down a very precipitous slope, which
> culminates in the adoption of the haughty attitude that other software
> has seized upon with particular zeal.

I recognize this argument is grounded wholly on principle, but principle
itself is as important a consideration as any other.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 01:00:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 21:00:37 2023
Received: from localhost ([127.0.0.1]:56914 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvSGD-0005Jc-92
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 21:00:37 -0400
Received: from sonic303-22.consmr.mail.ne1.yahoo.com ([66.163.188.148]:39965)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1qvSG8-0005JG-Na
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 21:00:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698195597; bh=C5ELL/Kgs5MtsF+ZZ7CucKE2WmmdrWOM32NPfFzblZg=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=Jl7IAkxyDu3l/42QzkFfPcpLflk/uUSTdLarYQe8zWj6TIX0+ws50SBVaOnjw1OZvPgVZqUdG2SjHIzzpk1ebzCUnp4/Kv7E44vxp/VKBN9591omL5yr4N4tsepDuAGebz3l/IFSkEIVbtQ8VBNdho6/JtA2vXlbteVJJVGnodeTgfNH/LPLllvtqoktWzEtFWsmjRpY6F6/SpYgVHFeT1hRQwEJUFB7mt/YAtXc2LhbhQpdJZaC6mC6da3iZ9rxbY+ZzvRZXH7Gqi0ziz/oxH3NT9YuH0kfYglSFMDL/CGmV4grAeAFD0Xlzau3ihyG7JfjP8a9dnb+2EyPLBij6Q==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1698195597; bh=bVHgXdHcx4mzGj4jPsNnHlK9jJKxHakjlZRXDMbwHwe=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=LOa1WiXdcI3wfqK4hxVKgXZGw6fxz07uuaVSwMfn9m2b9OHFeYLStlkYk7IA7lEXHyjm9kcJCqg8sEh0JmIrFumrFxk3IT2RqDj5GcMkhzgoa4loO6h2JCD1K6kK1jJWDJcZuiNKR18Ic2tzvb3zih3Bh/iLLYJH3FxB+YFfw+UDDUJ43+DB3qKvAvQ/KBFwNDonYL3iWX2VfbGYwXsxVM5xUNcaPRfi1B2TrD0pa/OKYcLAU3+sx1D59tFu9CHzKfrgj/6plyPXN2zOV5MrenVDA4JbMQUOR+6JF3G+zWcu6v3EVaKf2B7sn8/2ZvMY0tquZ2Swhf7rwWeNa0COXA==
X-YMail-OSG: lYtZk00VM1m33_oQwtAxqOloOVSdMWgx5c2aY6CF7YgeKU7.wxI5r1yPX0GkoPS
 k9Sx47i1_DND4XqjBK1puTL1kG_SQmj_sLW.1ZxXiC1iQw9Yw636_BsWEkUa0voqqvLp.O07e58R
 sAzMaI7LmtrawceY_uLahyF1I_OUT4087ZOE1oL6vQWjGRKGyiJzWU2AsGbj8HdPU0cc2GWITeRd
 4JZsiB4EylYFM26y8cFtwG0A2JgWL_IanuWPN0Y.M7l.L3TF8kb8SitWYjQXdS9cEmyabJy62HFA
 ltBbN8ma6k0MKaFVOhCk5AeAQEOTBYAl0OgGXlGWPo.oVLSqxi7_2AtYfPjSqfMAviNd0kBapLL4
 xByRjWrEnfIYrx3Db93inmV1KwfCSdSLoZrtLPJlUz.qRPiyjFV.NyOxy2eS4L6WH56WyOfn6bso
 5FKqmDHBgqIbx7fWztGo5VjGW_rlQfb1R87J6IXJvMI6L5XHTjhScX4nA1.o9gi16_0s9EOmwepB
 BxXbVq9Xy8tD7UIH_Axuzog2C32HbjwUNN8pwSrpNNRD.XM6jHHKERTbLofCuwk5gskmtcuok3lZ
 _tmH.X7BlPnfKE9ce4JQ.12QWCuK..gW9v5nkDNv2JZlQHXK_gtDRJD.03KYf6jX6iAHHYxw48qG
 Mm3vC1UPIjeiMPUZVtn_p6Zn1lDx4pFMI02L2wOPUhaWPIRcfI9L_scEysrP8zPdKZeDK8y5sEzq
 E4svhK4R86oyX_UGTRBOhI._zNZtVtt9hQQKW5DBW26K0vXcX7VAR5rWRv4HtO.6TG4Osgl87GBd
 cY2b7M7uksvm5_byYug_ql4spVwfQR2Mels0EDOI0bIAO7VrpO8C5W2zaJDD6T7I1shYsg2IV1ye
 HOqJziPIvRxHlXA8AiVG_4Mv91XkUlNIr2jEMrlSnlIvKwehd.EiQOQ6n2iRcTDXJ1QgSW4eTKK0
 AM9RYyAAs3DUs.6NdjhSRAwfQTmv.5DXkFVx.sTWjQEpJu7tibXk5grp2cdewHBU8Vb8aWOCEC5H
 e.5SYApbk.v5wEyyldy1uj0mUdx5CwrfHB8La8TSU0.OQOK4qwq9tP613VW2CGSduBYRiuLhAOaJ
 wCH7EUTWE6_HclaAR5ffe4g3Gd_YEzliC.wPOahAvgD_pnpObO0eH1PrZ219FPxGP7IRHTO1HfHC
 RDkJYGdBhl6ECgHokJitpE8ZuLQCPRg8NbougihQK3qaGNcBrxAYGRvsguu5t5dW59JvbmUEGitr
 BhpvrQ3vxRRqw9ny9uZCRs1HcHJzhpIOJzVdfMu0wipAYPtNou2wskryxtIqRyu9DJ5Ip54pzPJj
 .unbMEZeIM_c6MJf8FdRjnnHW2WJW8kihqn7oxWNE7qPiKvSl7jxksZ.kzMYAE4xHgLlHMYuA0Kw
 g5bTihgngFskZ8JMhSYWl9N6DeYcG1HDwyxJN1qKljHzzYOIQjyA4L6msEq3hZql02tBzMZOVarT
 O1Uic20kwD6InCRCz519TTOkUorTIYgBjsSHf353SW7zN92L2Ia9ZIZb0XG.YoE3BtB80zv1.0kr
 xLlr1WLbg3O27YlNe3jzaUa.2ujWg2qRDHfbQf0ZGBMLIOLxuqKjdhxvIC8sBx1bN1MjW1A5T8Ly
 dKoW2cKn6_gbp3eEa1rD.vmD8hY_S.dGNBu7SJpVuE4Ll4yrM9mUX.4d4UQnzNqkX3DV.lDP2Qzu
 ujp379brOoAJcH2UvxNiQ8QrnA86FjihwNSmodif4IWj8J8kP9aqoWDsDdAY3EO9an8DEmYrkmpt
 7RB_noN1aTIvee5_NZ5f8xciDzO_LnPSSwh76AQjiZTt5Cjw6JyX7ouPrb7QMBlJcQRDIlafYsZX
 8BAffvSiGBbzvAH91yjbPjCILMDTRWY7hoU2d3BT41MueeJUnheUdJRsrzG4OnKoXc9yvyjgneaC
 QnjPVbttaVvyxT4S6PwQCgMu0EG6v1kOhr5OwNcKw7BZFWGIYKiDn_NW5xCRp7zgT.UiMkSNMK78
 C22PsecDJ0Zi2Tqbe_OfZT7w4WVbhm._GADDRNNkV5_4Ea5wq2jVtuQukWU.G.3w5VfuqYBclsGs
 WMTIUOJFGsKTv6nacLPSk7YEFAEBTfRROKpK4_0v_5Rfe0sFZ5PIaU9RGkh9P94T8DzlhStiT2CS
 yXPHzVRUq4Nvc4J1oFrsFc2CmMNbwM2SV8rQ4pdTjDvmWOOXf1Ox7iP5VuWjfXOKPb0EDbQtNZkR
 sDqmppvTy0_ROcU.8f93hLLHaAGYTfXh1Lnbu8ncU6JlYMfIX1YBh6fuAZW2Nof8-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 9cef4440-c267-46b8-8693-2aa8312c53a6
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic303.consmr.mail.ne1.yahoo.com with HTTP; Wed, 25 Oct 2023 00:59:57 +0000
Received: by hermes--production-sg3-57f7997989-rvbd2 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 42c8de1f2ee84e0744aabc8cd2aa0c76; 
 Wed, 25 Oct 2023 00:59:50 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Tue, 24 Oct 2023 15:19:46 -0400")
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN> <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
Date: Wed, 25 Oct 2023 08:59:45 +0800
Message-ID: <87pm131pq6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.21797
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1626
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org,
 Mattias =?utf-8?Q?Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>,
 stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

Stefan Monnier <monnier@HIDDEN> writes:

>> As mentioned earlier, please make the automatic insertion be off by
>> default, and please reflect that in the NEWS entry.
>
> That makes the patch completely useless.  There's already an opt-in
> solution (via `auto-insert`), so I'd oppose this patch if it's OFF by
> default since it's just added complexity.
>
> The whole point of this patch is to help those users who don't
> know better.
>
>
>         Stefan

I want this off by default.  We teach users to enable lexical binding in
the Lisp introduction and a myriad of other places; inserting lexical
binding cookies is not "the icing on the cake", but a gesture that
implies we should override the judgement of our users, and are willing
to browbeat them into abiding by such notions of ours.

Similar measures taken by other software bespeaks the existence of a
sense of superiority in their developers; doubtless, they think it
beyond their users to read several pages of documentation pertaining to
lexical binding, and to make from that an informed decision.

Users who know what lexical-binding controls will enable it without any
wheedling, should they so desire.  Users who don't or won't will delete
the cookie, then repine about its presence; quite justly at that, for
software which holds its users in such low regard is nothing except
impertinent.

We never insert text to enforce our conceptions of good practice in any
major mode.  Such is the first step down a very precipitous slope, which
culminates in the adoption of the haughty attitude that other software
has seized upon with particular zeal.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 24 Oct 2023 20:22:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 16:22:45 2023
Received: from localhost ([127.0.0.1]:56766 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvNvI-00064M-W8
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 16:22:45 -0400
Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]:59865)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qvNvE-000643-Ab
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 16:22:44 -0400
Received: by mail-lj1-x230.google.com with SMTP id
 38308e7fff4ca-2c5028e5b88so71308691fa.3
 for <66706 <at> debbugs.gnu.org>; Tue, 24 Oct 2023 13:22:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1698178924; x=1698783724; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=0sAsXVfXzCqtvit4vk9oLCI+XeiisyukFCJ2H88caXA=;
 b=T+2e4pOvQ9U/Ti4IQUpr/lskDQReDXB2K4OTysHRhDHtlKR1/02EG82iDdmySDqeYj
 TPYQfAkmHVAlPgsuyn3G3Lmt9eVKA2GBu7RCs+JOfZrmMnNa4FqYVUJOXr2IJW6crz/b
 wbfhH48mgSkRLdW5YcCkCaxGC9awTEsuZlyvSKNO3MxYijEviDiavv5byqQCc9vtPNpy
 tG3GQmIPrCUx34jgg6EHm73/kKW/+XWaaUxVH3RonsuNWFso5quySvnF83IPwpu6mjgU
 3rRfdbSuzNwD+BzxzOdivJUZ2DJpmGAZ+aqpsziw2KFTEv8TF/LfM4Pi/SimYXXECUKc
 nh+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698178924; x=1698783724;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=0sAsXVfXzCqtvit4vk9oLCI+XeiisyukFCJ2H88caXA=;
 b=IGf27H/3eoU5lCW2TdD+qsSxV9iJia3tfm2WJq9OcZUeSCBaVxY5TdWYgXo9ZcymXq
 Bs5Jg9McSkZgnv/FBlpAqii3x5MIl5EJNHlC5U6B91pstwXLOuNTgQc5xach+BPeLHSd
 /J1nsU0BSn9lliGx/tBi8U+/iIvY/pGERefnbFGsQcS/u70yr6iThdUNtwxqs9LycNZi
 iPboNUBQNZqLUGlhZrIjKleuJUGayQN1O3tYp64ASF/iX7X6Dw9KomhJ2WKU4IkcKvjT
 9SpSr9Kjef3WEJBAVpl7WaWhjRMVtylR9nJt/y1lfjVQeyY2Yao+iEc93zv13sF596X1
 Rmpw==
X-Gm-Message-State: AOJu0YztUJVS67KuOn/68ZUcqW+kTpBTGYsl9OS+b9Opil1w6WpNFMy7
 5ljO59yAzDXAzSMiaqb4sBU9+3pTwJhBjiDZ+zQ=
X-Google-Smtp-Source: AGHT+IHeYXO8Uo2xoyIfg1rFuPV9BzJidYUFCtKVkXO+1Phcg4WWOALpUO851Qd4T0MEovbxLSQBE3s6H2SisskL1sU=
X-Received: by 2002:a2e:9051:0:b0:2c5:19e9:422c with SMTP id
 n17-20020a2e9051000000b002c519e9422cmr9200840ljg.24.1698178924027; Tue, 24
 Oct 2023 13:22:04 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Tue, 24 Oct 2023 13:22:03 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> <8334xzlvy9.fsf@HIDDEN>
 <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
MIME-Version: 1.0
Date: Tue, 24 Oct 2023 13:22:03 -0700
Message-ID: <CADwFkmnqXAVvJfU6pAE_acMnuDf+O+cmRXfGje1mE3SadakJzg@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
To: Stefan Monnier <monnier@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66706
Cc: =?UTF-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>,
 66706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> That makes the patch completely useless.  There's already an opt-in
> solution (via `auto-insert`), so I'd oppose this patch if it's OFF by
> default since it's just added complexity.

Indeed.  I also can't see any downsides to making it non-optional.

I think we should mainly ask ourselves if this feature will help users.
In my opinion, the answer is clearly yes, in almost all cases.  For the
rest, a very small minority indeed, the patch provides a user option.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 24 Oct 2023 19:22:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 15:22:46 2023
Received: from localhost ([127.0.0.1]:56641 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvMzF-0004NV-VV
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 15:22:46 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:60890)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1qvMz9-0004NC-QA
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 15:22:44 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4CEB5444930;
 Tue, 24 Oct 2023 15:22:04 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1698175322;
 bh=aKtZxoMyLGkKFuaYrXjHtVNRCijzr/ndu3N9BT6Uu+o=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=hxvsAzpOOVt3uTa1rketL6vdsT+PLf4pJ/Ob2oTcrufARSUuV8S+GBxu/aUg1b2iF
 IZSQBFdXlV2PfNtY1ED48UU3Cz68pf9aH1FA64MTvJmurFDwqTEvcbS3M5Mbtx782o
 qn4br5BzP7hSeKJbRV6BakxtOqdixYt0o72E2aP3X1EhXAriTQ2ZByw8m9HTnN3loz
 sBtfTKSvs+mW9B58+QzKT0RPkmzDmMmP9xAAQS4Vb1MmXdKlWGy5jumFgpvnHorEUb
 TZAJA98dzxn5xBNellWB3jyvetIYTSGJ3sQ/D1qjqmc8QNEHUa17lA+o94KpmnG9R9
 llBV/P0UowUVQ==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C766844492E;
 Tue, 24 Oct 2023 15:22:02 -0400 (EDT)
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B166A1202EA;
 Tue, 24 Oct 2023 15:22:02 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
In-Reply-To: <8334xzlvy9.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 24 Oct
 2023 21:25:02 +0300")
Message-ID: <jwv7cnbn83o.fsf-monnier+emacs@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
 <8334xzlvy9.fsf@HIDDEN>
Date: Tue, 24 Oct 2023 15:19:46 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.108 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: Mattias =?windows-1252?Q?Engdeg=E5rd?= <mattias.engdegard@HIDDEN>,
 66706 <at> debbugs.gnu.org, stefankangas@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> As mentioned earlier, please make the automatic insertion be off by
> default, and please reflect that in the NEWS entry.

That makes the patch completely useless.  There's already an opt-in
solution (via `auto-insert`), so I'd oppose this patch if it's OFF by
default since it's just added complexity.

The whole point of this patch is to help those users who don't
know better.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 24 Oct 2023 18:25:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 14:25:36 2023
Received: from localhost ([127.0.0.1]:56606 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvM5v-00008u-P7
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 14:25:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50914)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qvM5s-00008c-Ee
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 14:25:33 -0400
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 <eliz@HIDDEN>)
 id 1qvM5J-0008JP-7W; Tue, 24 Oct 2023 14:24:57 -0400
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=Pzv43hAD2P5u9Ax8rX+S0T4OqfhOWzV5uUoEuT8eJLU=; b=C3+rgKv+ilmkxRcnnWlV
 A9tGUbMTyx5tfvejrDekFPFAuvKMXF7/pla2OJSj5nR/AOoHWJatBCHq1sc7APsEFsTWDMdi4gM95
 Vs/zirB9sJ6ajufCWzoFgP/mmOevfSAQ+Bx9Y4BzNjlE45ucDIdxtXGkevqJmnymtDPMgxG9ibD92
 SYmDTbXrUTO6OSIpIo3HVCktNUgRQA1VoFHD9MgYRAB9ae/Z05DpFyWSvS7dyHohMm3CbjWUsJDmk
 yU0Oye7oMjlx6za2O+YeDczB5GwpsM2mMdH9JbQyvgsjJUlLsqdEYs99EX4wN0JLN/TWN504YPzCd
 TLowUukngv60jw==;
Date: Tue, 24 Oct 2023 21:25:02 +0300
Message-Id: <8334xzlvy9.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
In-Reply-To: <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN> (message from
 Mattias =?utf-8?Q?Engdeg=C3=A5rd?= on Tue, 24 Oct 2023 19:31:33 +0200)
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
 <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: 66706 <at> debbugs.gnu.org, stefankangas@HIDDEN, monnier@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Mattias Engdegård <mattias.engdegard@HIDDEN>
> Date: Tue, 24 Oct 2023 19:31:33 +0200
> Cc: Eli Zaretskii <eliz@HIDDEN>,
>  66706 <at> debbugs.gnu.org,
>  Stefan Monnier <monnier@HIDDEN>
> 
> Here is an updated patch, now with a test.

As mentioned earlier, please make the automatic insertion be off by
default, and please reflect that in the NEWS entry.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 24 Oct 2023 17:32:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 24 13:32:14 2023
Received: from localhost ([127.0.0.1]:56549 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qvLGI-00078h-Bi
	for submit <at> debbugs.gnu.org; Tue, 24 Oct 2023 13:32:14 -0400
Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:49600)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mattias.engdegard@HIDDEN>) id 1qvLGF-00078S-DO
 for 66706 <at> debbugs.gnu.org; Tue, 24 Oct 2023 13:32:12 -0400
Received: by mail-lf1-x136.google.com with SMTP id
 2adb3069b0e04-507973f3b65so7501654e87.3
 for <66706 <at> debbugs.gnu.org>; Tue, 24 Oct 2023 10:31:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1698168695; x=1698773495; darn=debbugs.gnu.org;
 h=references:to:cc:in-reply-to:date:subject:mime-version:message-id
 :from:sender:from:to:cc:subject:date:message-id:reply-to;
 bh=UXpepJGH2rKONY67R200kql3d8GWvKWbsfcF3jPJklg=;
 b=j82CAnFUSn9XhKnrPzLpyN043lZRM4RWgrz6vh4uzQb5NH1fO0zzrY4THkbP7xWHmK
 J/J90nx59ZMUeym8kq8v8OdW8PpY1as3k//W3C2pyMHvSipg6IumHTzghCMEiEZ3RMf3
 VtblJHCAqqCa6Tp8iufODVkhy+4O+Epq/XvHkv1sCsUhHy7A7uWLbeiEqVhOWF+wdQdE
 3FVLEMo5lBM998Y682Uid2zPg7YwKQaoYrcPMEefrXWVdL+pmAKFBt3v/ZjiYxCKaKXD
 iReCmN6vXvXRzZV6IldAwWdohRy8aLRnU4agzYah+AMyTgKkvPCdQRvQB+pJKiv4g+5w
 kdIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698168695; x=1698773495;
 h=references:to:cc:in-reply-to:date:subject:mime-version:message-id
 :from:sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=UXpepJGH2rKONY67R200kql3d8GWvKWbsfcF3jPJklg=;
 b=eSTWH+MojuY5IoYHuNfLDcMkdN7PEVfohz9A+Yf2GrxzrSgAutkZ5OHjhb7DfgVfXj
 Q1oveG5sP9K1Nw9mYp5kZtf8+i2z2jND3bHs9wh19ICulp4+88NCk/Mk4oTIUkRyLAYP
 FfdbxNKIxwTf6JIQRJyakfYrzzGTnq6S607biZCCb0cKmIHdSDyW6eUkUcr9/S2M/pr5
 use4PmhAEKjhC8IGHehYM3MWN0S0hn3hfu+hqIuLcrLx+Y1VhvCXK/TGR+uWVFUo9Kmb
 T5ZXlmy1kxc0efuC6N8m6YZZuAW5QEf74ViL2UOxigSfnFzGnDtn57TI645pQ2NAu0aK
 BjCA==
X-Gm-Message-State: AOJu0YyPeO+wtu9TvTXz7bn9ZGFCHpfXKg8Zf348XhInXFd3vBy0nRFq
 0Gc4+HZE0LImxpG3Tb4XrGE=
X-Google-Smtp-Source: AGHT+IECEohs6YgAG3srJguavPc+KjVi9yzjB/JCns7DiIrQrcaFDczlGumTwACO4NudZq+8OSa6gA==
X-Received: by 2002:a05:6512:48c5:b0:507:9701:26ff with SMTP id
 er5-20020a05651248c500b00507970126ffmr8370169lfb.31.1698168695327; 
 Tue, 24 Oct 2023 10:31:35 -0700 (PDT)
Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se.
 [188.150.165.235]) by smtp.gmail.com with ESMTPSA id
 v12-20020a056512348c00b0050318721b62sm2213165lfr.6.2023.10.24.10.31.34
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 24 Oct 2023 10:31:34 -0700 (PDT)
From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
Message-Id: <98CD592C-0E82-4795-8168-2B5E597FF7A7@HIDDEN>
Content-Type: multipart/mixed;
 boundary="Apple-Mail=_99AF7CD7-EDAA-4EEB-A008-E149862B67F9"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
Date: Tue, 24 Oct 2023 19:31:33 +0200
In-Reply-To: <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.15)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--Apple-Mail=_99AF7CD7-EDAA-4EEB-A008-E149862B67F9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Here is an updated patch, now with a test.

Not sure if this belongs in the manual, but if so it's probably in the =
Elisp manual ('Selecting Lisp Dialect'), right?


--Apple-Mail=_99AF7CD7-EDAA-4EEB-A008-E149862B67F9
Content-Disposition: attachment;
	filename=0001-Automatic-Elisp-dialect-declaration-insertion.patch
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="0001-Automatic-Elisp-dialect-declaration-insertion.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=2066270adb8cd546f4839fa6a476312063e01b7fa0=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20=
<mattiase@HIDDEN>=0ADate:=20Sun,=2022=20Oct=202023=2016:25:28=20+0200=0A=
Subject:=20[PATCH]=20Automatic=20Elisp=20dialect=20declaration=20=
insertion=0A=0AInsert=20the=20`;;;=20-*-=20lexical-binding:t=20-*-`=20=
cookie=20and=20set=0A`lexical-binding`=20to=20`t`=20when=20the=20user=20=
visits=20a=20new=20Elisp=20file,=20unless=0Athis=20feature=20is=20=
disabled.=20=20`auto-insert-mode`=20takes=20precedence.=0A=0A*=20=
etc/NEWS:=20Announce.=0A*=20lisp/progmodes/elisp-mode.el=20=
(emacs-lisp-mode):=20Add=20hook.=0A(elisp-auto-dialect-declaration):=20=
New=20defcustom.=0A(elisp--insert-auto-dialect-declaration):=20New=20=
function.=0A*=20test/lisp/progmodes/elisp-mode-tests.el=0A=
(elisp-auto-dialect-declaration):=20New=20test.=0A---=0A=20etc/NEWS=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20|=2011=20++++++++=0A=20lisp/progmodes/elisp-mode.el=20=20=20=
=20=20=20=20=20=20=20=20=20|=2035=20++++++++++++++++++++++++-=0A=20=
test/lisp/progmodes/elisp-mode-tests.el=20|=2025=20++++++++++++++++++=0A=20=
3=20files=20changed,=2070=20insertions(+),=201=20deletion(-)=0A=0Adiff=20=
--git=20a/etc/NEWS=20b/etc/NEWS=0Aindex=208becfae7bb9..d09abd42313=20=
100644=0A---=20a/etc/NEWS=0A+++=20b/etc/NEWS=0A@@=20-804,6=20+804,17=20=
@@=20This=20argument=20specifies=20the=20prettifying=20algorithm=20to=20=
use.=0A=20=0A=20**=20Emacs=20Lisp=20mode=0A=20=0A+***=20Automatic=20=
Elisp=20dialect=20declaration=20insertion.=0A+When=20visiting=20a=20new=20=
Elisp=20file,=20Emacs=20will=20now=20automatically=20insert=20a=0A+';;;=20=
-*-=20lexical-binding:=20t=20-*-'=20line=20to=20declare=20the=20modern=20=
Elisp=0A+lexical-binding=20dialect,=20and=20set=20the=20=
'lexical-binding'=20variable=0A+in=20the=20buffer=20to=20't'.=0A+=0A=
+This=20mechanism=20is=20controlled=20by=20the=20new=20=
'elisp-auto-dialect-declaration'=0A+user=20option.=20=20It=20will=20only=20=
insert=20a=20declaration=20into=20an=20empty=20buffer:=0A+if=20the=20=
buffer=20already=20had=20text=20added=20by=20means=20of=20=
'auto-insert-mode'=0A+then=20it=20will=20not=20do=20anything.=0A+=0A=20=
---=0A=20***=20',@'=20now=20has=20'prefix'=20syntax.=0A=20Previously,=20=
the=20'@'=20character,=20which=20normally=20has=20'symbol'=20syntax,=0A=
diff=20--git=20a/lisp/progmodes/elisp-mode.el=20=
b/lisp/progmodes/elisp-mode.el=0Aindex=20ff90a744ea3..8ac32ecd077=20=
100644=0A---=20a/lisp/progmodes/elisp-mode.el=0A+++=20=
b/lisp/progmodes/elisp-mode.el=0A@@=20-363,7=20+363,40=20@@=20=
emacs-lisp-mode=0A=20=20=20(add-hook=20'flymake-diagnostic-functions=20=
#'elisp-flymake-checkdoc=20nil=20t)=0A=20=20=20(add-hook=20=
'flymake-diagnostic-functions=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20#'elisp-flymake-byte-compile=20nil=20t)=0A-=20=20(add-hook=20=
'context-menu-functions=20#'elisp-context-menu=2010=20t))=0A+=20=20=
(add-hook=20'context-menu-functions=20#'elisp-context-menu=2010=20t)=0A+=20=
=20;;=20Add=20this=20hook=20sufficient=20late=20to=20give=20other=20=
hooks=20(like=20`auto-insert')=0A+=20=20;;=20the=20opportunity=20to=20=
insert=20something=20with=20higher=20priority.=0A+=20=20(add-hook=20=
'find-file-hook=20#'elisp--insert-auto-dialect-declaration=2050=20t))=0A=
+=0A+(defcustom=20elisp-auto-dialect-declaration=20'lexical=0A+=20=20=
"Dialect=20declaration=20automatically=20inserted=20in=20new=20Elisp=20=
buffers.=0A+The=20declaration=20is=20\";;;=20-*-=20lexical-binding:=20t=20=
-*-\".=0A+It=20is=20only=20inserted=20when=20an=20empty=20non-existing=20=
file=20is=20visited.=0A+Possible=20values=20are:=0A+=20=20`lexical'=20=20=
declare=20use=20of=20the=20modern=20lexical=20binding=20dialect.=0A+=20=20=
`nil'=20=20=20=20=20=20do=20not=20automatically=20insert=20any=20=
declaration.=0A+=0A+If=20`auto-insert-mode'=20is=20used=20to=20put=20=
something=20in=20the=20buffer=20instead,=0A+then=20no=20declaration=20is=20=
inserted."=0A+=20=20:type=20'(choice=20(const=20:tag=20"Lexical=20=
binding=20(modern)"=20lexical)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20(const=20:tag=20"No=20automatic=20declaration"=20nil))=0A+=20=
=20:group=20'lisp=0A+=20=20:version=20"30.1")=0A+=0A+(defun=20=
elisp--insert-auto-dialect-declaration=20()=0A+=20=20"Insert=20the=20=
`elisp-auto-dialect-declaration'=20selection=20in=20a=20new=20empty=20=
buffer.=0A+Otherwise,=20do=20nothing."=0A+=20=20(when=20(and=20(eq=20=
elisp-auto-dialect-declaration=20'lexical)=0A+=20=20=20=20=20=20=20=20=20=
=20=20=20=20(not=20buffer-read-only)=0A+=20=20=20=20=20=20=20=20=20=20=20=
=20=20(zerop=20(buffer-size))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=
;;=20Don't=20modify=20a=20buffer=20corresponding=20to=20an=20existing=20=
empty=20file.=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20(not=20(and=20=
buffer-file-name=20(file-exists-p=20buffer-file-name))))=0A+=20=20=20=20=
(let=20((was-modified=20(buffer-modified-p)))=0A+=20=20=20=20=20=20=
(insert=20";;;=20-*-=20lexical-binding:=20t=20-*-\n")=0A+=20=20=20=20=20=20=
(setq-local=20lexical-binding=20t)=0A+=20=20=20=20=20=20;;=20Mark=20the=20=
buffer=20unmodified=20(unless=20it=20was=20modified=20before)=0A+=20=20=20=
=20=20=20;;=20so=20that=20the=20user=20isn't=20bothered=20when=20killing=20=
it=20or=20quitting=20Emacs.=0A+=20=20=20=20=20=20(set-buffer-modified-p=20=
was-modified))))=0A=20=0A=20;;=20Font-locking=20support.=0A=20=0Adiff=20=
--git=20a/test/lisp/progmodes/elisp-mode-tests.el=20=
b/test/lisp/progmodes/elisp-mode-tests.el=0Aindex=20=
4fa869c773f..2a18b204ef1=20100644=0A---=20=
a/test/lisp/progmodes/elisp-mode-tests.el=0A+++=20=
b/test/lisp/progmodes/elisp-mode-tests.el=0A@@=20-1131,5=20+1131,30=20@@=20=
test-indentation=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20(emacs-lisp-mode)=0A=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20(indent-region=20(point-min)=20=
(point-max)))))=0A=20=0A+(defun=20elisp-mode-tests--insert-gibberish=20=
()=0A+=20=20(insert=20"gibberish\n")=0A+=20=20(set-buffer-modified-p=20=
nil))=0A+=0A+(ert-deftest=20elisp-auto-dialect-declaration=20()=0A+=20=20=
(let=20((file=20"does-not-exist.el"))=0A+=20=20=20=20(should-not=20=
(file-exists-p=20file))=0A+=20=20=20=20;;=20Try=20with=20=
`elisp-auto-dialect-declaration'=20off=20and=20on.=0A+=20=20=20=20=
(dolist=20(enabled=20'(nil=20lexical))=0A+=20=20=20=20=20=20(let=20=
((elisp-auto-dialect-declaration=20enabled))=0A+=20=20=20=20=20=20=20=20=
;;=20Try=20with=20a=20competing=20insertion=20that=20uses=20the=20=
`find-file-hook'.=0A+=20=20=20=20=20=20=20=20(dolist=20(auto-ins=20'(nil=20=
t))=0A+=20=20=20=20=20=20=20=20=20=20(let=20((find-file-hook=0A+=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20(if=20auto-ins=0A+=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(cons=20=
'elisp-mode-tests--insert-gibberish=20find-file-hook)=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20find-file-hook)))=0A+=20=20=20=20=20=
=20=20=20=20=20=20=20(save-current-buffer=0A+=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20(find-file=20file)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20(should=20(equal=20(buffer-string)=0A+=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(cond=20(auto-ins=20=
"gibberish\n")=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(enabled=20";;;=20-*-=20=
lexical-binding:=20t=20-*-\n")=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(t=20=
""))))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20(should=20(equal=20=
(buffer-modified-p)=20nil))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
(kill-buffer))))))))=0A+=0A=20(provide=20'elisp-mode-tests)=0A=20;;;=20=
elisp-mode-tests.el=20ends=20here=0A--=20=0A2.32.0=20(Apple=20Git-132)=0A=
=0A=

--Apple-Mail=_99AF7CD7-EDAA-4EEB-A008-E149862B67F9--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 23 Oct 2023 20:21:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 23 16:21:10 2023
Received: from localhost ([127.0.0.1]:51959 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qv1QE-0000Lu-KU
	for submit <at> debbugs.gnu.org; Mon, 23 Oct 2023 16:21:10 -0400
Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:56611)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mattias.engdegard@HIDDEN>) id 1qv1QC-0000Le-0o
 for 66706 <at> debbugs.gnu.org; Mon, 23 Oct 2023 16:21:09 -0400
Received: by mail-lj1-x22e.google.com with SMTP id
 38308e7fff4ca-2b95d5ee18dso58864721fa.1
 for <66706 <at> debbugs.gnu.org>; Mon, 23 Oct 2023 13:20:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1698092432; x=1698697232; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject
 :date:message-id:reply-to;
 bh=/7tgVRRejzq9UHAsoCLPCyji4tD3qDonf5Uy7hc6F3A=;
 b=ipeQqtqJrXdA8EQYSfE8bFQF8oZfQp+3X/wtTHa07MslHCmIbAuWt6gekqL91+exhS
 QAkoPPjoAXfeg24QK9DzlcXgdfirEK2rnSfQBlceFfqoX9tQYlRiegnSGx0KwrE4BZ4G
 Pz64xgaVG4hXtgWeMAChFZNjK4/Ss0Hv3sAlWi2RFUju0K5re4rK+IpfCcNQEyT2Rm6k
 TzRxrC2Gip7ME3U3d707iP/vyylIe/wjcA4EF+tvLCdUDNshH1MvWn7QrIGiN4x4UdQv
 fyodjyT2B6WfBzZJn5SmkmXxeYHkFn8AmrAhz6j8V8AycSafmS/VROU64HZ3N8/DdtiO
 oYKg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698092432; x=1698697232;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:sender:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=/7tgVRRejzq9UHAsoCLPCyji4tD3qDonf5Uy7hc6F3A=;
 b=pSTyiNleWuF2cAJZNZ0+UQ4JlEIjye6vvzYdma4eN12N7XsPOQ6VTxvDc9vg0yRaEd
 FFoHS+wLlmxYl36ncMhdAqERSlMjrohKiUyVoRIkXIe4MUOQf4SHZAN3Tca4+0Y69kq9
 ZLWk7na3WhxOt0O8IdLaDqI/6vK6ztF/kTeQV4uAplbJTluw1nsiC22CzHx3IVUdo0HI
 ce7JpHrv+wescH68LpbLBCtqawAjJJHO6LJDk1KhTy3wOQfcJFIUUUN7DCkwRRKfeQbL
 FOEIgQgV5reIIuWRaACwgTCDkHLElSeAxr93fG30U26Id31kFexHJLCJX94MxtPA3r8e
 9Sww==
X-Gm-Message-State: AOJu0Yxp2F55F1n05walwQEEqrXto+CowiWZJgX8NAuyHAZGJEn+9Sta
 L0oCFidDT8V4kiwUon07mSI=
X-Google-Smtp-Source: AGHT+IHHhLFHRo3xd7DZPn7UExO76JpFpe/FoxBTUuRwsBgVNM5CQXPQ/IL6nB+uaMN3DhW04D7q4g==
X-Received: by 2002:a2e:b4a7:0:b0:2c0:2583:520e with SMTP id
 q7-20020a2eb4a7000000b002c02583520emr6376038ljm.41.1698092432220; 
 Mon, 23 Oct 2023 13:20:32 -0700 (PDT)
Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se.
 [188.150.165.235]) by smtp.gmail.com with ESMTPSA id
 d24-20020a2e3318000000b002bce87faca9sm1721150ljc.57.2023.10.23.13.20.31
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 23 Oct 2023 13:20:31 -0700 (PDT)
Content-Type: text/plain;
	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
In-Reply-To: <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
Date: Mon, 23 Oct 2023 22:20:30 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <80C933AA-E678-4A1D-B09A-AD31E5015AFF@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
 <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.15)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66706
Cc: Eli Zaretskii <eliz@HIDDEN>, 66706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

23 okt. 2023 kl. 21.21 skrev Stefan Kangas <stefankangas@HIDDEN>:

> Yeah, it's not something we usually do.  But we also don't change =
Emacs
> Lisp in such a fundamental way very often (once every 40 years, give =
or
> take?).  So I think veering from what we usually do is justified.

It's actually a rather timid feature as language modes go. They are =
supposed to act in their users' best interests, after all.

> I also note that this can only help and will never hurt users.

Right. This always informs our designs.

The feature is carefully designed not to get in the way. It is not =
opinionated: it does not add any other header, footer, copyright text, =
preamble or anything else.

Not including the cookie at all is the odd choice, and it is not =
unreasonable having to type C-p C-k in that rare case.






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 23 Oct 2023 19:22:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 23 15:22:27 2023
Received: from localhost ([127.0.0.1]:51719 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qv0VP-0001nG-4q
	for submit <at> debbugs.gnu.org; Mon, 23 Oct 2023 15:22:27 -0400
Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:55504)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qv0VL-0001my-JK
 for 66706 <at> debbugs.gnu.org; Mon, 23 Oct 2023 15:22:25 -0400
Received: by mail-lj1-x22b.google.com with SMTP id
 38308e7fff4ca-2b9338e4695so51313411fa.2
 for <66706 <at> debbugs.gnu.org>; Mon, 23 Oct 2023 12:21:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1698088908; x=1698693708; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=QXPJyetqldDZRo+4L3PMoB091BhlfKBwRfRVC2k6GqA=;
 b=RsGjTZ2FpfPw2jr4e3OhQgnQBVTrkdCcfP9wJo+KXfqcFx8DfmQfbPNFnd8ELqY8F8
 og/im/zp+FOufm9/vvBeZcfARhFsLBG+u3Z5VsHlfnHYMgMnWHdvaYaR6BuSPJeaDTL7
 nMSHh8FrGEcl3HgK1bKdtlvDiZ2AvFbY0nq0LUAc0ONkIDyOz8ReAo/x6/h7IG1+dD7c
 BdIIfqVHZ/T9ROH7sqnGTMglrAz365XbQpRIiTYpe2HjtuDCDgJUHw3rcErEmh6CWoPC
 7kzLS/LoGbtc+pV81oCPuED0MwhJEQU1vR7GoXf9JHhAczFiMLJY1CCyuSiP+zH0WO3f
 t7eg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698088908; x=1698693708;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=QXPJyetqldDZRo+4L3PMoB091BhlfKBwRfRVC2k6GqA=;
 b=jaNPB9RFKCcxCYC46CDOAf6HRHBj80DVAGKBahMfKV671BSgcA8SFAZ0+SfhXMZDHJ
 bk0Z38j6P4WhQKfr8vNxxHh+fL4g9u8wCOzAapf+zRi1lZEcZ9W4C4RPNAx3/RaE+sj0
 E2lziZ12GCdtxeAvWoX8hbq/IURnGjrPjXqN9TxO6osESp4MaNPvcA+nwr9HPC8B4oQG
 KvmClDMJy94PpU+dW+rWorGM0IYCTpLpEmoauS1OcxPbVBKi658YZk341yKXmcE7kDs7
 gBODk63zJVTfEZzZSTzhjYb+NAJOJjKVmcspgySpvOe4vPA2khROV50Cuffze3sULiE9
 08rw==
X-Gm-Message-State: AOJu0YwBZIb7pnqtrt+7NzhGK75vCmjEz9ihRrf4x/LjvlNBKJ732DIB
 opRjHVKy2QDhFiMtva4MohiUnFJTFYYsWO/NcyI=
X-Google-Smtp-Source: AGHT+IEqNoyDy8Ete8oTAbn2ZP2E1BODF4RCp/Ka9tAz9r82WTQfC65v/nT40/NZ/GfNhFtzkV+/mxJV1Qiu84Hs0ZY=
X-Received: by 2002:a2e:9a92:0:b0:2c5:106f:540f with SMTP id
 p18-20020a2e9a92000000b002c5106f540fmr8010192lji.43.1698088907960; Mon, 23
 Oct 2023 12:21:47 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Mon, 23 Oct 2023 12:21:47 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <83sf61mb54.fsf@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
 <83sf61mb54.fsf@HIDDEN>
MIME-Version: 1.0
Date: Mon, 23 Oct 2023 12:21:47 -0700
Message-ID: <CADwFkmnb9riGSVeHKYOPuR63-KOaj666TJyia8hKbWvj4qZ4Rg@HIDDEN>
Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion
To: Eli Zaretskii <eliz@HIDDEN>,
 =?UTF-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66706
Cc: 66706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> This patch inserts the lexical cookie in new Elisp files automatically.
>> It helps users by making it less likely that they forget to add it, and eliminates some drudgery.
>> Their code will be more future-safe, and more robust and performant here and now.

Sounds good to me.

> This could be an optional feature, but not the default.  It is
> un-Emacs'y to insert stuff into user files or buffers without an
> explicit consent.  We have several auto-insert features in Emacs, and
> they are all optional, so this one must be optional as well.

Yeah, it's not something we usually do.  But we also don't change Emacs
Lisp in such a fundamental way very often (once every 40 years, give or
take?).  So I think veering from what we usually do is justified.

I also note that this can only help and will never hurt users.

If anyone happens to hate this, they can easily disable it.  Whereas, on
the other hand, making the feature optional makes it much less useful.

So my vote would be in favor of this change.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 23 Oct 2023 18:45:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 23 14:45:19 2023
Received: from localhost ([127.0.0.1]:51682 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1quzvT-0006dB-4r
	for submit <at> debbugs.gnu.org; Mon, 23 Oct 2023 14:45:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48166)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1quzvQ-0006cv-8I
 for 66706 <at> debbugs.gnu.org; Mon, 23 Oct 2023 14:45:17 -0400
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 <eliz@HIDDEN>)
 id 1quzur-0005ed-LW; Mon, 23 Oct 2023 14:44:41 -0400
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=9krUeeZT8vUdlKf5sZ7r1E+XIp9JkLhyrQPaRZRxcQE=; b=o0YMCkSW04YxXlm59ZDT
 rGhf5IYZhaqsAAFj1qbfDwl/VGuxh9gHYn+VTUMQsWgaEAleq8JzkUwXeEVrr1Ia3XE4fuZtewX0D
 SDrWMn1nKML/E+2jGDeMVaBzMqhd+NQ5c54KZ+xgSyKifzQvzAg5/ekSc6H1UtIW981RHrTsPzcUs
 LZSOqOfvrtXkPL8vBzUU0RNl7e7VU69kKUBNZpHuiqW69mDquLzKXNX7CTigh0HSJV2uqb3qeynjI
 GS7/n32fpi218k1CwXdomPRD1lZYWdL8dePn3B8ObH32A7Lv9S0hKaABFaP0Z4sD+f1hBgTLgw8Fz
 STyWfvZEPbEq/A==;
Date: Mon, 23 Oct 2023 21:44:39 +0300
Message-Id: <83sf61mb54.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
In-Reply-To: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN> (message from
 Mattias =?utf-8?Q?Engdeg=C3=A5rd?= on Mon, 23 Oct 2023 19:46:14 +0200)
Subject: Re: bug#66706: =?utf-8?Q?=5BPATCH=5D=C2=A0Automatic?= elisp dialect
 insertion
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: 66706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Mattias Engdegård <mattias.engdegard@HIDDEN>
> Date: Mon, 23 Oct 2023 19:46:14 +0200
> 
> This patch inserts the lexical cookie in new Elisp files automatically.
> It helps users by making it less likely that they forget to add it, and eliminates some drudgery.
> Their code will be more future-safe, and more robust and performant here and now.

This could be an optional feature, but not the default.  It is
un-Emacs'y to insert stuff into user files or buffers without an
explicit consent.  We have several auto-insert features in Emacs, and
they are all optional, so this one must be optional as well.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at 66706 <at> debbugs.gnu.org:


Received: (at 66706) by debbugs.gnu.org; 23 Oct 2023 18:24:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 23 14:24:41 2023
Received: from localhost ([127.0.0.1]:51643 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1quzbV-000668-2S
	for submit <at> debbugs.gnu.org; Mon, 23 Oct 2023 14:24:41 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:9894)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1quzbP-00065n-LB
 for 66706 <at> debbugs.gnu.org; Mon, 23 Oct 2023 14:24:40 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 26B9E442B3B;
 Mon, 23 Oct 2023 14:24:00 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1698085438;
 bh=f3Mo3fI6e3EE4pdxlgljO/rVGMKVwGoHJH3RbSPxDUw=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=XnZPE862Y+jv5HTYgOTDrmf3b9jIHcI6qVA3BopXSSECminmdSyCFHsKPVOm+OQdE
 n4dp9Khkii11QU1mWMPt9ajFZeMYEBEm1hKMaRBBvu6+JbLRvw82DgZaQQkTDZzavw
 FchVoIyAKcoETpCoBi5NZpp5OTBFYZDIVgZmrzsxjclVSdyEaTCpcOaJMUaP0fRzEs
 DYVrQF3yHvl8LYZnljM6bzlruSr6a/WvIG/JpB3o5xMf2BZznf8+5AuEvhGj8cKnQc
 YKahK8kaoQq+cDIyQzyaXFfAFpnn9krZ+dcmgAwFF11jth2qy12UfKMjyCP2zwVvvq
 KZ8TWxy+Gclig==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id BA1B3442B3D;
 Mon, 23 Oct 2023 14:23:58 -0400 (EDT)
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A43281202C3;
 Mon, 23 Oct 2023 14:23:58 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Mattias =?windows-1252?Q?Engdeg=E5rd?= <mattias.engdegard@HIDDEN>
Subject: Re: bug#66706: =?windows-1252?Q?=5BPATCH=5D=A0Automatic?= elisp
 dialect insertion
In-Reply-To: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN> ("Mattias
 =?windows-1252?Q?Engdeg=E5rd=22's?= message of "Mon, 23 Oct 2023 19:46:14
 +0200")
Message-ID: <jwvbkcpnqxz.fsf-monnier+emacs@HIDDEN>
References: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
Date: Mon, 23 Oct 2023 14:21:53 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.110 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66706
Cc: 66706 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> This patch inserts the lexical cookie in new Elisp files
> automatically.  It helps users by making it less likely that they
> forget to add it, and eliminates some drudgery.

Yes, please,

> Their code will be more future-safe, and more robust and performant here and now.

I wouldn't make any claim about "performant": there are important cases
where we execute lexically scoped code more efficiently, but there are
also cases (hopefully less important) where the reverse is true.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Oct 2023 17:47:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 23 13:47:03 2023
Received: from localhost ([127.0.0.1]:51588 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1quz15-00052r-2a
	for submit <at> debbugs.gnu.org; Mon, 23 Oct 2023 13:47:03 -0400
Received: from lists.gnu.org ([2001:470:142::17]:41312)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mattias.engdegard@HIDDEN>) id 1quz12-00052M-BB
 for submit <at> debbugs.gnu.org; Mon, 23 Oct 2023 13:47:02 -0400
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 <mattias.engdegard@HIDDEN>)
 id 1quz0O-0002UF-Gq
 for bug-gnu-emacs@HIDDEN; Mon, 23 Oct 2023 13:46:23 -0400
Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <mattias.engdegard@HIDDEN>)
 id 1quz0N-0002ii-1x
 for bug-gnu-emacs@HIDDEN; Mon, 23 Oct 2023 13:46:20 -0400
Received: by mail-lf1-x12f.google.com with SMTP id
 2adb3069b0e04-507a55302e0so4876880e87.0
 for <bug-gnu-emacs@HIDDEN>; Mon, 23 Oct 2023 10:46:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1698083175; x=1698687975; darn=gnu.org;
 h=to:date:message-id:subject:mime-version:from:sender:from:to:cc
 :subject:date:message-id:reply-to;
 bh=fJPlknUZwkjyLeXn1X5uE19cZRyxWoauSdM8j03c+wY=;
 b=OFDRB9vB8eNGAOR9A59hJfDb54DGYxUsO1vqkN6ee9m0jheYLqBUYYrVGuPNOkwwo0
 a5rSs0X8WoiysTb1NZYxw1RedfCc3UR9dRnLXdvyx+R3nS7w32GdIMKjIMAlGltjQzK0
 KjZNUJGiJFXyhVkO28PumbP2DXb50M4l12Nb/FJQ56MzJiF7MjkmanqOXQU8lxU6swwr
 K66iBeLtuGlgn7cERCVTMOZnhDXcTeyvKrBb3EBh5sRZm4WDBCEDBZZ2L/y6NtrtrefE
 UDcfeT/XSZ8cr3S2wqTDdZcNFcD9CTXJlbLB55hi/DhcM4pgfXYrv3iapwbiKT1jbgeC
 9FOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698083175; x=1698687975;
 h=to:date:message-id:subject:mime-version:from:sender
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=fJPlknUZwkjyLeXn1X5uE19cZRyxWoauSdM8j03c+wY=;
 b=aGUWvpeXQXLqC8yWc6cyKYEXGi4JF8M4b1DiaId9AzE+jxc67diS4AjdaE/m7AMkdd
 O1I34wJcY7/c8MQ9I5ZdsggUdyT0jRaBf2ZUMmQzMRlN8v/1isE0aqtOXz6RVkelpWfQ
 F6rVkJ8j6jVGPqoO2WpFajwwBQnPXHJyOvBc1WEJvSxXgYB9svaAEBL+/3ROWJ2zDzAd
 jzVkEzHu5FwDpeFiTjgkqkfb4MqanGP/t7dNdX8qB4nGthH/ddcS42y44WN3NYPWS36h
 KGU5wgcKy8bZijdg06XJTLHNlGX9xxOSWCoUU9gp6O85ug7wyCN3l4dj+0QpUM8+/0y/
 SvRQ==
X-Gm-Message-State: AOJu0YwYTaz7gzTqKbins96BhEn8QRZxcTuvVGJkkYXvzl8ABDfTuiVQ
 cmwk4Js/R7Wb6T9OU41M8Zlr7MxJ3U8EnA==
X-Google-Smtp-Source: AGHT+IEIzyZeWGq0BihzJtGnTOIqrhlqkiBKD0hZC4YIQrs+8InWMTAjORm13D3bsMNu+dMsu0E9Mg==
X-Received: by 2002:a05:6512:711:b0:507:a9b7:f071 with SMTP id
 b17-20020a056512071100b00507a9b7f071mr7027850lfs.1.1698083175468; 
 Mon, 23 Oct 2023 10:46:15 -0700 (PDT)
Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se.
 [188.150.165.235]) by smtp.gmail.com with ESMTPSA id
 m14-20020a056512358e00b00501c673e773sm1788053lfr.39.2023.10.23.10.46.14
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 23 Oct 2023 10:46:15 -0700 (PDT)
From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
Content-Type: multipart/mixed;
 boundary="Apple-Mail=_D3432800-D637-4F59-A33C-6BB3EE9E184F"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Subject: =?utf-8?Q?=5BPATCH=5D=C2=A0Automatic_elisp_dialect_insertion?=
Message-Id: <17C83052-7946-45DE-B660-DA7EB82001B0@HIDDEN>
Date: Mon, 23 Oct 2023 19:46:14 +0200
To: Emacs Bug Report <bug-gnu-emacs@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.15)
Received-SPF: pass client-ip=2a00:1450:4864:20::12f;
 envelope-from=mattias.engdegard@HIDDEN; helo=mail-lf1-x12f.google.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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


--Apple-Mail=_D3432800-D637-4F59-A33C-6BB3EE9E184F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

This patch inserts the lexical cookie in new Elisp files automatically.
It helps users by making it less likely that they forget to add it, and =
eliminates some drudgery.
Their code will be more future-safe, and more robust and performant here =
and now.


--Apple-Mail=_D3432800-D637-4F59-A33C-6BB3EE9E184F
Content-Disposition: attachment;
	filename=0001-Automatic-Elisp-dialect-declaration-insertion.patch
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="0001-Automatic-Elisp-dialect-declaration-insertion.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=201f046584a58da54b32b6be8c17d00c990453a177=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20=
<mattiase@HIDDEN>=0ADate:=20Sun,=2022=20Oct=202023=2016:25:28=20+0200=0A=
Subject:=20[PATCH]=20Automatic=20Elisp=20dialect=20declaration=20=
insertion=0A=0AInsert=20the=20`;;;=20-*-=20lexical-binding:t=20-*-`=20=
cookie=20and=20set=0A`lexical-binding`=20to=20`t`=20when=20the=20user=20=
visits=20a=20new=20Elisp=20file,=20unless=0Athis=20feature=20is=20=
disabled.=20=20`auto-insert-mode`=20takes=20precedence.=0A=0A*=20=
etc/NEWS:=20Announce.=0A*=20lisp/progmodes/elisp-mode.el=20=
(emacs-lisp-mode):=20Add=20hook.=0A(elisp-auto-dialect-declaration):=20=
New=20defcustom.=0A(elisp--insert-auto-dialect-declaration):=20New=20=
function.=0A---=0A=20etc/NEWS=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20|=2011=20+++++++++++=0A=20lisp/progmodes/elisp-mode.el=20=
|=2035=20++++++++++++++++++++++++++++++++++-=0A=202=20files=20changed,=20=
45=20insertions(+),=201=20deletion(-)=0A=0Adiff=20--git=20a/etc/NEWS=20=
b/etc/NEWS=0Aindex=20d0880669752..b87f51a134c=20100644=0A---=20=
a/etc/NEWS=0A+++=20b/etc/NEWS=0A@@=20-797,6=20+797,17=20@@=20This=20=
argument=20specifies=20the=20prettifying=20algorithm=20to=20use.=0A=20=0A=
=20**=20Emacs=20Lisp=20mode=0A=20=0A+***=20Automatic=20Elisp=20dialect=20=
declaration=20insertion.=0A+When=20visiting=20a=20new=20Elisp=20file,=20=
Emacs=20will=20now=20automatically=20insert=20a=0A+';;;=20-*-=20=
lexical-binding:=20t=20-*-'=20line=20to=20declare=20the=20modern=20Elisp=0A=
+lexical-binding=20dialect,=20and=20set=20the=20'lexical-binding'=20=
variable=0A+in=20the=20buffer=20to=20't'.=0A+=0A+This=20mechanism=20is=20=
controlled=20by=20the=20new=20'elisp-auto-dialect-declaration'=0A+user=20=
option.=20=20It=20will=20only=20insert=20a=20declaration=20into=20an=20=
empty=20buffer:=0A+if=20the=20buffer=20already=20had=20text=20added=20by=20=
means=20of=20'auto-insert-mode'=0A+then=20it=20will=20not=20do=20=
anything.=0A+=0A=20---=0A=20***=20',@'=20now=20has=20'prefix'=20syntax.=0A=
=20Previously,=20the=20'@'=20character,=20which=20normally=20has=20=
'symbol'=20syntax,=0Adiff=20--git=20a/lisp/progmodes/elisp-mode.el=20=
b/lisp/progmodes/elisp-mode.el=0Aindex=20ff90a744ea3..8ac32ecd077=20=
100644=0A---=20a/lisp/progmodes/elisp-mode.el=0A+++=20=
b/lisp/progmodes/elisp-mode.el=0A@@=20-363,7=20+363,40=20@@=20=
emacs-lisp-mode=0A=20=20=20(add-hook=20'flymake-diagnostic-functions=20=
#'elisp-flymake-checkdoc=20nil=20t)=0A=20=20=20(add-hook=20=
'flymake-diagnostic-functions=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20#'elisp-flymake-byte-compile=20nil=20t)=0A-=20=20(add-hook=20=
'context-menu-functions=20#'elisp-context-menu=2010=20t))=0A+=20=20=
(add-hook=20'context-menu-functions=20#'elisp-context-menu=2010=20t)=0A+=20=
=20;;=20Add=20this=20hook=20sufficient=20late=20to=20give=20other=20=
hooks=20(like=20`auto-insert')=0A+=20=20;;=20the=20opportunity=20to=20=
insert=20something=20with=20higher=20priority.=0A+=20=20(add-hook=20=
'find-file-hook=20#'elisp--insert-auto-dialect-declaration=2050=20t))=0A=
+=0A+(defcustom=20elisp-auto-dialect-declaration=20'lexical=0A+=20=20=
"Dialect=20declaration=20automatically=20inserted=20in=20new=20Elisp=20=
buffers.=0A+The=20declaration=20is=20\";;;=20-*-=20lexical-binding:=20t=20=
-*-\".=0A+It=20is=20only=20inserted=20when=20an=20empty=20non-existing=20=
file=20is=20visited.=0A+Possible=20values=20are:=0A+=20=20`lexical'=20=20=
declare=20use=20of=20the=20modern=20lexical=20binding=20dialect.=0A+=20=20=
`nil'=20=20=20=20=20=20do=20not=20automatically=20insert=20any=20=
declaration.=0A+=0A+If=20`auto-insert-mode'=20is=20used=20to=20put=20=
something=20in=20the=20buffer=20instead,=0A+then=20no=20declaration=20is=20=
inserted."=0A+=20=20:type=20'(choice=20(const=20:tag=20"Lexical=20=
binding=20(modern)"=20lexical)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20(const=20:tag=20"No=20automatic=20declaration"=20nil))=0A+=20=
=20:group=20'lisp=0A+=20=20:version=20"30.1")=0A+=0A+(defun=20=
elisp--insert-auto-dialect-declaration=20()=0A+=20=20"Insert=20the=20=
`elisp-auto-dialect-declaration'=20selection=20in=20a=20new=20empty=20=
buffer.=0A+Otherwise,=20do=20nothing."=0A+=20=20(when=20(and=20(eq=20=
elisp-auto-dialect-declaration=20'lexical)=0A+=20=20=20=20=20=20=20=20=20=
=20=20=20=20(not=20buffer-read-only)=0A+=20=20=20=20=20=20=20=20=20=20=20=
=20=20(zerop=20(buffer-size))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=
;;=20Don't=20modify=20a=20buffer=20corresponding=20to=20an=20existing=20=
empty=20file.=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20(not=20(and=20=
buffer-file-name=20(file-exists-p=20buffer-file-name))))=0A+=20=20=20=20=
(let=20((was-modified=20(buffer-modified-p)))=0A+=20=20=20=20=20=20=
(insert=20";;;=20-*-=20lexical-binding:=20t=20-*-\n")=0A+=20=20=20=20=20=20=
(setq-local=20lexical-binding=20t)=0A+=20=20=20=20=20=20;;=20Mark=20the=20=
buffer=20unmodified=20(unless=20it=20was=20modified=20before)=0A+=20=20=20=
=20=20=20;;=20so=20that=20the=20user=20isn't=20bothered=20when=20killing=20=
it=20or=20quitting=20Emacs.=0A+=20=20=20=20=20=20(set-buffer-modified-p=20=
was-modified))))=0A=20=0A=20;;=20Font-locking=20support.=0A=20=0A--=20=0A=
2.32.0=20(Apple=20Git-132)=0A=0A=

--Apple-Mail=_D3432800-D637-4F59-A33C-6BB3EE9E184F--




Acknowledgement sent to Mattias Engdegård <mattias.engdegard@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#66706; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 25 Oct 2023 15:00:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.