GNU bug report logs - #74145
31.0.50; Default lexical-binding to t

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: Stefan Monnier <monnier@HIDDEN>; Keywords: patch; dated Thu, 31 Oct 2024 20:59:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 74145) by debbugs.gnu.org; 20 Feb 2025 20:00:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 15:00:43 2025
Received: from localhost ([127.0.0.1]:41866 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tlCiw-0000GH-2G
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2025 15:00:43 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1583)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tlCit-0008P6-Jg
 for 74145 <at> debbugs.gnu.org; Thu, 20 Feb 2025 15:00:40 -0500
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3FB83805C1;
 Thu, 20 Feb 2025 15:00:33 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1740081632;
 bh=Zrxc1no1pBBfYZ6kMAbV/GyyqU5runG8NIREPaaQJc4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=eu5t4x7ijZG50oJ7XMrUo8YSF9U98cf7WwN2yHFaTJo72nX9L1gR+yMTBFoXu63BJ
 T+0qZeTvzS2ibu/GHGX/Wao2/ZKCDDe8gviqC7ocVdnLvktgt5J+rFHTVgAeoceKgz
 BsB1GnIHYOJD3CbslIEP6Op7rPYGxRUY8pD0rOdX5U77iEmX1GAG1GQPJqmOSXo0b2
 B5xm/CCBlw+Xwyn0dxcT7ubbfiDzaRbPSMYkAcCnzb1bDplAJ3UUCkbIhLoMyzyx87
 21jQDt/suHcxe8GvfdVrgHJp8q9pycu8QtME7ABRx5tmY+a3H9bxodYDyzpsBY14Bb
 u4FChzKOBXu+w==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 91E0880299;
 Thu, 20 Feb 2025 15:00:32 -0500 (EST)
Received: from alfajor (unknown [23.233.149.155])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 72E8E1203CD;
 Thu, 20 Feb 2025 15:00:32 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <86y0y035ya.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 20 Feb
 2025 19:02:21 +0200")
Message-ID: <jwv34g8qte7.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
 <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN> <867c5m6sck.fsf@HIDDEN>
 <jwv8qq2ugaz.fsf-monnier+emacs@HIDDEN> <86bjux6f4a.fsf@HIDDEN>
 <jwvpljd7hkb.fsf-monnier+emacs@HIDDEN> <861pvt5d50.fsf@HIDDEN>
 <jwvcyfcsmgd.fsf-monnier+emacs@HIDDEN> <86y0y035ya.fsf@HIDDEN>
Date: Thu, 20 Feb 2025 15:00:30 -0500
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.045 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: 74145
Cc: 74145 <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 (---)

>> I wrote "I feel like I'm missing something", but I'm starting to think
>> that you're the one who missed the fact that the patch I pushed is not
>> the one you think.
>
> No, I'm not missing anything, except some kind of response to those
> posts.

Then I'm still missing what is the connection with the patch I pushed.


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 20 Feb 2025 17:02:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 12:02:40 2025
Received: from localhost ([127.0.0.1]:39373 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tl9wd-0000Kz-D7
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2025 12:02:39 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:44506)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tl9wa-0000Jm-Cr
 for 74145 <at> debbugs.gnu.org; Thu, 20 Feb 2025 12:02:37 -0500
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 1tl9wT-0006zr-Vo; Thu, 20 Feb 2025 12:02:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=ElE9opLLBs+k6hud81FC+WUyhpU/TUkrZHY8Cm0rAYo=; b=TXARNaf/AVQb
 Sthox6oPnCPiW/xBILbS9JG2TGjbsZP8il/fYh9N4XnzvSmcqwDKkTncobQJCObVDOjOruWvPCvew
 hkAKitu0xlOmrtAXnk1gqkGLqd2hUFotutU/rlk39Q3Hvsu7J7a+jqb+bJhrMHSJxLs6U/OPPEhZm
 Ebqw7So0oe1mgBkstygJJ+999+W7WcmZjPuIIebmtT+4Vf6efXt4KIM8cXrcHGkJ65yacYUePwbot
 8rP3iTupboAOF/6mTYl3gp2Ry4E7SpBQs1xpA/DHTNio52u5rNR/UFqr4h3qn9maO5ng3pBDXWv3I
 zxpO+1K6JPN3cBNrmJwzvg==;
Date: Thu, 20 Feb 2025 19:02:21 +0200
Message-Id: <86y0y035ya.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvcyfcsmgd.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Thu, 20 Feb 2025 09:52:03 -0500)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
 <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN> <867c5m6sck.fsf@HIDDEN>
 <jwv8qq2ugaz.fsf-monnier+emacs@HIDDEN> <86bjux6f4a.fsf@HIDDEN>
 <jwvpljd7hkb.fsf-monnier+emacs@HIDDEN> <861pvt5d50.fsf@HIDDEN>
 <jwvcyfcsmgd.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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: stefankangas@HIDDEN,  74145 <at> debbugs.gnu.org
> Date: Thu, 20 Feb 2025 09:52:03 -0500
> 
> > I said "objections and suggestions".  I meant these:
> >
> >   https://lists.gnu.org/archive/html/emacs-devel/2025-01/msg00531.html
> >   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145#57
> >   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145#60
> 
> These are about changing the default, which is not what the patch
> I pushed does.
> 
> >   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145#36
> 
> The patch I pushed does not include this change.
> 
> The patch I pushed does not close this issue at all.
> It only contains the small subset of my original patch for which I did
> not see any objections!
> 
> I wrote "I feel like I'm missing something", but I'm starting to think
> that you're the one who missed the fact that the patch I pushed is not
> the one you think.

No, I'm not missing anything, except some kind of response to those
posts.




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

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


Received: (at 74145) by debbugs.gnu.org; 20 Feb 2025 14:52:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 09:52:16 2025
Received: from localhost ([127.0.0.1]:35563 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tl7uQ-00052f-FS
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2025 09:52:15 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20283)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tl7uN-00051Z-RC
 for 74145 <at> debbugs.gnu.org; Thu, 20 Feb 2025 09:52:12 -0500
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 7E52880926;
 Thu, 20 Feb 2025 09:52:05 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1740063124;
 bh=d8XW6ezkyZvONU/Xww9y/qGh1HLa+I7Qf4X/H8pdpw4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=Dsr82Yl5s/bExLgQREe6p+6v4UnEPHQYoQnPR5pkfIlECMNXd149p8csyfpdawPsg
 bOCSqvNxaKWsFc5kE/lezUPtHwASSGS+fQ8s+tinklRefRYRyWUM0jTa9yuMSigNm6
 2Vuu2dkkIJytVtSVw1BgfuS+fSg40X+wEH3jsMP8WWoRbNM4pOlpqX8Xz82Sl7FBkE
 FypYEWtuRKWFjF2FHG5heNG4nGPDCATNLWX9aQ7a+5/VaN7JTWj2815wEDxU7LelVv
 WGKH7/K6QkGMPFdjUhafIlAH6cDMV+l8Q0CZByiB+SB76furMjZ1skPBXPjTtaQeEZ
 Jf6DIv88dfHog==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B231680788;
 Thu, 20 Feb 2025 09:52:04 -0500 (EST)
Received: from alfajor (unknown [104.247.242.5])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 841031200D2;
 Thu, 20 Feb 2025 09:52:04 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <861pvt5d50.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 20 Feb
 2025 08:44:11 +0200")
Message-ID: <jwvcyfcsmgd.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
 <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN> <867c5m6sck.fsf@HIDDEN>
 <jwv8qq2ugaz.fsf-monnier+emacs@HIDDEN> <86bjux6f4a.fsf@HIDDEN>
 <jwvpljd7hkb.fsf-monnier+emacs@HIDDEN> <861pvt5d50.fsf@HIDDEN>
Date: Thu, 20 Feb 2025 09:52:03 -0500
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.221 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: 74145
Cc: 74145 <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 (---)

> I said "objections and suggestions".  I meant these:
>
>   https://lists.gnu.org/archive/html/emacs-devel/2025-01/msg00531.html
>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145#57
>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145#60

These are about changing the default, which is not what the patch
I pushed does.

>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145#36

The patch I pushed does not include this change.

The patch I pushed does not close this issue at all.
It only contains the small subset of my original patch for which I did
not see any objections!

I wrote "I feel like I'm missing something", but I'm starting to think
that you're the one who missed the fact that the patch I pushed is not
the one you think.


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 20 Feb 2025 12:03:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 07:03:18 2025
Received: from localhost ([127.0.0.1]:33474 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tl5Gw-0000Lm-1u
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2025 07:03:18 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45928)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rms@HIDDEN>) id 1tl5Gs-0000Ku-GK
 for 74145 <at> debbugs.gnu.org; Thu, 20 Feb 2025 07:03:15 -0500
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 <rms@HIDDEN>)
 id 1tl5Gn-0004G0-5m; Thu, 20 Feb 2025 07:03:09 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=l0zf0g1rK+H/RQk38bYxau7wxvgIEYBiMZIYaAcz/Uk=; b=CaTdhSZH8al1
 3aNvqcDDjQmt/li1APSyoOq1O5atXrXikKo2kg9A/b3RGc0DEzpERhGVJKRR35xJieARKnPYc+WPx
 KPn8oAP4s1+gYszjc1BHsQ/URg+C9xoM5eyJdEu8Hujogmn8lZXwaxDdWyYLB3qcRMCMf4376Fuar
 CFDn9t21YSr2JKw5Sec2NGWatSyH4YCV/pLibBx1QJdWEOkbMDc5wwg0/eTL+ciAeUFKY6CH+Q865
 8JZqawB3sdgN4cryrMjBq8gUYy3ISJ3Zr6XEdRx5xP7j/7KGYlVJZVOv0uNP/6WxzRjq2mSeweNwY
 TBrVWzynKbx2v37rgrFwdA==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1tl5Gl-0007KJ-Jw; Thu, 20 Feb 2025 07:03:08 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwveczx5nki.fsf-monnier+emacs@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <E1tjoPW-0004ii-Uo@HIDDEN> <jwveczx5nki.fsf-monnier+emacs@HIDDEN>
Message-Id: <E1tl5Gl-0007KJ-Jw@HIDDEN>
Date: Thu, 20 Feb 2025 07:03:07 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > The difference between the two, for users, is whether they need

  >     (set-default-toplevel-value 'lexical-binding t)

  > to get the new setup or

  >     (set-default-toplevel-value 'lexical-binding nil)

  > to continue with the old setup.

That is the crucial point at which the change becomes incompatible and
causes old files to break.

I suggest we make this process smoother by giving users a warning on
loading a file that fails to specify `lexical-binding' locally.

If `warn-unset-lexical-bindng' is t (which would be the default),
those warnings would be issued.  If it is nil, there would be no
warning.

Meanwhile, the default value of `lexical-binding' would control the
behavior of variable binding when the file does not specify that,
just as now.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






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

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


Received: (at 74145) by debbugs.gnu.org; 20 Feb 2025 12:03:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 07:02:59 2025
Received: from localhost ([127.0.0.1]:33465 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tl5Gd-0000JF-IN
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2025 07:02:59 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:50324)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rms@HIDDEN>) id 1tl5Gb-0000Ik-Rd
 for 74145 <at> debbugs.gnu.org; Thu, 20 Feb 2025 07:02:58 -0500
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 <rms@HIDDEN>)
 id 1tl5GW-0004EO-7q; Thu, 20 Feb 2025 07:02:52 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=FvYHx8dX+pG9i35n9GJy4TXMqoh7D4xSJRJLLoV9BYI=; b=JSpLLGFa2sKI
 dGiwPqD9PArAoexi5P5PQymTIqGLoz1wZjSk/rYFZ892YJtCPsmOSDbgXsdCPalpI038JZCQvNVN+
 6QkZKG757mmnZLiURrhPhKggSMYcoFY2juLSznKzb+2sCvHerV+g1VFwcIbvV9Q+CJicbkJ9rVsQm
 rdX71OYhYuerQVyuRIhPjHsMPoGgsta6xY32VTafCoKRaD+M2rnFWNrerV7vZJpL9DB7eOOE1+B//
 oueH9un1OFs9WjhTHASxh2B41zys6o7pI3QQsBCHJMu+GBHoQ+yM9RbcZxzRSUBd4K1Lcday11e9s
 3NvCnm6ZPHYknoUycR+IxQ==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1tl5GU-0005Y6-3b; Thu, 20 Feb 2025 07:02:51 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: dancol <dancol@HIDDEN>
In-Reply-To: <e353a1b0d6589f37a0135d636c5a5134@HIDDEN> (message from
 dancol on Mon, 17 Feb 2025 04:15:51 -0500)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <E1tjoPW-0004ii-Uo@HIDDEN>
 <e353a1b0d6589f37a0135d636c5a5134@HIDDEN>
Message-Id: <E1tl5GU-0005Y6-3b@HIDDEN>
Date: Thu, 20 Feb 2025 07:02:50 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > One always looks forward to reaching the end of a series of changes
  > > planned to reach an intended destination.  But if we want to do a good
  > > job for the users, we must not rush them.

  > It's been many years now. Everyone has had enough time to adapt to 
  > lexical-binding.

A smooth and painless transition calls for giving users time, but we
need to give them something else too.  It also calls for intermediate
steps that will remind users to update, to remind them to update old code
_before_ it breaks.

For instance, we could set up a warning (which the user can
deactiviate if perse wishes) for files that don't explicitly specify a
value for lexical-binding.  That warning will help fix their files to
be proof against future change in how that works.




-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






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

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


Received: (at 74145) by debbugs.gnu.org; 20 Feb 2025 06:44:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 01:44:25 2025
Received: from localhost ([127.0.0.1]:58571 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tl0IK-00088Y-HQ
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2025 01:44:25 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:47412)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tl0II-00087s-Ni
 for 74145 <at> debbugs.gnu.org; Thu, 20 Feb 2025 01:44:23 -0500
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 1tl0IC-0007ZK-QP; Thu, 20 Feb 2025 01:44:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=lgKMDqO50TwD+7Zq68uYlFXAYt7+O9gED86wO7hMDfM=; b=HXurdLaqQXAD
 30euURq+KQpRMVlJ4op0OOpjqMTw1twK+rHpjIAsfeaiFdNyfDgUwkrrUCoKROpsAJ4ECqF9m56wk
 sb6of2RBYCsG5YndZqR2n1RD59Hk8dMpSrTk9XZCo2JXGQdAv+XrV58eUi//y74qVW1nVva8D1IWg
 CTcnOamM4+vs99SfCQKIRo35qBpInCaNukmivTw/b16LbG0NULfYmAF+aKrnzkylj52UpLm+cv2kF
 sDVaaPM29DSZwIFNFDmKS7kVlvPv5AXqekji3+kQYFxpo8LKqfsxu9p3ohVN2qcwz+ie/YwD4wVGn
 JsJbA3d+pzwap6BKI9U4Iw==;
Date: Thu, 20 Feb 2025 08:44:11 +0200
Message-Id: <861pvt5d50.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvpljd7hkb.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Wed, 19 Feb 2025 16:30:36 -0500)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
 <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN> <867c5m6sck.fsf@HIDDEN>
 <jwv8qq2ugaz.fsf-monnier+emacs@HIDDEN> <86bjux6f4a.fsf@HIDDEN>
 <jwvpljd7hkb.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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: stefankangas@HIDDEN,  74145 <at> debbugs.gnu.org
> Date: Wed, 19 Feb 2025 16:30:36 -0500
> 
> >> >> Pushed to `master`.
> >> > Boom!  Just like that.
> >> Well, yes.  It's harmless.
> > Maybe so, but I think we should have explained why we disregarded
> > objections and suggestions for slower movement forward.
> 
> Which objections are you referring to?

I said "objections and suggestions".  I meant these:

  https://lists.gnu.org/archive/html/emacs-devel/2025-01/msg00531.html

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145#36
  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145#57
  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145#60

It's okay to note those and decide to go ahead anyway, but I think we
should at least offer the courtesy of explaining why we did so.  The
people who wrote those messages are active participants in Emacs
development, so IMNSHO they deserve to have such an explanation.




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

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


Received: (at 74145) by debbugs.gnu.org; 19 Feb 2025 21:30:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 19 16:30:48 2025
Received: from localhost ([127.0.0.1]:53347 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkrea-00077G-CA
	for submit <at> debbugs.gnu.org; Wed, 19 Feb 2025 16:30:48 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:52032)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tkreV-000765-FF
 for 74145 <at> debbugs.gnu.org; Wed, 19 Feb 2025 16:30:47 -0500
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BE38880966;
 Wed, 19 Feb 2025 16:30:37 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1740000637;
 bh=WbhSLG7JgQZjxELAG6Jpp5bfwVOYX59CeVhtU1QVhgo=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=H8ook6zn9Eype2MmHLzvaQjzXhrSFRPv6QcoR4SbV9pT8pH63Trz7qhnn100dIlu9
 ZMQRveN8ZulICNUTrsDk1pnH3czS8hvSW3MFdSGQUaKgdoza4QTsEfvE+RlcaXrAZO
 FWZ/CJ6abNbKm/Nnb9Ja2Z4gkKWSL/zHntKUjkBgi9elWXuyrsTk3DMEUOvK1WAMri
 Dc7e7WUJrtJ9CVyfHXFt5sI+P5fIXtECO2Sbp31mTgb18UisIPqYPynwBst2g6bmlg
 FOQdPKQs7TsypjMvj+kfgdYUSQZPCQ5rFLQweG0LZUQjsRFIQ4R6lTnVPh18ffw5TC
 0PA78Dyqgqerw==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 04D97805C1;
 Wed, 19 Feb 2025 16:30:37 -0500 (EST)
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E8DBC12023D;
 Wed, 19 Feb 2025 16:30:36 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <86bjux6f4a.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 19 Feb
 2025 19:03:49 +0200")
Message-ID: <jwvpljd7hkb.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
 <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN> <867c5m6sck.fsf@HIDDEN>
 <jwv8qq2ugaz.fsf-monnier+emacs@HIDDEN> <86bjux6f4a.fsf@HIDDEN>
Date: Wed, 19 Feb 2025 16:30:36 -0500
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.207 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: 74145
Cc: 74145 <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 (---)

>> >> Pushed to `master`.
>> > Boom!  Just like that.
>> Well, yes.  It's harmless.
> Maybe so, but I think we should have explained why we disregarded
> objections and suggestions for slower movement forward.

Which objections are you referring to?
I feel like I'm missing something.
The patch I pushed does not change any of Emacs's behavior, like
changing the default to t (which is what the objections I've seen object
to).  The only "objection" I've seen was Christopher's sarcasm
about our inability to make consequential decisions.


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 19 Feb 2025 17:04:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 19 12:04:03 2025
Received: from localhost ([127.0.0.1]:50358 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tknUR-0003lS-8T
	for submit <at> debbugs.gnu.org; Wed, 19 Feb 2025 12:04:03 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:44328)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tknUO-0003kQ-LR
 for 74145 <at> debbugs.gnu.org; Wed, 19 Feb 2025 12:04:01 -0500
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 1tknUI-00059g-8k; Wed, 19 Feb 2025 12:03:54 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=d9p4H1cFu/di7pe/4jG6NAnaBWiPju3evbJBkXT/xR8=; b=sd9YKFzAWKVA
 eNO58j/RBQ9JWqgTBtJ78Mb5h/qKS651cyOxCUdWrPYZ4XO8nAZL7Iei3apmrG3OXmxgj1VmSWiTj
 zXEj/rqlGWndbe/Tw+Wmrn+xY6Xi+47Kc4JR3zcESLi8WZcbRsuh7Lj/I+i29vj3KI6PD37I3zs98
 /Zjm6WtytwHATQbm+zaNe6ViXwqAdmikk+XMkq+J3UkDSpzsyP4unmtaeFYTOxJzwL3KFBayRcPHf
 fIu6FFuUac7V7dQ+GjTYlZDfLSTkE2rvOsIlZOUxMTErVPw3V98IwQ63s3plVmC5bXq9JXP4tbSW/
 7oB5qNsoNLUm9EZ8dOCvBA==;
Date: Wed, 19 Feb 2025 19:03:49 +0200
Message-Id: <86bjux6f4a.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwv8qq2ugaz.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Wed, 19 Feb 2025 10:04:41 -0500)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
 <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN> <867c5m6sck.fsf@HIDDEN>
 <jwv8qq2ugaz.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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: stefankangas@HIDDEN,  74145 <at> debbugs.gnu.org
> Date: Wed, 19 Feb 2025 10:04:41 -0500
> 
> >> Pushed to `master`.
> > Boom!  Just like that.
> 
> Well, yes.  It's harmless.

Maybe so, but I think we should have explained why we disregarded
objections and suggestions for slower movement forward.




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

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


Received: (at 74145) by debbugs.gnu.org; 19 Feb 2025 15:04:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 19 10:04:51 2025
Received: from localhost ([127.0.0.1]:48833 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkld5-0006VQ-43
	for submit <at> debbugs.gnu.org; Wed, 19 Feb 2025 10:04:51 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:28883)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tkld2-0006UO-9W
 for 74145 <at> debbugs.gnu.org; Wed, 19 Feb 2025 10:04:49 -0500
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BA26C80966;
 Wed, 19 Feb 2025 10:04:42 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1739977481;
 bh=b/AX8MaEqDK35d6TSbDdW15X8Ouh+uCczOUOaXUCU+U=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=bWBYlbL/Ryle5/QcKx2W6Et7Na3Moz5q2eu0VUYwfa3WHLenCDGtxbGgfqdjZQcZY
 uF1a9uIGpy6ERcVBHfoXo9vp9X77GCNVi+qcxKhnjqOfmhFiEUPfb4UXwKx00Vml7N
 RhGVNg0UXeqwoCpIK5F7iNfz3XQ58PfvOzAMyu2hyiiqwDxvThszOFjVwZosWaPFOk
 6mOd5YBNRrOYMQ/NJoRz+Nv1LaGUkr8uhCbyue13P8F69noi5744+Lk14ykFaobTjw
 31N9RDKwdS637b62DleS2HqOH5fLgoSV1sITzLBZ9HtcizpAZB48BeKodM5hB1ltrc
 L6gLA05x53lVg==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D5AFE8090D;
 Wed, 19 Feb 2025 10:04:41 -0500 (EST)
Received: from alfajor (unknown [104.247.242.5])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9F394120698;
 Wed, 19 Feb 2025 10:04:41 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <867c5m6sck.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 19 Feb
 2025 14:18:03 +0200")
Message-ID: <jwv8qq2ugaz.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
 <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN> <867c5m6sck.fsf@HIDDEN>
Date: Wed, 19 Feb 2025 10:04:41 -0500
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.246 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: 74145
Cc: 74145 <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 (---)

>> Pushed to `master`.
> Boom!  Just like that.

Well, yes.  It's harmless.


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 19 Feb 2025 12:18:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 19 07:18:15 2025
Received: from localhost ([127.0.0.1]:44235 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkj1q-0000JH-R9
	for submit <at> debbugs.gnu.org; Wed, 19 Feb 2025 07:18:15 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:44844)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tkj1p-0000Ih-Dh
 for 74145 <at> debbugs.gnu.org; Wed, 19 Feb 2025 07:18:14 -0500
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 1tkj1j-00074l-8K; Wed, 19 Feb 2025 07:18:07 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=vJocbirAzGw+epD/5l3pRvx2oUo9a9hxzym+UOhWJY4=; b=LSxz+4Ys2Ywk
 KYAncdIc0vt6eKquiws21ZvoIj8CRAXBJzGSyZFQ+S5fhp3TzZj42iKz0QGpMHUFONNTYmPQytH/z
 KmJFB2zAG1n9mzdYEVzApWQD41xlHYkpq1iqL5tteTMIZwljskZqteSxyzw0eRpI14/Edi/poVDmW
 KuRWxSFf9ejy8ckAg1f45ZXZFeLwZzgnUba9PtSi+ZETMDzs7VJEV9tBS1ulNDfTNjI0KKaJkyYfM
 UcwW8ZkpVihZWFwBJC5cjJLK43/WmZgw3ys6J5bte/dLuWRWOckSZPGpxkmYLqr4nXtTJ2SAmbuog
 dXFRPeqQnEG6H8SGvZgUtA==;
Date: Wed, 19 Feb 2025 14:18:03 +0200
Message-Id: <867c5m6sck.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
 <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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 (---)

> Cc: 74145 <at> debbugs.gnu.org
> Date: Tue, 18 Feb 2025 16:27:43 -0500
> From:  Stefan Monnier via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> > Makes sense to me.
> 
> Pushed to `master`.

Boom!  Just like that.




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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 21:27:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 16:27:55 2025
Received: from localhost ([127.0.0.1]:34770 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkV8E-000285-Tg
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 16:27:55 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:8900)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tkV8C-00027I-7I
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 16:27:53 -0500
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DA11C80860;
 Tue, 18 Feb 2025 16:27:44 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1739914063;
 bh=X1SVubndmt7XwDKes3pzUUaFd+Cg6U8TuFckz59lwN0=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=D5bFHk2p7wSFMFi5Yrmzmhrb4x83cZc1HIunwl6cE2UDX3jg8GR+sPrMG5HjHHQtD
 K0ClDRoxqX4f0fh2lIkIRu0rGN71DmeTjwYE6RyNnWvCsyfd0PUj++1wLlfX6ROr1O
 r8dmhzBjPEU7KlhFQG4qOQjke0YbIT8LODwk2QIsGwt3Ix8lEEBRI8+luczahycD7B
 PBbBU1VQWeZ9bi5EP98K9aKVYANVtjctJKG9zYlmluiXAgMRf9fRS61SfK5rFrLy3n
 q2wohQk8Bq32AW0a6I3YG5w1MV4tMEBi90mHLdt2NWYkhyUZuF/6OqwJOikH3OdWjM
 vm9/a5uSEiytw==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D6EF18079A;
 Tue, 18 Feb 2025 16:27:43 -0500 (EST)
Received: from alfajor (modemcable005.21-80-70.mc.videotron.ca [70.80.21.5])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BA771120331;
 Tue, 18 Feb 2025 16:27:43 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
 (Stefan Kangas's message of "Sat, 15 Feb 2025 03:28:10 +0000")
Message-ID: <jwvzfijvt8a.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
Date: Tue, 18 Feb 2025 16:27:43 -0500
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.029 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: 74145
Cc: 74145 <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 (---)

> Makes sense to me.

Pushed to `master`.


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 20:47:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 15:47:24 2025
Received: from localhost ([127.0.0.1]:34320 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkUV1-0006Rk-MC
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 15:47:24 -0500
Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:49339)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tkUUy-0006RA-UR
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 15:47:21 -0500
Received: by mail-ed1-x530.google.com with SMTP id
 4fb4d7f45d1cf-5deb1266031so10544704a12.2
 for <74145 <at> debbugs.gnu.org>; Tue, 18 Feb 2025 12:47:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739911634; x=1740516434; 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=ktbAGbzYuIlt2vmm3WLwide/GtpeJW/flSK7mZ3ksJ4=;
 b=jnLWlcBDqT072wF0SQSCzr1QI2yxKyTIcRrnE0lHwMBgdJZErFXM9ofwpxjlhLEBaK
 ra0jiXR0HijadRXUU+ol9V01KziS9Gt8Ab/KJAlme3Nh/HMnilJh7OJ3/OMHpYqE7R9f
 oNB1FnhRv3y7nUEeuk2rQZXoUsJEUOubNuyaYk//SigHf3RuLuiA6krH0ZIei8gHwXeQ
 YYN/OQ8DIOHASKQPJcFpGP8IrsIsR0OT1kp3vf7nf+RJZFefXjNMU4077ZfdizWvi8WN
 CSce5Fs1qoQzruvVxPdWkXKSVbD1PVqh7+7VT7vlOYP7Ka2++NPJToVFX3EEyaU38yB8
 0xCQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739911634; x=1740516434;
 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=ktbAGbzYuIlt2vmm3WLwide/GtpeJW/flSK7mZ3ksJ4=;
 b=mohqDRs34IlyI0eCWqzOzMrRVg7qLUG/xuO3lBEMmbH92uhVVSNuY2tv+3Zvx6+i/q
 Kbwnz7InTiEZsTWa4lz4BrLKY5n8QcWtrvLIJJ1c4TWMMl2JpiWHrvHctvJYdQJioj5y
 LcNLx0+aUCZOwkk9TtU4ZVMpFUwi5qTMLrzB8AFcpruEb0ZRVK3dszEYowdLBgZZuZSr
 WdLw4G71+/RiIk09VSx/tgKT3TbGv+oFLmsT7i3nI/2Fp55LGwwJzGwgHwXta1VEWnCJ
 a1b0YDDh/TaWl4PGWiC6aH5zHMnWaaespaNoFoEinYsjDZjchABYgwVsYe0sGlFGUmnT
 2PQA==
X-Forwarded-Encrypted: i=1;
 AJvYcCXgQ+m0eU4DFJbSXigDlvxwDOngSq+13Pjz0gGd8nEyRJL5SnJMzck2feJEcTmKujSL1wObnA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw6LpmjMXUtra9kqhnAHS8EU2maB2PewCm8TIXXQagNJTBasuqk
 r0Dk1l0AHPiaBD7l0Bvm93JnYClvo6WTRhNiRs5TZLLpewq9OkwzWgLmi9j+mDW+qI95cy5J5cS
 mI2u4zc6adoDpxO1okJy/oHKAJfk=
X-Gm-Gg: ASbGnctZgT6lbgmbL86poJbwcUnELUUBBqJIOyTA8elF6BXM28pEATyk0Z334kbItuR
 9FiCGAPQh1qq8ElDMylEgUZwo2wNEY6JEu9BiZc7Ba46pwg0tMLxYUA9usBRenveOMqvh/LFk
X-Google-Smtp-Source: AGHT+IES67vMsORbQx/FVdj5Ab4dEs9R9XJ2ruJbMmb6T+AdvWw1wZpdj6bpk3RxrKAm4GXjaoskXf6C0J8x9n5+oak=
X-Received: by 2002:a05:6402:1d52:b0:5de:dfd0:9d22 with SMTP id
 4fb4d7f45d1cf-5e0361c1213mr14842221a12.22.1739911634374; Tue, 18 Feb 2025
 12:47:14 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Tue, 18 Feb 2025 20:47:13 +0000
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <86seob6loy.fsf@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN>
 <CADwFkm=Ut3zHy+u7vydJKdLG6cHY1N-XsQQeJqbDokUoat0UWA@HIDDEN>
 <86seob6loy.fsf@HIDDEN>
MIME-Version: 1.0
Date: Tue, 18 Feb 2025 20:47:13 +0000
X-Gm-Features: AWEUYZkx9sJ_0bpaLqtRh39UhgHf1pDskRueO-6fAr4MBo-1X3nQ2F9x22iXpRQ
Message-ID: <CADwFkm=hp9HADnjR1VFVMi8YtVOq+Fd9DTHsZdXgWW+Gk_b25w@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74145
Cc: psainty@HIDDEN, dancol@HIDDEN, 74145 <at> debbugs.gnu.org,
 visuweshm@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:

>> Cc: dancol@HIDDEN, 74145 <at> debbugs.gnu.org
>> From: Stefan Kangas <stefankangas@HIDDEN>
>> Date: Tue, 18 Feb 2025 13:59:13 -0500
>>
>> This change is unlikely to be very disruptive at this point.  For
>> starters, users can easily just add this to any ELisp file that lacks it
>> and move on with their lives:
>>
>>     -*- lexical-binding:nil -*-
>
> I thought we planned on displaying a warning for that?

We have discussed different warnings, so I'm not sure which exact
proposals are currently on the table.  But I think we currently warn
only if the lexical-binding cookie is missing.

As Stefan Monnier has pointed out, one could also use this to change the
global value:

    (set-default-toplevel-value 'lexical-binding nil)




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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 20:30:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 15:30:05 2025
Received: from localhost ([127.0.0.1]:34135 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkUEG-0004d8-6S
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 15:30:04 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51164)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tkUEC-0004bY-UT
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 15:30:02 -0500
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 1tkUE6-0004ch-8z; Tue, 18 Feb 2025 15:29:54 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=ttfmVF7t0nBjjVeYl+K1dqxZE76AQtkPOAbxABDsOvw=; b=d9KrhUVi7MRr
 vNeVaFbZYjsXoj5y1k1pgsfS6oVj7V/c4Ax7JJdqBce9MTkuYxlxkR67VHz2avB8XCuaq+wHgep6X
 2mxY1teG3FC6zW7zY2oitA1swPZZDAB8iNAvbcPp8QhTH/Xa0yqKiP8NPNW9ez0QfH/QRMYrOEC0J
 /KiZS4QobpcLX5a3uBLfXgGPFWaWa7QVHyqHIUdoKLOjwSxcU9Wtg2rypG1aQ8JzX5w5qHQpJ3ptC
 nDfMZnnCti6BIkZkKmjzPPbZx1OYfNCc13vnkZFzT2kJ9fLOvPXf7kezioMUBpXzOjJX6uHfaOAT2
 +UzZrQlF4zy+HpL96XPB+A==;
Date: Tue, 18 Feb 2025 22:29:33 +0200
Message-Id: <86seob6loy.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <CADwFkm=Ut3zHy+u7vydJKdLG6cHY1N-XsQQeJqbDokUoat0UWA@HIDDEN>
 (message from Stefan Kangas on Tue, 18 Feb 2025 13:59:13 -0500)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN>
 <CADwFkm=Ut3zHy+u7vydJKdLG6cHY1N-XsQQeJqbDokUoat0UWA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: psainty@HIDDEN, dancol@HIDDEN, 74145 <at> debbugs.gnu.org,
 visuweshm@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 (---)

> Cc: dancol@HIDDEN, 74145 <at> debbugs.gnu.org
> From: Stefan Kangas <stefankangas@HIDDEN>
> Date: Tue, 18 Feb 2025 13:59:13 -0500
> 
> This change is unlikely to be very disruptive at this point.  For
> starters, users can easily just add this to any ELisp file that lacks it
> and move on with their lives:
> 
>     -*- lexical-binding:nil -*-

I thought we planned on displaying a warning for that?

> What's more, and this is from my personal experience of converting
> hundreds of .el files (see git log), most files will usually run just
> fine under lexbind, without any changes.  I expect that user init files
> will typically fall into this category.

I actually expect the contrary, because user init files are in many
cases not regularly maintained and cleaned up like our Lisp sources
are.  I won't be surprised if there are portions of our init files
which we haven't looked at for decades, because they "just work".





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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 20:23:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 15:23:36 2025
Received: from localhost ([127.0.0.1]:34065 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkU80-0003wk-2v
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 15:23:36 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43669)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tkU7v-0003vm-UP
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 15:23:33 -0500
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 317CE10004C;
 Tue, 18 Feb 2025 15:23:26 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1739910205;
 bh=N4Z6P32IPLDcclmsdauWDJjxADjtCuwvlFKGEjHhl/U=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=BU1UQU6oRrQ5Cbwk5Okgfb0PwSjaNH4Mqva9fbW9nNYjLLJZz2unIPUDZ32834rjb
 zidm2HxA6h6ArR2sQj35duULOiuVGk7tDLTm8iIC4O2pmDTWXYy7HMUyBKX7TqjrNG
 HJo7R5cFZARc87fDk5Vn24u8ZaJZmJ/yIWRKti6gYVF8W8lW/wyKnq5kHUwUjudStq
 85d+/lOtiohTzY+LSHQVQYH/Lj6pygFrHYLC+nwcHm+gfyZr64uYL3xFNPX/nDgF4a
 2LE2AcLhoKmDv33hY/zcbYH7aXxxMoc2tM6/VDVYpN68qFKNSLjEvxerHN6e/P8nJf
 xLZoykvQ8068A==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6D9B9100034;
 Tue, 18 Feb 2025 15:23:25 -0500 (EST)
Received: from alfajor (modemcable005.21-80-70.mc.videotron.ca [70.80.21.5])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 44B1D1203D5;
 Tue, 18 Feb 2025 15:23:25 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <86zfij6msc.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 18 Feb
 2025 22:05:55 +0200")
Message-ID: <jwvikp7xbax.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN> <86tt8r8eh1.fsf@HIDDEN>
 <jwvzfijyz2h.fsf-monnier+emacs@HIDDEN> <86bjuz88ox.fsf@HIDDEN>
 <jwvmsejyw6r.fsf-monnier+emacs@HIDDEN> <86zfij6msc.fsf@HIDDEN>
Date: Tue, 18 Feb 2025 15:23:24 -0500
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.002 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: 74145
Cc: psainty@HIDDEN, dancol@HIDDEN, 74145 <at> debbugs.gnu.org,
 visuweshm@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 (---)

> They definitely might not understand the differences between the two
> flavors well enough to know what to expect.  For example, warnings
> from the byte compiler about "unused lexical variable" might be
> extremely puzzling if those differences are not well understood,
> because to someone who is used to dynamic binding, the code looks
> 100% legit.

That's what the doc tries to explain:

      A warning about an unused variable may be a good hint that the
    variable was intended to be dynamically scoped (because it is
    actually used, but in another function), but it may also be an
    indication that the variable is simply really not used and could
    simply be removed.  So you need to find out which case it is, and
    based on that, either add a @code{defvar} or remove the variable
    altogether.  If removal is not possible or not desirable (typically
    because it is a formal argument and that we cannot or don't want to
    change all the callers), you can also add a leading underscore to
    the variable's name to indicate to the compiler that this is
    a variable known not to be used.)


- Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 20:06:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 15:06:15 2025
Received: from localhost ([127.0.0.1]:33856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkTrC-0002Dr-FB
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 15:06:14 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:59774)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tkTr2-0002D2-2V
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 15:06:12 -0500
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 1tkTqv-00025E-LQ; Tue, 18 Feb 2025 15:05:57 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=CMjW7uyxSRsl64G+Hw3arzkvoRMGUNRh2u63uGah5sE=; b=a4jh78d8nnSG
 fyIAQ3ELFuMZ09ou+CCEfoneStcIfzMDCQQGPc44yGmLtAdr7qwDW6JCffLtJApyMpdxtqefQ6bow
 POYPtDbC8mQ/n6qj1VJny6qxE77gpXVFRAX3Aphh1k0MeMWvz3vCZBJv8wfow4Qj+znFYfQCDDM38
 Ii0VjBrsyGg+BQCDeJ1cnItQuDhNCLg9LUX72GOUtDDJ3uVQMEiMbHl5CW1NeteucXjZEiilz3pzi
 nvNGaaRrgNbY07arBp61ZQyj0fxMstBl+yABmRdlMbPqQ3ieOEx2vLUzsyz6mGVSiYQeMkpWtw16N
 9cLqn9nlvgGPNJ/634b1oA==;
Date: Tue, 18 Feb 2025 22:05:55 +0200
Message-Id: <86zfij6msc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvmsejyw6r.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Tue, 18 Feb 2025 13:00:59 -0500)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN> <86tt8r8eh1.fsf@HIDDEN>
 <jwvzfijyz2h.fsf-monnier+emacs@HIDDEN> <86bjuz88ox.fsf@HIDDEN>
 <jwvmsejyw6r.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: psainty@HIDDEN, dancol@HIDDEN, 74145 <at> debbugs.gnu.org,
 visuweshm@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: visuweshm@HIDDEN,  psainty@HIDDEN,  dancol@HIDDEN,
>   74145 <at> debbugs.gnu.org
> Date: Tue, 18 Feb 2025 13:00:59 -0500
> 
> > Yes, but the problem is not that there's no such place, the problem is
> > with what it says.  Basically, it says "use it and fix any problems
> > you find".
> 
> But at least it gives you the steps to take and presumably you (the
> author of the code who presumably knows what's going on in that code)
> should know how to fix the problems.
> 
> Are you worried about those cases where the users don't actually know
> what the code should do (although they may have written it themselves)?

They definitely might not understand the differences between the two
flavors well enough to know what to expect.  For example, warnings
from the byte compiler about "unused lexical variable" might be
extremely puzzling if those differences are not well understood,
because to someone who is used to dynamic binding, the code looks 100%
legit.





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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 18:59:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 13:59:25 2025
Received: from localhost ([127.0.0.1]:33177 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkSoW-0000aM-Q2
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 13:59:25 -0500
Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:50684)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tkSoS-0000ZL-3D
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 13:59:22 -0500
Received: by mail-ej1-x62f.google.com with SMTP id
 a640c23a62f3a-aaec61d0f65so1201568366b.1
 for <74145 <at> debbugs.gnu.org>; Tue, 18 Feb 2025 10:59:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739905154; x=1740509954; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=huoARZtf6KJ/PVruplf+vXz46HtxmekFW3WHbsiXE6k=;
 b=dyEbZ4URElmIZsUnwyWXknRWU1xMNNcrcE0+qI8JcwHdEKwDCz/Dm19AnolURfm/YH
 WQYetb/8OZ/5ZOANNkC854OrHk3hLbUaxBpa1VZhvxN+VWOAtNRi64E9yRwzyGZx+bmo
 PSYSL1ltCziqHbiqfOBvmAa6ru0OnTHfJ9rFtn7pTA2VXwVu0O0izwxpC8qe1xXjIcY9
 aMyxy/PloetbRcbXY/NN0+jha5s8Yqzo8zzKIXPVPqwAhPFF74750Z+ILPewTwj2ha7X
 icdxppwtH8Gxjmg30pvxzqQwXaWFmHoM3w5rDBlHO+CX8P3wEM4q0Bt1yqQ6CV8R2TBl
 Agwg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739905154; x=1740509954;
 h=content-transfer-encoding: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=huoARZtf6KJ/PVruplf+vXz46HtxmekFW3WHbsiXE6k=;
 b=YAOF9T9dCOcFLoKNVAYVs5i6eRemsaiAvltvpyFuAYRMcJ4BcvGGnzZ/K3AdnYQiZC
 YZZzpCRcen+Kq9ViG6bkCtFgdzxoqCoTEIt88MFH5DSOPY5FMOb31rxMnMOG4tNcQJ74
 Au7uwhF/M6fyTKK3EDdKoYKqauJqFVljmOsUgcYKidDq9RbeerDHNi9ARrtVjwA79mNM
 10ZLwj3RH1IWlbH8EtkxbgjX/xAWxfDRXSecdgHldgsYdqzp+BiEUPh8o8TNuQtydhKV
 eWGycPcatU9c+GWTb/UQ561RrN7tncb0DahgVWNrNOEhq7nw22/kfEELREWgPBj1lRk2
 ir8A==
X-Forwarded-Encrypted: i=1;
 AJvYcCWAqnrgFUKUXuGB0LTtQa1JxBQPN5+A3GY8MM7WmPgCHSGWl2AYzlEEmIJPEHkAmLSwPwHVpg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw+jqu76xucGmzf79Is2UuRa4tRs1jhmJK27Z58Abb4cbq5rb/1
 iKqhgSptB9dmZSq8SICjFnwgbp7S7Hq182Q+8VJqklo30Cvv5ciuG2ZZbqqXjqLaXUkPHQO4jtN
 xvqo7ILawSzFcMLQIEcwH52LEhfM=
X-Gm-Gg: ASbGncuWF3zn5FjP3JrlsxvkJqfiJUI20YnF4Ujum2k+LcMXYn+aMpctD1pKCsBqUmn
 FtGR9UZREk89qRIoSAeYguUPbmk60eCxGQBzqAuLT+yspqPvZykp2xVt4zb3JalUtB0UgQJxFtp
 w=
X-Google-Smtp-Source: AGHT+IGnvOjOLdrX/abdDX7SYLx1RaMp4WGXrdMhOFJxciuR02Rwl3USX0Iv0I5XukSUmKcOXlcmFKDpNq8hJ9dPLcU=
X-Received: by 2002:a17:907:360a:b0:ab7:e8d6:3b21 with SMTP id
 a640c23a62f3a-abb70da4172mr1455026866b.28.1739905153723; Tue, 18 Feb 2025
 10:59:13 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Tue, 18 Feb 2025 13:59:13 -0500
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87y0y3tqke.fsf@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN>
MIME-Version: 1.0
Date: Tue, 18 Feb 2025 13:59:13 -0500
X-Gm-Features: AWEUYZmb5IxXNJDS9xyp-GIsI8vtuq1uumDLxKKNi0CXB3A7BowaIDBPrJYL41M
Message-ID: <CADwFkm=Ut3zHy+u7vydJKdLG6cHY1N-XsQQeJqbDokUoat0UWA@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
To: Visuwesh <visuweshm@HIDDEN>, Phil Sainty <psainty@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74145
Cc: dancol@HIDDEN, 74145 <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 (-)

Visuwesh <visuweshm@HIDDEN> writes:

> [=E0=AE=AA=E0=AF=81=E0=AE=A4=E0=AE=A9=E0=AF=8D =E0=AE=AA=E0=AE=BF=E0=AE=
=AA=E0=AF=8D=E0=AE=B0=E0=AE=B5=E0=AE=B0=E0=AE=BF 19, 2025] Phil Sainty wrot=
e:
>
>> dancol wrote:
>>> It's been many years now. Everyone has had enough time to adapt to
>>> lexical-binding.
>>
>> I'm sure a majority of elisp programmers are aware of lexical-binding
>> by this point, and (in a great many cases) have adapted to it; but,
>> with the exception of those who are following current developments,
>> nobody has had ANY time to adapt to the idea that lexical-binding is
>> the DEFAULT.  Users having time to adapt to THAT begins with the first
>> release that warns that it's going to happen, and we haven't had one
>> of those yet.
>>
>> Even the users who understand Emacs Lisp should have advance warning
>> of such a change so that they can make the necessary changes in
>> advance of that change coming into effect.
>>
>> Emacs is not only used by elisp programmers, though.  Many users don't
>> understand elisp; will not understand dynamic-vs-lexical binding; and
>> will not know why the libraries they have been using for many years
>> suddenly don't work properly.
>>
>> Those users should be informed that they need to change something
>> before it has a chance to break things, so this should be sign-posted
>> for a long time in advance of the actual change, so that users really
>> do have time to adapt.
>
> +1.  It is also a bit time consuming to change code to follow lexical
> binding and AFAIU from reading the list, there is no straightforward way
> to do so.

This change is unlikely to be very disruptive at this point.  For
starters, users can easily just add this to any ELisp file that lacks it
and move on with their lives:

    -*- lexical-binding:nil -*-

This is a trivial exercise for an Emacs user of almost any skill level.
We could consider providing Emacs commands and/or awk scripts to make
this even easier, but I'm not convinced that we even need that.  It
can't hurt, I suppose.

What's more, and this is from my personal experience of converting
hundreds of .el files (see git log), most files will usually run just
fine under lexbind, without any changes.  I expect that user init files
will typically fall into this category.




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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 18:01:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 13:01:13 2025
Received: from localhost ([127.0.0.1]:60851 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkRuC-0007aa-MC
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 13:01:13 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:42961)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tkRu7-0007DH-3j
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 13:01:11 -0500
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1922510004C;
 Tue, 18 Feb 2025 13:01:01 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1739901660;
 bh=/Gp9rZKfEDs9CMZDoM1o4BtUm3TCLK5ySde4imax3Ww=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=SD8qaDmU22KHlzFBlUXM1cNN44sDUjwek8fFb2SnlmSeoeAcpmk29r6WHFlnQFTmG
 46ENrlhJX5zbUfPEtFXEKMGcFWWMuRamTldTyGo9LRygTYdwlTyFsEx3UCGZBDdjpy
 IxO+WuACO+vh2xJn7I7Ps/YQdb2LLLcgoKIDbUYjBviT7B/2BpzHmZ6rx1ePm0Uyki
 xZ5idrq8sXnIYNFNG7LFlpw90UTE/eAFbbYWjwGFgkj4O8EHPYagCaqvIvtCZkKCA+
 J+GWBmxT4hUM+VD++PW4ro9DAAJLExuKx4NRJdzPN5h7FjbFxeJSjQdRVN/EWlMpKq
 VTt2pawyAryjg==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 62209100034;
 Tue, 18 Feb 2025 13:01:00 -0500 (EST)
Received: from alfajor (unknown [104.247.242.5])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 245C91202C7;
 Tue, 18 Feb 2025 13:01:00 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <86bjuz88ox.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 18 Feb
 2025 19:27:26 +0200")
Message-ID: <jwvmsejyw6r.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN> <86tt8r8eh1.fsf@HIDDEN>
 <jwvzfijyz2h.fsf-monnier+emacs@HIDDEN> <86bjuz88ox.fsf@HIDDEN>
Date: Tue, 18 Feb 2025 13:00:59 -0500
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.144 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: 74145
Cc: psainty@HIDDEN, dancol@HIDDEN, 74145 <at> debbugs.gnu.org,
 visuweshm@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 (---)

> Yes, but the problem is not that there's no such place, the problem is
> with what it says.  Basically, it says "use it and fix any problems
> you find".

But at least it gives you the steps to take and presumably you (the
author of the code who presumably knows what's going on in that code)
should know how to fix the problems.

Are you worried about those cases where the users don't actually know
what the code should do (although they may have written it themselves)?


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 17:27:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 12:27:41 2025
Received: from localhost ([127.0.0.1]:60496 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkRNl-0001cx-0Y
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 12:27:41 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:60552)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tkRNi-0001cH-Ve
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 12:27:39 -0500
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 1tkRNa-0000jN-46; Tue, 18 Feb 2025 12:27:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=pQFlJLVF3lw+em4CcWH+zn17fWvWaYmyJsDkRLozpQ8=; b=fCXq6dG/1rnw
 HFrHG+a6wbAaRc4W8LdEBx8wI1ZzjyLJGyaX9v1M66IaG736Q+5NIbMnGyInwm+EwLF1Pgs1G/4P6
 +yr18+Hszjifa9W9C+BkDIetV/GiilarIDEjjf97hkbYe8jV4/G2JKH++UtgHyB8KBpVrV1e5atUO
 Xkna3xJWU0zXTLzfLPlgwNrz6vLJOzMnmex4RlUa8Kuz4VjjQKH5WtugoHHb2Ygdb15SefinHKnJU
 /M0Zc9D+DDHuD0zahxk/F7sGGFf0dGs1v5k1oIwgHUZ+aeMBprvXUKkJZasRlApwOIOxw97ZPknPt
 99vh4HNz7geiAErHEzGRkA==;
Date: Tue, 18 Feb 2025 19:27:26 +0200
Message-Id: <86bjuz88ox.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvzfijyz2h.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Tue, 18 Feb 2025 11:53:45 -0500)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN> <86tt8r8eh1.fsf@HIDDEN>
 <jwvzfijyz2h.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: psainty@HIDDEN, dancol@HIDDEN, 74145 <at> debbugs.gnu.org,
 visuweshm@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: Visuwesh <visuweshm@HIDDEN>,  psainty@HIDDEN,
>   dancol@HIDDEN,  74145 <at> debbugs.gnu.org
> Date: Tue, 18 Feb 2025 11:53:45 -0500
> 
> >> +1.  It is also a bit time consuming to change code to follow lexical
> >> binding and AFAIU from reading the list, there is no straightforward way
> >> to do so.  Despite that, I hope there could be some addition to the
> >> manual to outline the rough pathway one may follow.
> >
> > I asked about that, and got the answer that it was impossible.
> 
> This said, we do have
> 
>     @node Converting to Lexical Binding
>     @subsection Converting to Lexical Binding
> 
> in `variables.texi`.

Yes, but the problem is not that there's no such place, the problem is
with what it says.  Basically, it says "use it and fix any problems
you find" (and yes, I know that every summary comes with a
simplification that sometimes does injustice to the original text).




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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 16:53:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 11:53:58 2025
Received: from localhost ([127.0.0.1]:59999 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkQr8-0003Gf-8X
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 11:53:58 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:58752)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tkQr4-0003Fr-BD
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 11:53:56 -0500
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D89E9441528;
 Tue, 18 Feb 2025 11:53:47 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1739897626;
 bh=13/+fGRCm5fTugAM2beKDTQH9DBiNjeyRB4D1deYKm4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=X4Wnb5sYAE/d1BES1Y8YYR6fEr2Pg08ExJm8Mm7Mer7ibtJoUU/0PUjQsAhOmX32v
 clC2RK6bUAFnpmz437khIv6Yq4rACgH6CLUeNhFGpmOQMrv2K1yjY0aGDFAT1xHyql
 d0krVUFia/JP32HRR82BKGLj86jFTdsSChHuHEhkIxrfMjraiwCtbIvv79NIKrv0u5
 slB7ZyjWFlwy2bvwhyH58KGHPvyGCv/Uw/iSF/ENgxLngbjfQDltQkgcR6G7ex3xn4
 Zax1gBmh1F2Jwrka+PWzf/zLY0UeF1b1d0y4HpPIfuHWHFaNTOE6fuC7Pw5t6v6UNG
 oQov+7TYdJrzg==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D88CE441054;
 Tue, 18 Feb 2025 11:53:46 -0500 (EST)
Received: from alfajor (unknown [104.247.242.5])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9976B1202CB;
 Tue, 18 Feb 2025 11:53:46 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <86tt8r8eh1.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 18 Feb
 2025 17:22:34 +0200")
Message-ID: <jwvzfijyz2h.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN> <86tt8r8eh1.fsf@HIDDEN>
Date: Tue, 18 Feb 2025 11:53:45 -0500
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.670 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: 74145
Cc: psainty@HIDDEN, dancol@HIDDEN, 74145 <at> debbugs.gnu.org,
 Visuwesh <visuweshm@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 (---)

>> +1.  It is also a bit time consuming to change code to follow lexical
>> binding and AFAIU from reading the list, there is no straightforward way
>> to do so.  Despite that, I hope there could be some addition to the
>> manual to outline the rough pathway one may follow.
>
> I asked about that, and got the answer that it was impossible.

This said, we do have

    @node Converting to Lexical Binding
    @subsection Converting to Lexical Binding

in `variables.texi`.


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 16:07:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 11:07:33 2025
Received: from localhost ([127.0.0.1]:59507 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkQ8C-0006ig-8U
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 11:07:33 -0500
Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:44342)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <visuweshm@HIDDEN>)
 id 1tkQ89-0006he-MH
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 11:07:30 -0500
Received: by mail-pl1-x642.google.com with SMTP id
 d9443c01a7336-220d39a5627so83763355ad.1
 for <74145 <at> debbugs.gnu.org>; Tue, 18 Feb 2025 08:07:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739894843; x=1740499643; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=HfTIfEH3Zn2nDWrhiUPFYxrXnMUeRjp4lFdv7qbLfWc=;
 b=jmQhnGKq2jmcav/0Bhb4JuZjde+OCHExr9vt4j3hH1xlw19gYqqIivZwPx3M4h8StY
 9pnQPmSxG/MvDllmmWaNnIyVDwqXqFHb5oD+qmbBhb9UqbiQfBkuxYFBRWbit2DprOHQ
 E7aUJRs9QAYP3p2mVEBKVVBu5j2yz2dsnoc+erf9OGqdatDmXSA6y+dkIeyrS/nFCW9j
 ff40rRJF4O+C5//S2QWYZIRdSO21D3x4Fn64PYjXLQ6XgaV7u/GqGjdug5oqZj+iziml
 T7jwM3Pw5pmx/frHYSOduQUFexB5e7TdfLYaAe7dUVf/E2YVV/+Fq6Z4gVr88PCoe1tr
 Tjsw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739894843; x=1740499643;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=HfTIfEH3Zn2nDWrhiUPFYxrXnMUeRjp4lFdv7qbLfWc=;
 b=YU49MkZhNgxk9UK1GuEmwgSLpCWN5WsNFOXfs99mWOOcLXLyLlOhFmuxpWOrruwz8p
 cXQm+rY/KnXUWP/jb9vJqI5SDLZNx8mRUEt0k0sgFghKiCyUE8yiBKUWU6NF6x5TbA5S
 RMEelpmFcvV7LvoQRE9UEf/urD68SofLocEFZDc9+2VdrMw4KFbRma2aWk+gYuZimNLs
 Nqbbw77AnRwEiHHItFCMOOQsUic5GnbqfeJIjezSjC/lTHtF2aiNynA6Vpayz2HHA/Xf
 Umk2brNmK2iB8nWG255RYsgRd+Jx3Oa5Xiq+uGMhKfTLF2kDwG2Yhlvz1WYtQ463S+vj
 h4IA==
X-Forwarded-Encrypted: i=1;
 AJvYcCW4eqjR20YrHMG9smnfLgP6aw+V8B5fN+GD25LzEBpNbHlw//j4zNdEWCuBL9mmuZjnEKqSzw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzVUD6d7xLrJIYkbRwFaAsPr5on74eldctGGGx5K/Cb7WDlKJ/o
 gVHYxBrRZplHQztvTPDGf2m92/HSVhb149T/CyHFn2K1pMgFfn6a
X-Gm-Gg: ASbGncv2tWb3llb+ZQ8pQ9iFGSLG60C9DpwHIkONCCurLrBPW07KEDt51WZ6YIIMG2a
 Ub1rZ7xR1WJrSqIGXiar2vN0BUogTsBazyolmos8RmghHtYri4pnT8S9vg01a1bUEj0AvMgg56A
 PtOiLq1Ih2gIb6ty+KLVSmv/wJO5A2+bFixw+/wXlzMzLVQm44w6ypSnuUu3aeujv1YVS30CkWG
 GzCDfcCRox882OCDiFjQQ5zQlnrpQjJjDvflehOGabnlXYYWQpCiqnQ8Un4CSN4NY+OMz1aRdJf
 Cj/A1XAiBFb+PICP
X-Google-Smtp-Source: AGHT+IGRTBxHVopkHDn6Gr47EVrqheC9VC5LQ9LcFIc2WIed0v0IbAkc3ggvY4PJ1O7tSR13azzeDA==
X-Received: by 2002:a05:6a21:b97:b0:1e8:bd15:6845 with SMTP id
 adf61e73a8af0-1ee8cb0c848mr24636315637.1.1739894843479; 
 Tue, 18 Feb 2025 08:07:23 -0800 (PST)
Received: from localhost ([1.7.159.71]) by smtp.gmail.com with UTF8SMTPSA id
 d2e1a72fcca58-7325a8236bfsm7609089b3a.31.2025.02.18.08.07.22
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 18 Feb 2025 08:07:23 -0800 (PST)
From: Visuwesh <visuweshm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <86tt8r8eh1.fsf@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN> <86tt8r8eh1.fsf@HIDDEN>
Date: Tue, 18 Feb 2025 21:37:19 +0530
Message-ID: <87r03vtex4.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-Spam-Score: 3.6 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  [செவ்வாய் பிப்ரவரி 18, 2025]
    Eli Zaretskii wrote: >> Cc: dancol@HIDDEN, 74145 <at> debbugs.gnu.org >> From:
    Visuwesh >> Date: Tue, 18 Feb 2025 17:25:45 +0530 >> >> +1. It is also a
   bit time consuming to change code to follow lexical >> binding and A [...]
    
 
 Content analysis details:   (3.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [1.7.159.71 listed in zen.spamhaus.org]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2607:f8b0:4864:20:0:0:0:642 listed in]
                             [list.dnswl.org]
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (visuweshm[at]gmail.com)
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
X-Debbugs-Envelope-To: 74145
Cc: psainty@HIDDEN, dancol@HIDDEN, 74145 <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: 2.6 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  [செவ்வாய் பிப்ரவரி 18, 2025]
    Eli Zaretskii wrote: >> Cc: dancol@HIDDEN, 74145 <at> debbugs.gnu.org >> From:
    Visuwesh >> Date: Tue, 18 Feb 2025 17:25:45 +0530 >> >> +1. It is also a
   bit time consuming to change code to follow lexical >> binding and A [...]
    
 
 Content analysis details:   (2.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [1.7.159.71 listed in zen.spamhaus.org]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2607:f8b0:4864:20:0:0:0:642 listed in]
                             [list.dnswl.org]
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (visuweshm[at]gmail.com)
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

[=E0=AE=9A=E0=AF=86=E0=AE=B5=E0=AF=8D=E0=AE=B5=E0=AE=BE=E0=AE=AF=E0=AF=8D =
=E0=AE=AA=E0=AE=BF=E0=AE=AA=E0=AF=8D=E0=AE=B0=E0=AE=B5=E0=AE=B0=E0=AE=BF 18=
, 2025] Eli Zaretskii wrote:

>> Cc: dancol@HIDDEN, 74145 <at> debbugs.gnu.org
>> From: Visuwesh <visuweshm@HIDDEN>
>> Date: Tue, 18 Feb 2025 17:25:45 +0530
>>=20
>> +1.  It is also a bit time consuming to change code to follow lexical
>> binding and AFAIU from reading the list, there is no straightforward way
>> to do so.  Despite that, I hope there could be some addition to the
>> manual to outline the rough pathway one may follow.
>
> I asked about that, and got the answer that it was impossible.
>
>> If not possible, then at least some tricks or trips to ensure that
>> one has successfully changed the code to follow lexical binding for
>> the most part.
>
> I think I got the same answer to that, too.

Yes, I remember reading these answers.  IMO "put the lexical-binding
cookie and try to compile" is at least a starter, having recently
followed it.




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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 15:22:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 10:22:57 2025
Received: from localhost ([127.0.0.1]:59109 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkPR3-0007R7-DP
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 10:22:57 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:49452)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tkPQw-0007QI-V4
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 10:22:54 -0500
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 1tkPQm-0007Hr-0I; Tue, 18 Feb 2025 10:22:40 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=ueZtv4L0B95nqR4CE80e85cR8wxee2D01F/6CCfjvYk=; b=IT+EGH2OIm+W
 hyBiPhuJfjOMngY2Iq4HvAWc6/uiVh9C6tctfQ4Z/ugi1YgX3K9pLkpu/gOyT7Ywy4HfbTZ8MdMSF
 ujYAZTZvT1ORWsrUE8KLu1shbgTEpxjHbcyRnSJ2dNNV++p5wAO5KhOiRwfTHJx9Vv3VOSiekWyhJ
 dcmuMAtuKjFIn26vEo9DVSfLH6U1Ya7HOWvWB+O1oz7jvLnmzh+0A6YdfP6YircOydINN42Ks4/3E
 MR7l8ie3GBrXCd+3WZ3E88JlxNM1Ax0sHA7/x9JmWhc6Jre4BJUaQeaj+F+OdlBzBfmjxiVFZQxLx
 TkV1bc3td3Gvu5DrylVgww==;
Date: Tue, 18 Feb 2025 17:22:34 +0200
Message-Id: <86tt8r8eh1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Visuwesh <visuweshm@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <87y0y3tqke.fsf@HIDDEN> (message from Visuwesh on Tue, 18 Feb
 2025 17:25:45 +0530)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: psainty@HIDDEN, dancol@HIDDEN, 74145 <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 (---)

> Cc: dancol@HIDDEN, 74145 <at> debbugs.gnu.org
> From: Visuwesh <visuweshm@HIDDEN>
> Date: Tue, 18 Feb 2025 17:25:45 +0530
> 
> +1.  It is also a bit time consuming to change code to follow lexical
> binding and AFAIU from reading the list, there is no straightforward way
> to do so.  Despite that, I hope there could be some addition to the
> manual to outline the rough pathway one may follow.

I asked about that, and got the answer that it was impossible.

> If not possible, then at least some tricks or trips to ensure that
> one has successfully changed the code to follow lexical binding for
> the most part.

I think I got the same answer to that, too.




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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 12:20:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 07:20:32 2025
Received: from localhost ([127.0.0.1]:55963 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkMaV-0001In-Ke
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 07:20:32 -0500
Received: from mout.gmx.net ([212.227.15.19]:52279)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dimech@HIDDEN>) id 1tkMaR-0001Hx-Uy
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 07:20:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com;
 s=s31663417; t=1739881209; x=1740486009; i=dimech@HIDDEN;
 bh=Cy0DehKqY0+SKL0gAIQ3/RymeuDTc0RDQIyu2KSduQo=;
 h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Cc:Subject:
 Content-Type:Date:In-Reply-To:References:
 Content-Transfer-Encoding:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=lb6knfuOeUgQMzCdLWL2cftJPh52eB14PnRdUACOnE+PF1uIxBZxj+BPlBQdDla0
 7HI4CzNJJWrr5qZnSFWZ+k+YUZizD0azB1zRJfD78ZIv66s/i7HuoLmrP7h9dZYMd
 hxKsS1d0Pfn0Q8aKkbDpKU7GuBnwqILoPF+qzFkdIvSxIdAPIjUU3wajtVk7ioMW/
 LdCmO44cK5gYw+JnLlNUOEzazq85vNUaW302Ht8Kpbxh1OBKiLRzeTmt6pW2o8wU1
 fwMn1i+EFOLdsJ35M/Xe9rMyujg4oPqIu4And4YjoSnYDkOdAkqlcoFfqC5VmOlmT
 Z6nnIoeBHvvXbsESgA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [77.71.252.27] ([77.71.252.27]) by web-mail.gmx.net
 (3c-app-mailcom-bs15.server.lan [172.19.170.183]) (via HTTP); Tue, 18 Feb
 2025 13:20:09 +0100
MIME-Version: 1.0
Message-ID: <trinity-d1ea9f1b-67ba-4efe-9308-7a03dd4d45c3-1739881209141@3c-app-mailcom-bs15>
From: Christopher Dimech <dimech@HIDDEN>
To: Visuwesh <visuweshm@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
Content-Type: text/plain; charset=UTF-8
Date: Tue, 18 Feb 2025 13:20:09 +0100
Importance: normal
Sensitivity: Normal
In-Reply-To: <87y0y3tqke.fsf@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
 <87y0y3tqke.fsf@HIDDEN>
Content-Transfer-Encoding: quoted-printable
X-UI-Message-Type: mail
X-Priority: 3
X-Provags-ID: V03:K1:GpGa8AQb+a6qaEuJROzmEGAXdPHnLj0OjwRSSXsKp9bqzZJT5TqSnc28dyzKAn0H4KSHp
 RQga9Cvy/EiEydikQ48fZ7HF38A27Zm8Qss68PGZSb8P86QYt6jn7GiPq4eJLrxD8isyVALONjEY
 1OXqOABtIh9jc5WvlJAiiDjy0E8r2kHcESK/DCXgugI4A2ZTN2B6nmJNoProqOKVng51iiVFOcyk
 s9CzlAs9u1fuk8elvxdlR1F5ieDIRnYDEaX1vR6y8G1l0ZiPP/JnZjAwtYWL2NeBtJkpKNC9tY0B
 9Q=
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:zf/hCX7tCkQ=;eWz1qzb22YX4wBEcWOOkNkVFV+j
 RD3a0HjHaQQqRYfnIURbein82zCsmY5x3Regh3BMmn8HyKIOlw/ZEAG7N18vc8w7aCrJHHtm3
 +jyHxVibpVGEMPsqZGYLDk2YRlULq2UGGjSuszo22eBG7wXtxrXS6IAaXSO4DA+DnJcwxuoe7
 DGlq3IHeuO76Xzg8zOcmuE7MDKxiV2Hw6VqJqcGpfQ3FiHX8VUNR9cUuhVrVRiqstc8nJYwCg
 5AonCkjeq6MAX/HHz6EXwiO5hVc3zTGX8liQroqNP5fxoelCZwrlUMf5p3u58o8CmllGs2eLw
 CXVwV+IgdMtgoIe19QDJnlkwSw8Lz9dtxftIqXUeWYdypqy2KXEbVTPP4m2A1VaNcuDqtA0L/
 nxdrHq/V23BRIZltJ9eJvbZiBmIhqFmKTU7wYsAhox8xFxrn42sVnFtlCvTSMkyn+HePmm3TJ
 UUTgSPN/4jy/qyuVI7/Imtei1tgjbIzA+wkbjY/InGPn9A3VdiU12E+D9Uuh+qyfaElpvL60Z
 KqfE0caxl35pSr1gqodbHTyK1ZnVSXgMwUjG6KIBBxcDjtKKppdLxGa8h1jisn4Hr5/LrWr6G
 nwOL85g00AJwxmOxPR4Bo7Qolbs//jPi4d89nxxpDYXFBy2yEpnvmvCdVBq48NKLjNDntohqR
 TfdjFhluykjecYCTBzpRzpmaVwajNQYAWRZaYI8z+BeFTcZgCTkIp8xl/WvnBfjgcMlnFz6hW
 NXIL1h4f/kEFiBSxp5Pj4gOO/LfMzDRPs2LNJUgyq8ILuaUJ0X6+826gKDhLSPqJmbUwicPAU
 zS1m8GNjgh6oMv1yphq0ivLBuujxbcA5CNBEAODII7P3rfLrvqU+bbBqLUya6ktWZ6Ve7PCGi
 dIrmc6icKxpxwjKReg7L6GEipqF6V0YzTUIOagIJ6Tr/gT/l+l1KnwWHv8Ul9blL63oEEbaEt
 pX+a+cCCRrP/hu862I4p9GxmXT8TFYkVuTZ45193NWxyPkCaeVTdhMWD0hGuTjHcql4aGDOAQ
 8YSNeR5tG/wqsfAK7FsoEXb19d9EyRFfYszVNk6Fc8w2Ga9quxASZLZUD+C09bbvZw/7dEO1o
 qV5a/nrgNMVq1sNywTL15oj6Jra2jFa2pxXKZU7UuJyQ/s96j8jgKSNAqvZ+y7ys6jfE0smbX
 5nxa3UjLnk6DSLQIk3N+JvWM4y1Y0KCnhbyVepTkZCcBRs2owcOcNY4btk3Refuim45Mox31D
 KyA5jdeQ7IrIqemj01knmoR5jHSDovhp4g==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 74145
Cc: Phil Sainty <psainty@HIDDEN>, dancol@HIDDEN,
 74145 <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.7 (-)



> Sent: Tuesday, February 18, 2025 at 11:55 PM
> From: "Visuwesh" <visuweshm@gmail=2Ecom>
> To: "Phil Sainty" <psainty@orcon=2Enet=2Enz>
> Cc: dancol@dancol=2Eorg, 74145@debbugs=2Egnu=2Eorg
> Subject: bug#74145: 31=2E0=2E50; Default lexical-binding to t
>
> [=E0=AE=AA=E0=AF=81=E0=AE=A4=E0=AE=A9=E0=AF=8D =E0=AE=AA=E0=AE=BF=E0=AE=
=AA=E0=AF=8D=E0=AE=B0=E0=AE=B5=E0=AE=B0=E0=AE=BF 19, 2025] Phil Sainty wrot=
e:
>=20
> > dancol wrote:
> >> It's been many years now=2E Everyone has had enough time to adapt to
> >> lexical-binding=2E
> >
> > I'm sure a majority of elisp programmers are aware of lexical-binding
> > by this point, and (in a great many cases) have adapted to it; but,
> > with the exception of those who are following current developments,
> > nobody has had ANY time to adapt to the idea that lexical-binding is
> > the DEFAULT=2E  Users having time to adapt to THAT begins with the fir=
st
> > release that warns that it's going to happen, and we haven't had one
> > of those yet=2E
> >
> > Even the users who understand Emacs Lisp should have advance warning
> > of such a change so that they can make the necessary changes in
> > advance of that change coming into effect=2E
> >
> > Emacs is not only used by elisp programmers, though=2E  Many users don=
't
> > understand elisp; will not understand dynamic-vs-lexical binding; and
> > will not know why the libraries they have been using for many years
> > suddenly don't work properly=2E
> >
> > Those users should be informed that they need to change something
> > before it has a chance to break things, so this should be sign-posted
> > for a long time in advance of the actual change, so that users really
> > do have time to adapt=2E
>=20
> +1=2E  It is also a bit time consuming to change code to follow lexical
> binding and AFAIU from reading the list, there is no straightforward way
> to do so=2E =20

Not taking the time to do the change is no excuse=2E  Perhaps they can use
an older emacs release so that they continue what they were doing, and=20
concurrently doing the changes=2E

> Despite that, I hope there could be some addition to the
> manual to outline the rough pathway one may follow=2E If not possible,
> then at least some tricks or trips to ensure that one has successfully
> changed the code to follow lexical binding for the most part=2E  Any bug=
s
> hidden would be uncovered soon enough with regular usage of the
> converted code=2E
>=20
>=20
>=20
>




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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 11:55:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 06:55:59 2025
Received: from localhost ([127.0.0.1]:55761 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkMCk-0007OB-L3
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 06:55:59 -0500
Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:45284)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <visuweshm@HIDDEN>)
 id 1tkMCh-0007NW-8z
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 06:55:56 -0500
Received: by mail-pl1-x641.google.com with SMTP id
 d9443c01a7336-220c8f38febso96635235ad.2
 for <74145 <at> debbugs.gnu.org>; Tue, 18 Feb 2025 03:55:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739879749; x=1740484549; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=TDNIsnQdVW0b4Lw/+i5FwqI9ooUWK+LCJ3FJc/Mquyk=;
 b=Didy7udLHOEK5UMQ0HoWKBz10OY+DblH5V5irnpYqSOiqQf377ZBdHY2v5nTg1H58A
 G7tUrjPdHutBN90QJ10QemAcwBKxmndAgT//FP7VxPfJUlURSWbtBYd0Qhflios48Tp2
 ZpRbuK3bYNZAGnbLEvRC4PHTR7JRXXLHZI2EYMxh93yxjwDlBB7LubIQQl1GC6twYL7h
 CFF8xDDjWGUm5DIzzTGLyROvCxuKGYsdKOH+/14EJCkEzUZkx4xA56zTADNs3u4Sh/aX
 LVP/w+IRAjlTaP80Vopb2ver6Knh2Mp0/vbw5jUr7Irsu2cyQ/h30KIjGGfhUe1IaX61
 9u5w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739879749; x=1740484549;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=TDNIsnQdVW0b4Lw/+i5FwqI9ooUWK+LCJ3FJc/Mquyk=;
 b=qS2rnZxnqEgbqhepJKNtoxpFRZ/pg2r5E+mL+YoS3TmS75mvgNrJjuEAhAWbV05J6M
 3fnCj4rB/aIp/3TybwuGYSBbyoDm5vBdjuNhlEbj4S9oxaK43fHtoAIjkEkdL/zEu8B2
 DEt8bzd063rMZF/rLo8zYQkDl3EgyMhiagDUMq+o89vWSG09dSmSNcj85ovUvRLGW9fJ
 +k3arqYCW4VXmkR8b+2YLYm0QZuURuRgID1m/hheKkB6idzV9SnW7+37Zt5qwEMS5QsN
 +HyjCKrqQrx1Qn6SKKXJCiYmiZZ28AmOJ7KXEFRWfk/NzzVej4Q5SO95aOOIUXHCenYZ
 VUoQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWc+7ibtVxHITf9gDmYVdv3jbWBVwqTsp80cpYC0l/YGivzBhfRcVENGPcm7yB2BkaSO4pLsg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxPSjVhgg2SckwiVXHeBpzQ8SW6rm/7pK9zqI5VeZFeR3l3gaWt
 GZZZejxH1R3uJNoMPYwy+uiFEuvGHBnW4l1Ub/ybNcmmB4okYtCw
X-Gm-Gg: ASbGncv6M+VE2dhc7Fov8bscHkmy/rTHtbanp9IiM7rnBeYzcwRNjhLN+QKutqn7Z+c
 LiXPO9VhnE+RZxSJ+fjayepi/cQZeGrd+7OWUIATGqBCfjNN/EiKSf+6GexgC+IAm5P7I0CT5ym
 aJRipMU8ILTzuS/mOfmdD6oW0V6953bjMfkSER17lMSVhD32sXSM8myXV5SIGMS1/3KfSMY9ayq
 07Sk6sGWWjlW7tQFFiRsq3ESCu+g0hyGvEoLplNjn8WJgdpiklY9Ar3pxAO/yAi/G9e9NKdNwln
 EiVOnPfZ9aCa
X-Google-Smtp-Source: AGHT+IE52+t3tfcZym1H3dFL/W+2sUPSj4r+DWF7Xhun+ebi2AzvFUM63GYq2ESshwqprVkX0/VG9Q==
X-Received: by 2002:a17:902:d507:b0:21f:14c1:d58e with SMTP id
 d9443c01a7336-22103efa6eemr207005735ad.1.1739879748901; 
 Tue, 18 Feb 2025 03:55:48 -0800 (PST)
Received: from localhost ([115.240.90.130])
 by smtp.gmail.com with UTF8SMTPSA id
 d9443c01a7336-220d55866f9sm86452645ad.230.2025.02.18.03.55.47
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 18 Feb 2025 03:55:48 -0800 (PST)
From: Visuwesh <visuweshm@HIDDEN>
To: Phil Sainty <psainty@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
Date: Tue, 18 Feb 2025 17:25:45 +0530
Message-ID: <87y0y3tqke.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-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74145
Cc: dancol@HIDDEN, 74145 <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 (-)

[=E0=AE=AA=E0=AF=81=E0=AE=A4=E0=AE=A9=E0=AF=8D =E0=AE=AA=E0=AE=BF=E0=AE=AA=
=E0=AF=8D=E0=AE=B0=E0=AE=B5=E0=AE=B0=E0=AE=BF 19, 2025] Phil Sainty wrote:

> dancol wrote:
>> It's been many years now. Everyone has had enough time to adapt to
>> lexical-binding.
>
> I'm sure a majority of elisp programmers are aware of lexical-binding
> by this point, and (in a great many cases) have adapted to it; but,
> with the exception of those who are following current developments,
> nobody has had ANY time to adapt to the idea that lexical-binding is
> the DEFAULT.  Users having time to adapt to THAT begins with the first
> release that warns that it's going to happen, and we haven't had one
> of those yet.
>
> Even the users who understand Emacs Lisp should have advance warning
> of such a change so that they can make the necessary changes in
> advance of that change coming into effect.
>
> Emacs is not only used by elisp programmers, though.  Many users don't
> understand elisp; will not understand dynamic-vs-lexical binding; and
> will not know why the libraries they have been using for many years
> suddenly don't work properly.
>
> Those users should be informed that they need to change something
> before it has a chance to break things, so this should be sign-posted
> for a long time in advance of the actual change, so that users really
> do have time to adapt.

+1.  It is also a bit time consuming to change code to follow lexical
binding and AFAIU from reading the list, there is no straightforward way
to do so.  Despite that, I hope there could be some addition to the
manual to outline the rough pathway one may follow. If not possible,
then at least some tricks or trips to ensure that one has successfully
changed the code to follow lexical binding for the most part.  Any bugs
hidden would be uncovered soon enough with regular usage of the
converted code.




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

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


Received: (at 74145) by debbugs.gnu.org; 18 Feb 2025 11:01:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 18 06:01:18 2025
Received: from localhost ([127.0.0.1]:55340 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkLLp-00025R-QD
	for submit <at> debbugs.gnu.org; Tue, 18 Feb 2025 06:01:18 -0500
Received: from smtp-4.orcon.net.nz ([60.234.4.59]:42887)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <psainty@HIDDEN>)
 id 1tkLLn-00024q-5n
 for 74145 <at> debbugs.gnu.org; Tue, 18 Feb 2025 06:01:16 -0500
Received: from [10.253.37.70] (port=38580 helo=webmail.orcon.net.nz)
 by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1)
 (envelope-from <psainty@HIDDEN>)
 id 1tkLLi-0002ag-Tl; Wed, 19 Feb 2025 00:01:11 +1300
Received: from ip-139-180-103-232.as55850.net ([139.180.103.232])
 via [10.253.37.253] by webmail.orcon.net.nz
 with HTTP (HTTP/1.1 POST); Wed, 19 Feb 2025 00:01:10 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 19 Feb 2025 00:01:10 +1300
From: Phil Sainty <psainty@HIDDEN>
To: dancol@HIDDEN
Subject: bug#74145: 31.0.50; Default lexical-binding to t
Message-ID: <b6ef6a279042a3b1b3cc9bc0e795b699@HIDDEN>
X-Sender: psainty@HIDDEN
User-Agent: Orcon Webmail
X-GeoIP: --
X-Spam_score: -2.9
X-Spam_score_int: -28
X-Spam_bar: --
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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.7 (-)

dancol wrote:
> It's been many years now. Everyone has had enough time to adapt to
> lexical-binding.

I'm sure a majority of elisp programmers are aware of lexical-binding
by this point, and (in a great many cases) have adapted to it; but,
with the exception of those who are following current developments,
nobody has had ANY time to adapt to the idea that lexical-binding is
the DEFAULT.  Users having time to adapt to THAT begins with the first
release that warns that it's going to happen, and we haven't had one
of those yet.

Even the users who understand Emacs Lisp should have advance warning
of such a change so that they can make the necessary changes in
advance of that change coming into effect.

Emacs is not only used by elisp programmers, though.  Many users don't
understand elisp; will not understand dynamic-vs-lexical binding; and
will not know why the libraries they have been using for many years
suddenly don't work properly.

Those users should be informed that they need to change something
before it has a chance to break things, so this should be sign-posted
for a long time in advance of the actual change, so that users really
do have time to adapt.

Consider users who are running Ubuntu 24.04 GNU/Linux as their OS
(being a popular OS with long-term support).  That OS release is
supported for 5 years as standard, and it provides Emacs 29.  So a lot
of those users will be running Emacs 29 with dynamic binding as the
default until 2029, and when they update their OS in 2029 and acquire,
say, Emacs 31, it would be beneficial if their Emacs config wasn't
suddenly broken on account of something they'd had no prior warning
about.

(There may or may not be other breaking changes, but IMHO this
doesn't need to be one of them.)

I'm not seeing a cost/benefit analysis in favour of making this change
sooner.  The risk of changing it sooner is that we cause some users
pain by breaking things without warning, whereas (so far as I can see)
the only benefit of making the change earlier would be that elisp
authors could choose to stop including a file-local variable in their
elisp files -- something those authors are fully-aware they need to do
(and which is quite probably being done for them automatically via
autoinsert.el or similar).

So I see no notable benefit to making this change in a hurry, but I do
see a cost.  I think we're contrasting an extremely minor convenience
for elisp authors against a real inconvenience for any users who get
affected by it.  My feeling is that Emacs 30 should start issuing
warnings, which could be made more severe in Emacs 31, and that the
change itself shouldn't happen earlier than 2029 to align with some of
the popular OS support cycles.

I don't understand why we'd want to enact such a significant change
without at least that much warning, given how little we gain from it.


-Phil





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

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


Received: (at 74145) by debbugs.gnu.org; 17 Feb 2025 09:16:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 17 04:16:03 2025
Received: from localhost ([127.0.0.1]:42728 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tjxER-0007qA-0m
	for submit <at> debbugs.gnu.org; Mon, 17 Feb 2025 04:16:03 -0500
Received: from dancol.org ([2600:3c01:e000:3d8::1]:48738)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dancol@HIDDEN>) id 1tjxEO-0007pU-PM
 for 74145 <at> debbugs.gnu.org; Mon, 17 Feb 2025 04:16:01 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; 
 s=x;
 h=Content-Transfer-Encoding:Content-Type:Message-ID:References:
 In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=g1ZSZ8edqySftndGDls3b1RaF8Q7N5Qnr56zkLnJpu0=; b=NRAJA9R0bQxpqFh9pA+3D6pVkk
 Op5CHWvb5oMbb6eRFUbzZeUqCT9vRE4G2P56MHOQXeqemTZph8kiPufRhXSrBU0pAHjaTCNFfD5CL
 qHTCYslVjEOgbcAa3C9aiXsIvuIzWieAP4f3BgknnZsdrbh/gLqX19gCJsUR9CIb7FBp0B2RCu03/
 k+YPq7rW5S8FnWNUJ10c5OkYww0USAvV6szu0287t1FQt6Ge4nJXMx21zdr2sBZ8dqde2h6VVlE6s
 jKe7Nbvors21qfeKOhLlLBkS1Y9xRYasTP/evekb/QST/8In2dtF38dB53hnDt5kqyWGj+hFfca8x
 bBhp15Pg==;
Received: from localhost ([127.0.0.1]:36516 helo=dancol.org)
 by dancol.org with esmtpa (Exim 4.96)
 (envelope-from <dancol@HIDDEN>) id 1tjxEF-0007ZD-3D;
 Mon, 17 Feb 2025 04:15:52 -0500
MIME-Version: 1.0
Date: Mon, 17 Feb 2025 04:15:51 -0500
From: dancol <dancol@HIDDEN>
To: rms@HIDDEN
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <E1tjoPW-0004ii-Uo@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <E1tjoPW-0004ii-Uo@HIDDEN>
Message-ID: <e353a1b0d6589f37a0135d636c5a5134@HIDDEN>
X-Sender: dancol@HIDDEN
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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 (-)

On 2025-02-16 18:50, Richard Stallman wrote:
> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> 
> Someone else wrote:
> 
>   > > I believe the time has come to change the default dialect.
>   > > I attached a suggested patch to do that.
> 
> Certainly not!  That would be too abrupt.
> 
> By contrast, your proposed change
> 
>   > OK, before we change the default, I propose the patch below, which
>   > should not change the behavior at all, but allows users to
> 
>   >     (set-default-toplevel-value 'lexical-binding t)
> 
> is a step along a reasonable path.  It won't impose anything on anyone
> immediately, but it will encourage users to try this out and report
> problems.
> 
> One always looks forward to reaching the end of a series of changes
> planned to reach an intended destination.  But if we want to do a good
> job for the users, we must not rush them.

It's been many years now. Everyone has had enough time to adapt to 
lexical-binding.




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

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


Received: (at 74145) by debbugs.gnu.org; 17 Feb 2025 02:12:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 21:12:57 2025
Received: from localhost ([127.0.0.1]:40043 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tjqcy-0002y7-Mv
	for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 21:12:57 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30394)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tjqcv-0002xX-8V
 for 74145 <at> debbugs.gnu.org; Sun, 16 Feb 2025 21:12:54 -0500
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7BA9F100154;
 Sun, 16 Feb 2025 21:12:47 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1739758366;
 bh=iuyRSxZAG9xBX7sK59++9PoJiE5QuduZ+KfrBRdFWjA=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=SnJJZyOxC2ajMM/8jBO8giZIz0kT9b7Wu0j0UWwQ/UgwBakBwmjuXHdvfUEYD7hn9
 HDQwlBJqCzT7zkpER0T7IUtx/sarey6/o/MYJZCsxGSLVx0Ohj+QsuxgMsh5perGHI
 5CLtppfgpf3DEdJawQS1eLSWR1Ybp74cqe0fSgApIYAcmVqtSeolU3wKPoUrnILrjA
 9WsN4Vm5enDKgHxUgFgYsOshdY9YR3izKrHCGLn77hTs280ZbyJ8qf8upSKc727TQ4
 CVT6gV6ssgHOyUFM+FCzf3lXoEuKLsIiYAJt7dVBU7ZZ2XMKyJwtl9pwJMx9aQc1GK
 MowV+r9Poy8eQ==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DC7E7100034;
 Sun, 16 Feb 2025 21:12:46 -0500 (EST)
Received: from alfajor (unknown [104.247.242.5])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B620512009D;
 Sun, 16 Feb 2025 21:12:46 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Richard Stallman <rms@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <E1tjoPW-0004ii-Uo@HIDDEN> (Richard Stallman's message
 of "Sun, 16 Feb 2025 18:50:54 -0500")
Message-ID: <jwveczx5nki.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
 <E1tjoPW-0004ii-Uo@HIDDEN>
Date: Sun, 16 Feb 2025 21:12:45 -0500
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.119 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: 74145
Cc: 74145 <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 (---)

>   > > I believe the time has come to change the default dialect.
>   > > I attached a suggested patch to do that.
>
> Certainly not!  That would be too abrupt.
> By contrast, your proposed change
>
>   > OK, before we change the default, I propose the patch below, which
>   > should not change the behavior at all, but allows users to
>
>   >     (set-default-toplevel-value 'lexical-binding t)
>
> is a step along a reasonable path.  It won't impose anything on anyone
> immediately, but it will encourage users to try this out and report
> problems.

The difference between the two, for users, is whether they need

    (set-default-toplevel-value 'lexical-binding t)

to get the new setup or

    (set-default-toplevel-value 'lexical-binding nil)

to continue with the old setup.
It's a small enough difference that I don't think it justifies
describing one as "reasonable path" and the other as "too abrupt".


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 16 Feb 2025 23:51:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 18:51:17 2025
Received: from localhost ([127.0.0.1]:39116 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tjoPs-0008DF-7X
	for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 18:51:17 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:57582)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rms@HIDDEN>) id 1tjoPl-0008CK-4m
 for 74145 <at> debbugs.gnu.org; Sun, 16 Feb 2025 18:51:13 -0500
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 <rms@HIDDEN>)
 id 1tjoPf-0000fL-HL; Sun, 16 Feb 2025 18:51:03 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=A/qgZWIcPICsDTlU84l5yTI72/uSlm+FQRJ8J8FAb1w=; b=jDeSbZJBd3eg
 Geb6KzuXOD3KkWKb5yP6UJcQQcQixnPe+IxhSA4niSQbp73spgJKeg/RsVXO7kQ2XADVInhhJlyfV
 PGtQBgP3jmtodhiW2Rx9/6fw3H7Yc4PhGvUhgPdpimxs4rqSiFaz7b0z71PYuf2bDZrwnW2LjUhHE
 QFat1YPTHgO+QZTH+cUzbWdCGrawgZeu1WW/9Lg6rQMy8g+FRGBF8QxNiFtmAKsD0zUAe3bzQz8CC
 Tpf6w2NJ0f6NgP1SCw3bl73TsqMMMSv4Lg9s4S0VjJsXrNGsZN+rJ6i9ukabkRxEJxw6a3WAEluJI
 hWEe/MLFi0dUbn/Y55mNiw==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1tjoPW-0004ii-Uo; Sun, 16 Feb 2025 18:50:54 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
Message-Id: <E1tjoPW-0004ii-Uo@HIDDEN>
Date: Sun, 16 Feb 2025 18:50:54 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Someone else wrote:

  > > I believe the time has come to change the default dialect.
  > > I attached a suggested patch to do that.

Certainly not!  That would be too abrupt.

By contrast, your proposed change

  > OK, before we change the default, I propose the patch below, which
  > should not change the behavior at all, but allows users to

  >     (set-default-toplevel-value 'lexical-binding t)

is a step along a reasonable path.  It won't impose anything on anyone
immediately, but it will encourage users to try this out and report
problems.

One always looks forward to reaching the end of a series of changes
planned to reach an intended destination.  But if we want to do a good
job for the users, we must not rush them.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






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

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


Received: (at 74145) by debbugs.gnu.org; 15 Feb 2025 03:28:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 14 22:28:20 2025
Received: from localhost ([127.0.0.1]:52743 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tj8qq-00021s-Gz
	for submit <at> debbugs.gnu.org; Fri, 14 Feb 2025 22:28:20 -0500
Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:52515)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tj8qn-00021X-3Q
 for 74145 <at> debbugs.gnu.org; Fri, 14 Feb 2025 22:28:18 -0500
Received: by mail-ej1-x62c.google.com with SMTP id
 a640c23a62f3a-aaedd529ba1so321061266b.1
 for <74145 <at> debbugs.gnu.org>; Fri, 14 Feb 2025 19:28:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739590091; x=1740194891; 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=WZhZc3NzywaDG5u9sYPXFmyV9KmXBpO4X2sBePFWtHE=;
 b=fwvqpIcc0gyW3ajgQKV/cjf/pgo6PaHw2ldVcoKL/9lSkkmzY0HVnWgTiLn0CNVT9J
 rh7vefvwpLYWntNkYurgF4p/xACIwdTaMMizAihsG3N0Y8VIzWo8G6/4Tdaz34oNCT3h
 ihtu3uV1Ri5T2IAtNmPi4dv201MealRgrCocEiywrsMUxC3SxbVJiSNwJlqcpEjjKRoL
 cs1M5DTLabXzqlnIZUZgNPQ5VytXYgbJ4RFoTrwW8fRZX4hcHs10llr3rxEqgn0VgaXt
 XmO6Wc1aFsrJLjqeXvzLou7xNBJX8a/sHsgSsFc/A6cEJJ0zdhZCE7i19tC1G2O0kSSt
 ebnQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739590091; x=1740194891;
 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=WZhZc3NzywaDG5u9sYPXFmyV9KmXBpO4X2sBePFWtHE=;
 b=Z12P7CGLMeKr8TmoxqI7NF35cC79cZNP8QmbNF5FzffLANUELuhLkNBaa01dlfsj2b
 iSq52RsKSHx89gFcaKhzOLv+DudT2ActVn/T/mwGiBLwbSuclnZLwg7xIXIeCE4bQoa4
 LasY/gxvab7YG5/PchNocZpBOuXQMW1XQFS/zYXeJNGkR8HiWcNOZgN6z6itvnLQ/JAo
 XgfSLJimf9gUnRuTggla/aj785LkYWT4YW3di4Ae2ahHN6OSJ785U3zCDxksT3wTy4kF
 uTLdU0lpHWbsZYdNba3PAEbJLDrlb0ZOG+jPONGbPdh6cO4jEhYlMf6xgt42deDMacvS
 J2Dg==
X-Gm-Message-State: AOJu0YwlbA8DjLNIA8Ti4Bsg0enHRDpgtYEHIj+6ri97Z35NF1EQl1AB
 MNC0NQeUvKx0D1TAga6is2Bs6Zs+u8FDc4uUoi5BNb7I/qJyfd4nIQK4FNQFdb1BQ9TCGCUICU1
 BOoxi307ovGzS0RibE+goxTgsYeJT1B2YA/I=
X-Gm-Gg: ASbGncuJCnAYc37Y2QDLsG1MB+kejba2EIyv9HQnWsXwiO9ezOy7vHBBkQiPVUEYJyU
 hTVV4mgFXwj3sntjVZlmGISYbudTwqSMge0GkPVSS4nEeG0K2It+peBR5Q2FpymszJgXUgQj9IT
 A=
X-Google-Smtp-Source: AGHT+IEsx3AzHQyy3jdjHoBEEmwOoyveUSsbP2dFkzdVjJyzqKPmy8U+vRopkXYJH0dMbygE/lIXX7kilyNQHjioLEA=
X-Received: by 2002:a05:6402:2548:b0:5dc:796f:fc86 with SMTP id
 4fb4d7f45d1cf-5e036061d38mr4394710a12.16.1739590090803; Fri, 14 Feb 2025
 19:28:10 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sat, 15 Feb 2025 03:28:10 +0000
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
MIME-Version: 1.0
Date: Sat, 15 Feb 2025 03:28:10 +0000
X-Gm-Features: AWEUYZkbbiSbRXA8vX_2o3N7uEDtLOV7eBUo2-wQ4YKJdn4ggmWAEiewkpnHlzE
Message-ID: <CADwFkmmvT9fbnEsVFNZ21go2rBhcxmit7mYY+AVyadJfg1BZww@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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:

>> I believe the time has come to change the default dialect.
>> I attached a suggested patch to do that.
>
> OK, before we change the default, I propose the patch below, which
> should not change the behavior at all, but allows users to
>
>     (set-default-toplevel-value 'lexical-binding t)
>
> IOW.  It does "everything" the previous patch did except actually change
> the default.  The remaining step is to change the single line that sets
> the default (currently to nil, then to t) and update the docs.
>
> Any objection?

Makes sense to me.




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

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


Received: (at 74145) by debbugs.gnu.org; 14 Feb 2025 18:12:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 14 13:12:29 2025
Received: from localhost ([127.0.0.1]:51666 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tj0Av-0008Rh-8J
	for submit <at> debbugs.gnu.org; Fri, 14 Feb 2025 13:12:29 -0500
Received: from mout.gmx.net ([212.227.15.18]:54579)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dimech@HIDDEN>) id 1tj0As-0008RP-7p
 for 74145 <at> debbugs.gnu.org; Fri, 14 Feb 2025 13:12:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com;
 s=s31663417; t=1739556736; x=1740161536; i=dimech@HIDDEN;
 bh=SpTCqzlSkuoqnAxNVRBZslTj/B8/t/RvWXMrSalQdmI=;
 h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Cc:Subject:
 Content-Type:Date:In-Reply-To:References:
 Content-Transfer-Encoding:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=NT9z8zAtHDyg7lToxoR3RlT6rKi/3YK0MX2ljhVJdrt70KYNHvStCKBqDHKejO5z
 v/05GC7QH013W8vOeALD5GtcnwEfxT7cRkuwBSkFtssdTWdbRELas50DXhozDMEpO
 IEwYF8BmrOh9+4+YDof86JDkKUzNLMarrjcSQacXd4223kp0OzNU+Gc8EZ0/J2G60
 ANZDG2p+S+1XpLNFzxhg08IANgTUD8GLzEV/BKqGpEw9hV/KDe/BdxBt6ybfuGMEx
 weWFK+nj9kuL65D5sG0lTseSykEWWGEXf4YZlFLg4/p+1r9YULxCHb6er37ssJws+
 9skFYBXb36PiN4BJ9Q==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [77.71.252.27] ([77.71.252.27]) by web-mail.gmx.net
 (3c-app-mailcom-bs10.server.lan [172.19.170.178]) (via HTTP); Fri, 14 Feb
 2025 19:12:16 +0100
MIME-Version: 1.0
Message-ID: <trinity-ddf77f5c-ea2d-447e-aa95-d29552dfe3c8-1739556736162@3c-app-mailcom-bs10>
From: Christopher Dimech <dimech@HIDDEN>
To: monnier@HIDDEN
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
Content-Type: text/plain; charset=UTF-8
Date: Fri, 14 Feb 2025 19:12:16 +0100
Importance: normal
Sensitivity: Normal
In-Reply-To: <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
Content-Transfer-Encoding: quoted-printable
X-UI-Message-Type: mail
X-Priority: 3
X-Provags-ID: V03:K1:K1xczIC/50TogYkCj0cJ006I7JM21eLnIaX7612N0ox7E5YEedwhkIs5BQVD5SWpHRnQS
 LuGOxtkxwv2vGThI/qddIzoQnFI89iORS+vVhfwa+uUV8EVrjeTugCFmoR4rOPNqppyFui36NQNF
 spkf/ufTb/5Rxc6z15HvgcrwbMFpiFDLqVSAq5h9gQXTEmC+m/O+f/tauicclDKhlDED83THTgPL
 ClAgJfL5NE167ya1+Ny2R3bMOk3y4OVq2cEkud9h4tfTGOLhIe68iz2Ur8Gg5krGkJqJ0K7hTzg5
 bg=
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:1g7K6hcPXmM=;eNzV6rMIFs8AX4MSrOxwtSHjzA+
 w2hiRuHyNWGJwgytupq+QZ6pwoB4WRLLSpgHZaVqKKX8pTxzRLEyzKa2NRMMj/iP+rR8bOgCA
 nmxxxRnfevnqFAIRri+NfHrdfn3uq/W9f6uxW0hfI+DHXsHzetTzKHLDD0YX22U6Il8cDci0E
 JDlTVvUh06GkhxuWWXNYchisE2DpOjePgCRQ4Ve23m5KTzkHqIsxqimrAlEN1Q7r3YMvvsKbo
 KPQ/vY7jNg3A3KZwL33HVxK9hi9jzIy+kq6Xwhh6YXK9HVYjfycs1NPppFyshdXv1wXVNN17s
 gMkiAoQZWTuCGd5MKmo+LkS+RCZnnBU847ghSe6MOtvCQSLHLnobCsWCOMvmGvOCotwqYD6FF
 IYZA5gBwueTWZ/FVJDqc5gnUcbnRraN6p+iYa8rboKtaPwnrDiTqU6NAqs5R8yVPQmAZvDtdu
 01dgUcRXBhIXVO0XdKL4MXFMyPqt7WhnmVwO9M5XdBqkjtmJywhB02PuBYzhMaCAki0H2jL3+
 +xOeCwjiULrnEZO3Q58MilruDHFUlZMKvtLLuw1bUgrxXpMBOTNKBnN8ZTr0RMHzDRYY8U7gk
 msZaBNvmOjpg6HJJX15p8egQn2SltYoKiVRWD67fOrT90gI91Pg2OC1SElvjDpL2Yum8M+Wou
 GfoT0cHC/HKbppnETHwTqrow3qFR/BbPyKXsQpaNJmOR5dQlhR3Yo7FSiNHsq4damL5ayhgt6
 18AsUz39Y7Add/XRDFRw/uZeZZYbSi/xbcZDDSO+MDWnh79L0rurAHO0Q/IxuXnneJJ+YQwNO
 w3Ku+EYFjHEB5keLJ1O3GMw3m/v1+X9NUprbwmJp6j32Ao4x9LDS0FcjVKexSkfxQ+P6Eolj4
 qhiWF4jOU6zyuQG8rzIUX2Bvk85HFWQSuwngigKfKGP9BmvrbPDh7qQM6hrTbtY6TEVuQyqE9
 4+ZmnY2s4JkamGBlwYBHIFqUq+f7GtFEATtFmZGGsrUbw9s9R6Ukh0gzvXUi09Q9B49XsVHvh
 gb7D2GeU9xeJAc6yR+bP64jeTe79qGVaXlfvU7jVEwMv4HGmUFC4F6u3Neeu33zM8ibq2Lo0z
 m56xPGRFbamrlYsgrfG2+4bV30Xrqlov4SrcgqgmkwuXnwwg9Z5ZUmRczKst8lgC6RUAjXgwT
 Wm64BZ0VRWWKd3mDSJRtvCyV9duHdY4IamdHzVcpkEnjxd7w78mhkX1WOno6e4nDSqfuJ86Z9
 tbgbi9g8lMI5QeoTH8EUzLCPNK9t07spvg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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.7 (-)



> Sent: Saturday, February 15, 2025 at 4:53 AM
> From: "Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knif=
e of text editors" <bug-gnu-emacs@gnu=2Eorg>
> To: 74145@debbugs=2Egnu=2Eorg
> Subject: bug#74145: 31=2E0=2E50; Default lexical-binding to t
>
> > I believe the time has come to change the default dialect=2E
> > I attached a suggested patch to do that=2E
>=20
> OK, before we change the default, I propose the patch below, which
> should not change the behavior at all, but allows users to
>=20
>     (set-default-toplevel-value 'lexical-binding t)
>=20
> IOW=2E  It does "everything" the previous patch did except actually chan=
ge
> the default=2E  The remaining step is to change the single line that set=
s
> the default (currently to nil, then to t) and update the docs=2E
>=20
> Any objection? > Stefan

;; ---------------------------------------------------------------

In the swirling chaos of modern existence, we find ourselves shackled=20
by an insidious disease - the inability to truly transform=2E Claiming
to do everything except actually change the default, is a perfect=20
encapsulation of this malaise=2E It=E2=80=99s a farce wrapped in the prete=
nse=20
of progress, a cruel joke played on the hopeful souls who dare to believe=
=20
that anything can be different=2E
=20





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

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


Received: (at 74145) by debbugs.gnu.org; 14 Feb 2025 16:53:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 14 11:53:47 2025
Received: from localhost ([127.0.0.1]:51433 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiywk-0001Xo-QA
	for submit <at> debbugs.gnu.org; Fri, 14 Feb 2025 11:53:47 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29643)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <monnier@HIDDEN>)
 id 1tiywg-0001XV-L2
 for 74145 <at> debbugs.gnu.org; Fri, 14 Feb 2025 11:53:44 -0500
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5F4B5804E6;
 Fri, 14 Feb 2025 11:53:36 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1739552015;
 bh=0GredVAtRyOLWg1ZyHL37PpDSNyfZjSTa6mCa2fKf6A=;
 h=From:To:Subject:In-Reply-To:References:Date:From;
 b=Zl6M1+w5q72N19CNkl0DSaSPzToriHVvf+RoX3za5KGAS0ZL/TwVAJbf1yNscjhvd
 pThWbpRpcu7GI52gBkd+O4op7EFi1wDHTSbemHIOOAZQu9CFQ4brvKfNlpPD0K/rdG
 EKHuSKZpQ29sQiJMIINMdgwTe9sec2l1RXW1ld9Dy01L+N9ndSZraP7epXLZClw7RN
 5//gA0URPGCY3naptdOJJ/TVB5NPNyW+ycYm/u5cLVYiueikyVz+8D3ZPSyoQE1RxZ
 r2gGudHbykhAS31nrQeHm+YhhtpH3Js/anoMk3NpXKmP2/noI/RmaNx+vkWQXenXul
 ulyf8uyaxtiig==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1B5B180781;
 Fri, 14 Feb 2025 11:53:35 -0500 (EST)
Received: from alfajor (modemcable005.21-80-70.mc.videotron.ca [70.80.21.5])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 00DC712005D;
 Fri, 14 Feb 2025 11:53:34 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: 74145 <at> debbugs.gnu.org
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <jwv4j4sat2i.fsf@HIDDEN> (Stefan Monnier's message of
 "Thu, 31 Oct 2024 16:57:57 -0400")
Message-ID: <jwvv7tc5v61.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
Date: Fri, 14 Feb 2025 11:53:34 -0500
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.034 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: 0.0 (/)
X-Debbugs-Envelope-To: 74145
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 (---)

--=-=-=
Content-Type: text/plain

> I believe the time has come to change the default dialect.
> I attached a suggested patch to do that.

OK, before we change the default, I propose the patch below, which
should not change the behavior at all, but allows users to

    (set-default-toplevel-value 'lexical-binding t)

IOW.  It does "everything" the previous patch did except actually change
the default.  The remaining step is to change the single line that sets
the default (currently to nil, then to t) and update the docs.

Any objection?


        Stefan

--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=lexical-binding.patch

diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index b041678d8c8..1d60c6b0f88 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -3845,7 +3845,7 @@ Lexical vs Dynamic Binding Example
 If we use dynamic binding instead, the behavior is different:
 
 @example
-;;; -*- lexical-binding: nil -*-
+(defvar x) ;; Use dynamic binding for 'x'.
 
 (setq x 0)
 
@@ -3867,8 +3867,9 @@ Lexical vs Dynamic Binding Example
 @code{x}, since its binding is below the one from our @code{let}
 expression in the stack of bindings.
 
-(Some variables are also ``special'', and they are always dynamically
-bound even when @code{lexical-binding} is @code{t}.  @xref{defvar, ,
+(The @code{defvar} declaration above is said to make the variable
+``special'', which causes it to obey the dynamic binding rules instead of
+the default binding rules.  @xref{defvar, ,
 Initializing a Variable with @code{defvar}}.)
 
 @node if
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi
index e234db6fce5..15836591032 100644
--- a/doc/lispref/edebug.texi
+++ b/doc/lispref/edebug.texi
@@ -722,13 +722,6 @@ Edebug Eval
 pretty-printed in a separate buffer.
 @end table
 
-@cindex lexical binding (Edebug)
-  Edebug supports evaluation of expressions containing references to
-lexically bound symbols created by the following constructs in
-@file{cl.el}: @code{lexical-let}, @code{macrolet}, and
-@code{symbol-macrolet}.
-@c FIXME?  What about lexical-binding = t?
-
 @node Eval List
 @subsection Evaluation List Buffer
 
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 89ccb8ea740..998a74d067a 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -285,7 +285,7 @@ Local Variables
 @defspec letrec (bindings@dots{}) forms@dots{}
 This special form is like @code{let*}, but all the variables are bound
 before any of the local values are computed.  The values are then
-assigned to the locally bound variables.  This is only useful when
+assigned to the locally bound variables.  This is useful only when
 lexical binding is in effect, and you want to create closures that
 refer to bindings that would otherwise not yet be in effect when using
 @code{let*}.
@@ -351,7 +351,7 @@ Local Variables
 done so that the value returned by the call is the value of @var{body}
 itself, as is the case in the recursive call to @code{sum} above.
 
-@code{named-let} can only be used when lexical-binding is enabled.
+@code{named-let} can be used only when lexical-binding is enabled.
 @xref{Lexical Binding}.
 @end defspec
 
@@ -392,7 +392,7 @@ Void Variables
 to evaluate the variable signals a @code{void-variable} error, instead
 of returning a value.
 
-  Under the optional lexical scoping rule, the value cell only holds
+  Under the optional lexical scoping rule, the value cell holds only
 the variable's global value---the value outside of any lexical binding
 construct.  When a variable is lexically bound, the local value is
 determined by the lexical environment; hence, variables can have local
@@ -710,8 +710,8 @@ Accessing Variables
   The usual way to reference a variable is to write the symbol which
 names it.  @xref{Symbol Forms}.
 
-  Occasionally, you may want to reference a variable which is only
-determined at run time.  In that case, you cannot specify the variable
+  Occasionally, you may want to reference a variable which is determined
+only at run time.  In that case, you cannot specify the variable
 name in the text of the program.  You can use the @code{symbol-value}
 function to extract the value.
 
@@ -1991,8 +1991,8 @@ File Local Variables
 
 @defvar permanently-enabled-local-variables
 Some local variable settings will, by default, be heeded even if
-@code{enable-local-variables} is @code{nil}.  By default, this is only
-the case for the @code{lexical-binding} local variable setting, but
+@code{enable-local-variables} is @code{nil}.  By default, this is the
+case only for the @code{lexical-binding} local variable setting, but
 this can be controlled by using this variable, which is a list of
 symbols.
 @end defvar
diff --git a/lisp/loadup.el b/lisp/loadup.el
index 98a47f2867f..ebd35291050 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -617,9 +617,9 @@ comp-subr-arities-h
           (unwind-protect
               (let ((tmp-dump-mode dump-mode)
                     (dump-mode nil)
-                    ;; Set `lexical-binding' to nil by default
+                    ;; Set `lexical-binding' to its default value
                     ;; in the dumped Emacs.
-                    (lexical-binding nil))
+                    (lexical-binding (default-toplevel-value 'lexical-binding)))
                 (if (member tmp-dump-mode '("pdump" "pbootstrap"))
                     (dump-emacs-portable (expand-file-name output invocation-directory))
                   (dump-emacs output (if (eq system-type 'ms-dos)
diff --git a/src/lread.c b/src/lread.c
index 46c705e5c76..df1caaf5732 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1720,8 +1720,11 @@ DEFUN ("load", Fload, Sload, 1, 5, 0,
     }
   else
     {
-      if (lisp_file_lexical_cookie (Qget_file_char) == Cookie_Lex)
-        Fset (Qlexical_binding, Qt);
+      lexical_cookie_t lexc = lisp_file_lexical_cookie (Qget_file_char);
+      Fset (Qlexical_binding,
+	    (lexc == Cookie_Lex ? Qt
+	     : lexc == Cookie_Dyn ? Qnil
+	     : Fdefault_toplevel_value (Qlexical_binding)));
 
       if (! version || version >= 22)
         readevalloop (Qget_file_char, &input, hist_file_name,
@@ -2606,8 +2609,11 @@ DEFUN ("eval-buffer", Feval_buffer, Seval_buffer, 0, 5, "",
   specbind (Qstandard_output, tem);
   record_unwind_protect_excursion ();
   BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf)));
+  lexical_cookie_t lexc = lisp_file_lexical_cookie (buf);
   specbind (Qlexical_binding,
-	    lisp_file_lexical_cookie (buf) == Cookie_Lex ? Qt : Qnil);
+	    lexc == Cookie_Lex ? Qt
+	    : lexc == Cookie_Dyn ? Qnil
+	    : Fdefault_toplevel_value (Qlexical_binding));
   BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf)));
   readevalloop (buf, 0, filename,
 		!NILP (printflag), unibyte, Qnil, Qnil, Qnil);

--=-=-=--





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

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


Received: (at 74145) by debbugs.gnu.org; 30 Dec 2024 04:12:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 29 23:12:27 2024
Received: from localhost ([127.0.0.1]:56888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tS78l-0007SN-9J
	for submit <at> debbugs.gnu.org; Sun, 29 Dec 2024 23:12:27 -0500
Received: from eggs.gnu.org ([209.51.188.92]:35754)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1tS78j-0007SA-34
 for 74145 <at> debbugs.gnu.org; Sun, 29 Dec 2024 23:12:25 -0500
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 <rms@HIDDEN>)
 id 1tS76X-0002ta-4I; Sun, 29 Dec 2024 23:10:09 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=6bUMm8gB8381aJQe2WAuoCzvGemCaf0Se/525p/KoVs=; b=cOhLFOIK7aYG
 CE0LDMUC9LrZouaEtPe0OHcKRut2aPuz6TuYs3OZLIVziTTcmDm4SfyACd7feZlhZnwjqy0L3foQ5
 0SMPMz1aU1GAWs2tfzvAJQeZ+hfF62RdYIR2onPTXWcF0Umk/uhVt2/5nsWD+t0xUJFU8hZmpZY2P
 QjKMRQ4eLNRimsLDYB+wc1QSaCZDqZIhAzqWDZAxf9PmUDaovTG0kXKCMWJASv9onklLtd/Du48xg
 Xjmwred0H/VBsS490HeDot7ACVO5u2eA3GOjDZ2R8pD+WoC15vu8gfNNTRfdwYMiI/nBCoO9T7K1j
 gMWUwG7jczgRT7Vq4M1wug==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1tS76W-0006pi-Fm; Sun, 29 Dec 2024 23:10:08 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Mattias =?iso-8859-1?Q?Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
In-Reply-To: <F0363CED-9B81-4413-8022-AF1CCBED0EAF@HIDDEN> (message from
 Mattias =?iso-8859-1?Q?Engdeg=C3=A5rd?= on Sat, 28 Dec 2024 18:40:00 +0100)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
 <F0363CED-9B81-4413-8022-AF1CCBED0EAF@HIDDEN>
Message-Id: <E1tS76W-0006pi-Fm@HIDDEN>
Date: Sun, 29 Dec 2024 23:10:08 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: 74145 <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>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > >  for the old dynamic-only dialect.  When no declaration is present the
  > > -old dialect is used, but this may change in a future release.
  > > -The compiler will warn if no declaration is present.
  > > +new dialect is used.  Support for the old dialect may be removed in
  > > +a future release.

We should delete that last sentence.

It would be a mistake to delete support for lexical-binding: nil, even
20 years from now.

To convert a program from dynamic binding to lexical binding is not a
trivial transformatoin -- it requires actually understanding the code.
It would be bad judgment to require people to do that work for their
old programs merely to simplify one small piece of the language.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






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

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


Received: (at 74145) by debbugs.gnu.org; 28 Dec 2024 17:41:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 28 12:41:05 2024
Received: from localhost ([127.0.0.1]:52521 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tRaoC-0000aJ-RQ
	for submit <at> debbugs.gnu.org; Sat, 28 Dec 2024 12:41:05 -0500
Received: from mail-lj1-f175.google.com ([209.85.208.175]:45340)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mattias.engdegard@HIDDEN>) id 1tRaoB-0000a1-9B
 for 74145 <at> debbugs.gnu.org; Sat, 28 Dec 2024 12:41:03 -0500
Received: by mail-lj1-f175.google.com with SMTP id
 38308e7fff4ca-30227c56b11so92071751fa.3
 for <74145 <at> debbugs.gnu.org>; Sat, 28 Dec 2024 09:41:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1735407602; x=1736012402; darn=debbugs.gnu.org;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:sender:from:to:cc:subject:date
 :message-id:reply-to;
 bh=2SJGLo/W9NQn5UOJRCiR74gL2fD5tmgIH3U78ai5SH4=;
 b=U3dN3xXWN8l035mkFf+5RKFJYKTDDQCIkXUEEMvW9TZTEo8V/nUXCMChlSQzvIlCxl
 kvBqXygk2d8Mo4v3U8YnEQZGCd5vQfBNQJjheTGvwkY2tmw+kzcPU8aGPa6L+1hUr8Md
 lApD+uM2dCstdab3K+hHynFAlKIHHHY2VbBiTIvKSiGPLzz7zh2zTDNk/NHgfSpwqieI
 L4Ck9kzIQxeMaIJKAPXwGvbHWGYUP7UoIKPqtS5xq2au4JSLWPVJuPQ5a7xxaXXzLSB9
 wHc8NtmgSOS6h78caq2gUZYtQc/iACgVRvolg889c16u3ODIhYsz0faETnlmqaco35gn
 Tg+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1735407602; x=1736012402;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:sender:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=2SJGLo/W9NQn5UOJRCiR74gL2fD5tmgIH3U78ai5SH4=;
 b=n2hOmpcZ8Nntg9gp/n9hAx+bdwnW4R2S/bTevs7aGXR4oEVzSRsWly56bGS2pknfK0
 MnhOnlmK6rTKP0wStAM7mTIPJBL3YBM7qEszBXRKUMHHVVXhKXP1LBvOs5wUIpSlVzUe
 vTau6ooNbnvWcDYHvRT2PQ6bXzrsyVzYeyUz5+m6ukrKpKLw/laGEiovaSMAYPr0el6K
 dUaK3eDU4Y93NXTvC743ryx4EC7cjwbSoTHbjla2zbzrxlkWcUFT+4zT0ukuUGgdIkLL
 vDfA06L5xWoO0B3cjkVbBSv+LZG0ELFkiC02ko+O01rnQb5fir3YkznD7XGH2hNdbO1S
 Pm+Q==
X-Forwarded-Encrypted: i=1;
 AJvYcCXAjEdPny64DYnb1oPWfajTSOGYUvYZQ2qCrWiCe9n/jxsfHuau1HxREykQgV/ZntR+LnczWQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyXC35PoTeGtAGfTf+UTdJYO1I4lxOt6Sje3Awo2l9D0ZwxTSzI
 Sn0GLl6whRfj0YO87LqxPM2CiSfjx2Z/N+0Jw+tz0frJN6hQIdIQ
X-Gm-Gg: ASbGncsfW6Dx2Dt6r2HDk76n/BAUGOi2gCw7XUI8Tf5MAvnWc8+jojpCSQOkuc+T6p0
 NlLN2ZDFCjuacqd6G2A4+JX8teNc5A1uyGIQQqUgpx0XlP/ctnuYdYZB7Otmju3y7vBxxFRR4zB
 D/dCHYQftjfN1WJ/GWJ9cLB7FZo3JB5RQBIDP9yQqnIOzrqPS/x11Ct9sqb4oxIbfeqtpbPGE18
 scPyhxiIbSM9gySo12ySGSMqedA/s50C89Q6+e0Vtt6HjsFMAUh1L6er30Mbyn2rFCd7u0oy3jr
 km7c2PangtWSn4JEzOLCJf5hNJZlJ/Z8CbKa3UdF4diD4y8=
X-Google-Smtp-Source: AGHT+IHMl7bFyGABPjDUgqUyvwguSedagk5ASS8aCcgR+G99iON6uxmErzjHbE50/DUD7tCCTR301A==
X-Received: by 2002:a2e:bc1a:0:b0:302:3a46:10a7 with SMTP id
 38308e7fff4ca-3046851f9cemr84827951fa.5.1735407602026; 
 Sat, 28 Dec 2024 09:40:02 -0800 (PST)
Received: from smtpclient.apple (c188-150-183-180.bredband.tele2.se.
 [188.150.183.180]) by smtp.gmail.com with ESMTPSA id
 38308e7fff4ca-3045b069f0fsm29429151fa.84.2024.12.28.09.40.01
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 28 Dec 2024 09:40:01 -0800 (PST)
From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Subject: bug#74145: 31.0.50; Default lexical-binding to t 
Message-Id: <F0363CED-9B81-4413-8022-AF1CCBED0EAF@HIDDEN>
Date: Sat, 28 Dec 2024 18:40:00 +0100
To: Stefan Monnier <monnier@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.15)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74145
Cc: Eli Zaretskii <eliz@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>,
 74145 <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: -1.0 (-)

> I believe the time has come to change the default dialect.

Agreed, the sooner the better. (Sorry about the delay; I'm trying to =
catch up.)

The compilation warning about missing lexical-binding declaration is =
still there which makes sense. Eventually it should be removed but it's =
not urgent to plan for it now.

The patch looks fine. Some very minor comments (that you can ignore):
=20
> -  The old dynamic-only Emacs Lisp dialect is still the default in =
code
> +  The new lexically scoped Emacs Lisp dialect is now the default in =
code

Maybe do away with the 'new' and 'now' here -- I think the documentation =
should describe Emacs as it is, and NEWS have the changes.

>  for the old dynamic-only dialect.  When no declaration is present the
> -old dialect is used, but this may change in a future release.
> -The compiler will warn if no declaration is present.
> +new dialect is used.  Support for the old dialect may be removed in
> +a future release.

Well, the compiler still warns, as it should, so this isn't quite =
accurate.
> =20

> +** 'lexical-binding' now defaults to t.
> +The default ELisp dialect is now the lexically scoped dialect.
> +Any code which has not yet been adapted should either be
> +adapted or set 'lexical-binding' to nil explicitly.

Maybe mention that the cookie warning is still there?





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

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


Received: (at 74145) by debbugs.gnu.org; 4 Nov 2024 05:36:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 04 00:36:26 2024
Received: from localhost ([127.0.0.1]:37409 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t7plK-0004nJ-0f
	for submit <at> debbugs.gnu.org; Mon, 04 Nov 2024 00:36:26 -0500
Received: from eggs.gnu.org ([209.51.188.92]:59672)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1t7plH-0004n9-AQ
 for 74145 <at> debbugs.gnu.org; Mon, 04 Nov 2024 00:36:24 -0500
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 <rms@HIDDEN>)
 id 1t7pj3-0001y2-O5; Mon, 04 Nov 2024 00:34:05 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=+YCJYAbfa145y7htSaxbg4uQQAceGsyLWuHStyFO0hs=; b=RbZK0im5L8EY
 UNIsrae27nhAKKyMunFWIzwep6WxZRbe/5MOYPYcsxOqST4vTQQov55sSBrZ3mGvz7AqQdhVPAzQi
 MgdEGnaIcpg6YkqUhjMFgXjbO4FmwmL4Bzb3VkbV8zj6Q0qYjW+mu4vBdENPF5GPzCZsGC0dvPvam
 xUGowuxezXcbtR3z7JvKCExxp3dOY/pYYK9jARybevRzFklKPR3yEXH9vBZPuTYhYiORUegw/e52I
 aF9HHcotkh3sC9yYNeoZweyItav5AHOn+6wJB4ab4EuY04SY2n0T2xI60wygRohNHew/HirQAhrTd
 jZ0uRUTYzJzgoh9avA5fYA==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1t7pir-0003Q7-3q; Mon, 04 Nov 2024 00:33:56 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <86sesb1lfu.fsf@HIDDEN> (message from Eli Zaretskii on Fri, 01
 Nov 2024 09:07:33 +0200)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN> <86sesb1lfu.fsf@HIDDEN>
Message-Id: <E1t7pir-0003Q7-3q@HIDDEN>
Date: Mon, 04 Nov 2024 00:33:53 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: acorallo@HIDDEN, 74145 <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>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  >   We need to give the community
  > ample time and opportunity to discuss those effects and express
  > opinions, before we install something like that.  In particular, any
  > objections should be taken very seriously, and perhaps some follow-up
  > measures should be included in the changeset to make the transition
  > smoother and easier.

Hear, hear.  We ought to this in the way that is most gentle to the
users.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74145; Package emacs. Full text available.
Added tag(s) patch. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 74145) by debbugs.gnu.org; 1 Nov 2024 15:38:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 01 11:38:49 2024
Received: from localhost ([127.0.0.1]:50195 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t6tjd-000592-BI
	for submit <at> debbugs.gnu.org; Fri, 01 Nov 2024 11:38:49 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1075)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1t6tja-00058u-Qx
 for 74145 <at> debbugs.gnu.org; Fri, 01 Nov 2024 11:38:47 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 444D14444DF;
 Fri,  1 Nov 2024 11:38:40 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1730475519;
 bh=GiNK9SZeFb9KFod7Tyud2H2T2fLJAGSsCaetWrZaFWE=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=oLfrN4pb6mLuuYhudvXD2H89sNEW3KrjVTzNN0INdheLbk9FdBrpRbIrbnLfBAtSj
 yEsK5JVpAh6Cz7g1soQUIwiTE9z3IA5G6rWyYHDXyPBwLINj8N8fe5AMCRCu8eIHQV
 pOF4l4lfHnwB8k4ugAIR9mQLSmQnYxQvbO77xxMxMd6YdJ1NNMApqeYG687Okeq/ew
 iuzU0T5WienHwRy4PCM34dVJ/oJaGWXyM4MKJVyfhIXnLtgy/k+7kwAPEzo0+B74mk
 Sn9hd6r9V3DfguSw6NjQSddYfGZwOvB182dbuGblmquUzqfSuc9gq3qnZrQ5umNJT0
 WOtEipMvKe5ow==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2B0E24444DE;
 Fri,  1 Nov 2024 11:38:39 -0400 (EDT)
Received: from alfajor (bras-base-mtrlpq427bw-grc-37-65-92-208-84.dsl.bell.ca
 [65.92.208.84])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 037ED120403;
 Fri,  1 Nov 2024 11:38:38 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <86sesb1lfu.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 01 Nov
 2024 09:07:33 +0200")
Message-ID: <jwv1pzvvuml.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN> <86sesb1lfu.fsf@HIDDEN>
Date: Fri, 01 Nov 2024 11:38:36 -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
 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: 74145
Cc: Andrea Corallo <acorallo@HIDDEN>, 74145 <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 (---)

> Thanks, but this kind of change cannot be discussed here.  Please
> start a discussion on emacs-devel, and please include in your

I posted something there, but to be honest at this point I don't think
discussion is going to be useful.

Also, I'm doing this now, i.e. early in the Emacs-31 development cycle,
so that we get a chance to get as much feedback as possible before
committing to it in a release: the patch is easy to revert since (beside the
doc) it's a matter of changing

    Vlexical_binding = Qt;

back to

    Vlexical_binding = Qnil;

> In particular, any objections should be taken very seriously,

I'm not sure what that means concretely.

> and perhaps some follow-up measures should be included in the
> changeset to make the transition smoother and easier.

I think we've already done about as much as we could over the past
several years.  Maybe after installing the patch we will discover new
cases which warrant further changes, but I doubt we'll be able to figure
that out via discussions on emacs-devel.


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 1 Nov 2024 07:07:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 01 03:07:42 2024
Received: from localhost ([127.0.0.1]:47301 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t6ll0-00057u-EL
	for submit <at> debbugs.gnu.org; Fri, 01 Nov 2024 03:07:42 -0400
Received: from eggs.gnu.org ([209.51.188.92]:37852)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1t6lky-00057l-F3
 for 74145 <at> debbugs.gnu.org; Fri, 01 Nov 2024 03:07:41 -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 1t6lks-0000ka-Ic; Fri, 01 Nov 2024 03:07:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=M67of8cihw+hu5QXjVnfjPRXdBHl4yyZ9B1Yiuh1RzU=; b=UdBG5lIY5vxa
 lJb0xtbd1czUblEKY74oRG2M8/GIfbYpvzBxpmi00DkR/SyMyo2rwTWtmLSpqYp80Trck2/daL1CO
 ncRrhyj9jBttehpJEb62MifyQ3ulo7ASrcbU7JSnH6ISVECOa9RWQpAtWjwk9LEeKVL3uDtidL58+
 5ydR6kcRBdb3g1KzCp8QZVsRNknQSXik61Vi0IPCujdI2dNKeO5jG83AUwxQHIfj199Boj+qNjgaP
 Nm6xbnR7yga3rlLllanUpZoAJUCRgBviZN5h66OHb9uan3JM+wqcbPBGk5LnXXRZi4RkFj5GPJiD9
 rxypYzOk7YSVFw7PiJU+rA==;
Date: Fri, 01 Nov 2024 09:07:33 +0200
Message-Id: <86sesb1lfu.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwv4j4sat2i.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
References: <jwv4j4sat2i.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74145
Cc: Andrea Corallo <acorallo@HIDDEN>, 74145 <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 (---)

> Cc: monnier@HIDDEN
> Date: Thu, 31 Oct 2024 16:57:57 -0400
> From:  Stefan Monnier via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> I believe the time has come to change the default dialect.
> I attached a suggested patch to do that.

Thanks, but this kind of change cannot be discussed here.  Please
start a discussion on emacs-devel, and please include in your
suggestion the description of the effects of this change on various
parts of Emacs and third-party package.  We need to give the community
ample time and opportunity to discuss those effects and express
opinions, before we install something like that.  In particular, any
objections should be taken very seriously, and perhaps some follow-up
measures should be included in the changeset to make the transition
smoother and easier.




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

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


Received: (at 74145) by debbugs.gnu.org; 1 Nov 2024 03:07:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 31 23:07:29 2024
Received: from localhost ([127.0.0.1]:46187 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t6i0W-00058Q-Ab
	for submit <at> debbugs.gnu.org; Thu, 31 Oct 2024 23:07:29 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:14674)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1t6i0U-00058I-Fm
 for 74145 <at> debbugs.gnu.org; Thu, 31 Oct 2024 23:07:27 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C03458074F;
 Thu, 31 Oct 2024 23:07:20 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1730430434;
 bh=bMxntHvuoo1CA+7ADzY9AE8ojhqheB1xycJ1p9JpS/U=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=HL6nsw1cZXQtw/agSmMoRiOLUroT2d4bt20v63tSFkVQiM0VpPQ+GehLv1vaxFZSM
 NpkedsD55wKhhYIAy/kTfCelnptT2kpvUrl2g8ZFxYC52rUYyP1UbFhCc39yyytwZ5
 gNWBBmr3JFlF+y7uyvHk3iyrosfEiJnsK8/+QkLJNMq04MCR946pWcD98CO4UurDY7
 T21v5YLQjtdSgxxKTYSUnSjDK43NoKntFajA+2kWW8cD6Lid9DzoVFNL9E43RBYv+p
 1Yb66Je6p2A+35yfWf61F92Hq81OEBistOzo59G1ESbNsdraKgnkCZFmNgvldG6b9E
 Y8IFQ/nEx5n0Q==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 792438004C;
 Thu, 31 Oct 2024 23:07:14 -0400 (EDT)
Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3A3951200A3;
 Thu, 31 Oct 2024 23:07:14 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <CADwFkmmDXOZ7P_u=UYq=1GKQMGi6jb+PNcR1Obfv15wsSFMJZA@HIDDEN>
 (Stefan Kangas's message of "Thu, 31 Oct 2024 19:05:42 -0700")
Message-ID: <jwved3vfyfu.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <CADwFkmnT5OO2cbtgTg_W+KWPUrH9MTF+mOoRQOPJU5LDEJXarA@HIDDEN>
 <jwvbjyzhi0l.fsf-monnier+emacs@HIDDEN>
 <CADwFkmmDXOZ7P_u=UYq=1GKQMGi6jb+PNcR1Obfv15wsSFMJZA@HIDDEN>
Date: Thu, 31 Oct 2024 23:07:13 -0400
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.049 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: 74145
Cc: Eli Zaretskii <eliz@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>,
 74145 <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 (---)

--=-=-=
Content-Type: text/plain

> Great, thanks.

Updated patch below.

> Meanwhile, here's two more things I thought of:
> - I think there's some text in doc/lispref/tips.texi that will need
>   updating too.

I didn't think it necessary, but after taking another look at it,
I tweaked a few more things, indeed.

> - Should we provide any advice somewhere for Emacs Lisp authors that
>   want to support Emacs 30 or older?  For example, they will want to
>   keep the lexical-binding:t cookie.

Currently, the doc recommends to add the cookie "everywhere", and my
patch doesn't really change that, so I think we're OK in this respect
(the new change in `tips.texi` does mention that the cookie is needed
only for compatibility with Emacs<31).


        Stefan



--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-Change-the-default-value-of-lexical-binding.patch

From e69585bfbca950bce14fb51db385a72f6ecb553d Mon Sep 17 00:00:00 2001
From: Stefan Monnier <monnier@HIDDEN>
Date: Thu, 31 Oct 2024 16:00:10 -0400
Subject: [PATCH] Change the default value of `lexical-binding`

* src/lread.c (syms_of_lread): Set `Vlexical_binding` to Qt.
(Fload, Feval_buffer): Don't assume the default value of
`lexical-binding` is nil.
* lisp/loadup.el: Don't assume the default value of `lexical-binding`
is nil.

* doc/misc/cl.texi (Porting Common Lisp):
* doc/lispref/tips.texi (Coding Conventions, Library Headers):
* doc/lispref/variables.texi (Variable Scoping, Selecting Lisp Dialect)
(Void Variables): Adjust to new default of `lexical-binding`.

* doc/lispref/edebug.texi (Edebug Eval): Remove out of date paragraph.

* doc/lispintro/emacs-lisp-intro.texi (How let Binds Variables)
(Lexical vs. Dynamic Binding Example, defvar): Only consider the
lexical dialect of ELisp.
---
 doc/lispintro/emacs-lisp-intro.texi | 26 +++++++----------------
 doc/lispref/edebug.texi             |  7 ------
 doc/lispref/tips.texi               |  6 ++++--
 doc/lispref/variables.texi          | 33 +++++++++++++++--------------
 doc/misc/cl.texi                    |  9 ++++----
 etc/NEWS                            |  6 ++++++
 lisp/loadup.el                      |  4 ++--
 src/lread.c                         | 14 ++++++++----
 8 files changed, 52 insertions(+), 53 deletions(-)

diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index 49916235fbf..6cc7a5b3cf2 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -3754,21 +3754,12 @@ How let Binds Variables
 
 Emacs Lisp supports two different ways of binding variable names to
 their values.  These ways affect the parts of your program where a
-particular binding is valid.  For historical reasons, Emacs Lisp uses
-a form of variable binding called @dfn{dynamic binding} by default.
-However, in this manual we discuss the preferred form of binding,
-called @dfn{lexical binding}, unless otherwise noted (in the future,
-the Emacs maintainers plan to change the default to lexical binding).
+particular binding is valid.
+In this manual we discuss the preferred form of binding,
+called @dfn{lexical binding}, unless otherwise noted.
 If you have programmed in other languages before, you're likely
 already familiar with how lexical binding behaves.
 
-In order to use lexical binding in a program, you should add this to
-the first line of your Emacs Lisp file:
-
-@example
-;;; -*- lexical-binding: t -*-
-@end example
-
 For more information about this, @pxref{Variable Scoping, , ,
 elisp, The Emacs Lisp Reference Manual}.
 
@@ -3818,8 +3809,6 @@ Lexical vs. Dynamic Binding Example
 For example, see what happens in this code under lexical binding:
 
 @example
-;;; -*- lexical-binding: t -*-
-
 (setq x 0)
 
 (defun getx ()
@@ -3845,7 +3834,7 @@ Lexical vs. Dynamic Binding Example
 If we use dynamic binding instead, the behavior is different:
 
 @example
-;;; -*- lexical-binding: nil -*-
+(defvar x) ;; Use dynamic binding for 'x'.
 
 (setq x 0)
 
@@ -3867,8 +3856,9 @@ Lexical vs. Dynamic Binding Example
 @code{x}, since its binding is below the one from our @code{let}
 expression in the stack of bindings.
 
-(Some variables are also ``special'', and they are always dynamically
-bound even when @code{lexical-binding} is @code{t}.  @xref{defvar, ,
+(The @code{defvar} declaration above is said to make the variable
+``special'', which causes it to obey the dynamic binding rules instead of
+the default lexical binding rules.  @xref{defvar, ,
 Initializing a Variable with @code{defvar}}.)
 
 @node if
@@ -9229,7 +9219,7 @@ defvar
 The @code{defvar} special form is similar to @code{setq} in that it
 sets the value of a variable.  It is unlike @code{setq} in three ways:
 first, it marks the variable as ``special'' so that it is always
-dynamically bound, even when @code{lexical-binding} is @code{t}
+dynamically bound
 (@pxref{How let Binds Variables}).  Second, it only sets the value of
 the variable if the variable does not already have a value.  If the
 variable already has a value, @code{defvar} does not override the
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi
index 03fae67e528..fe617550b09 100644
--- a/doc/lispref/edebug.texi
+++ b/doc/lispref/edebug.texi
@@ -722,13 +722,6 @@ Edebug Eval
 pretty-printed in a separate buffer.
 @end table
 
-@cindex lexical binding (Edebug)
-  Edebug supports evaluation of expressions containing references to
-lexically bound symbols created by the following constructs in
-@file{cl.el}: @code{lexical-let}, @code{macrolet}, and
-@code{symbol-macrolet}.
-@c FIXME?  What about lexical-binding = t?
-
 @node Eval List
 @subsection Evaluation List Buffer
 
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi
index 14eabb3558f..2b1b79a7f4f 100644
--- a/doc/lispref/tips.texi
+++ b/doc/lispref/tips.texi
@@ -96,7 +96,7 @@ Coding Conventions
 alternative common prefixes, so long as they make sense.
 
 @item
-We recommend enabling @code{lexical-binding} in new code, and
+We recommend not disabling @code{lexical-binding} in new code, and
 converting existing Emacs Lisp code to enable @code{lexical-binding}
 if it doesn't already.  @xref{Selecting Lisp Dialect}.
 
@@ -1082,7 +1082,9 @@ Library Headers
 @end example
 
 @noindent
-The description should be contained in one line.  If the file needs to
+The description should be contained in one line.
+The @code{lexical-binding} is not necessary if you do not care about
+compatibility with Emacs<31.  If the file needs to
 set more variables in the @samp{-*-} specification, add it after
 @code{lexical-binding}.  If this would make the first line too long, use
 a Local Variables section at the end of the file.
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index af11e498d86..d4b179003e3 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -285,7 +285,7 @@ Local Variables
 @defspec letrec (bindings@dots{}) forms@dots{}
 This special form is like @code{let*}, but all the variables are bound
 before any of the local values are computed.  The values are then
-assigned to the locally bound variables.  This is only useful when
+assigned to the locally bound variables.  This is useful only when
 lexical binding is in effect, and you want to create closures that
 refer to bindings that would otherwise not yet be in effect when using
 @code{let*}.
@@ -351,7 +351,7 @@ Local Variables
 done so that the value returned by the call is the value of @var{body}
 itself, as is the case in the recursive call to @code{sum} above.
 
-@code{named-let} can only be used when lexical-binding is enabled.
+@code{named-let} can be used only when lexical-binding is enabled.
 @xref{Lexical Binding}.
 @end defspec
 
@@ -383,7 +383,7 @@ Void Variables
   We say that a variable is void if its symbol has an unassigned value
 cell (@pxref{Symbol Components}).
 
-  Under Emacs Lisp's default dynamic scoping rule (@pxref{Variable
+  Under Emacs Lisp's dynamic scoping rule (@pxref{Variable
 Scoping}), the value cell stores the variable's current (local or
 global) value.  Note that an unassigned value cell is @emph{not} the
 same as having @code{nil} in the value cell.  The symbol @code{nil} is
@@ -392,7 +392,7 @@ Void Variables
 to evaluate the variable signals a @code{void-variable} error, instead
 of returning a value.
 
-  Under the optional lexical scoping rule, the value cell only holds
+  Under the lexical scoping rule, the value cell holds only
 the variable's global value---the value outside of any lexical binding
 construct.  When a variable is lexically bound, the local value is
 determined by the lexical environment; hence, variables can have local
@@ -514,7 +514,7 @@ Defining Variables
 
 Note that specifying a value, even @code{nil}, marks the variable as
 special permanently.  Whereas if @var{value} is omitted then the
-variable is only marked special locally (i.e.@: within the current
+variable is marked special only locally (i.e.@: within the current
 lexical scope, or file if at the top-level).  This can be useful for
 suppressing byte compilation warnings, see @ref{Compiler Errors}.
 
@@ -706,8 +706,8 @@ Accessing Variables
   The usual way to reference a variable is to write the symbol which
 names it.  @xref{Symbol Forms}.
 
-  Occasionally, you may want to reference a variable which is only
-determined at run time.  In that case, you cannot specify the variable
+  Occasionally, you may want to reference a variable which is determined
+only at run time.  In that case, you cannot specify the variable
 name in the text of the program.  You can use the @code{symbol-value}
 function to extract the value.
 
@@ -1003,14 +1003,15 @@ Variable Scoping
 while the binding construct (such as the body of a @code{let} form) is
 being executed.
 
-  The old dynamic-only Emacs Lisp dialect is still the default in code
+  The new lexically scoped Emacs Lisp dialect is now the default in code
 loaded or evaluated from Lisp files that lack a dialect declaration.
-Eventually the modern dialect will be made the default.
-All Lisp files should declare the dialect used to ensure that they
-keep working correctly in the future.
+Lisp files which still need the old dynamically scoped dialect need to declare
+it explicitly to ensure that they keep working correctly, and should
+eventually be converted to use the new dialect to
+ensure that they keep working correctly in the future.
 
   The following subsections describe lexical binding and dynamic
-binding in greater detail, and how to enable lexical binding in Emacs
+binding in greater detail, and how to disable lexical binding in Emacs
 Lisp programs.
 
 @menu
@@ -1319,8 +1320,8 @@ Selecting Lisp Dialect
 
 @noindent
 for the old dynamic-only dialect.  When no declaration is present the
-old dialect is used, but this may change in a future release.
-The compiler will warn if no declaration is present.
+new dialect is used.  Support for the old dialect may be removed in
+a future release.
 
 When evaluating Emacs Lisp code directly using an @code{eval} call,
 lexical binding is enabled if the @var{lexical} argument to
@@ -1980,8 +1981,8 @@ File Local Variables
 
 @defvar permanently-enabled-local-variables
 Some local variable settings will, by default, be heeded even if
-@code{enable-local-variables} is @code{nil}.  By default, this is only
-the case for the @code{lexical-binding} local variable setting, but
+@code{enable-local-variables} is @code{nil}.  By default, this is the
+case only for the @code{lexical-binding} local variable setting, but
 this can be controlled by using this variable, which is a list of
 symbols.
 @end defvar
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index 113029700ec..395725944f0 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -4758,12 +4758,13 @@ Porting Common Lisp
 @item
 Lexical scoping.  In Common Lisp, function arguments and @code{let}
 bindings apply only to references physically within their bodies (or
-within macro expansions in their bodies).  Traditionally, Emacs Lisp
-uses @dfn{dynamic scoping} wherein a binding to a variable is visible
+within macro expansions in their bodies).  The is also the case in
+modern Emacs Lisp, but historically, Emacs Lisp
+used @dfn{dynamic scoping} wherein a binding to a variable is visible
 even inside functions called from the body.
 @xref{Dynamic Binding,,,elisp,GNU Emacs Lisp Reference Manual}.
-Lexical binding is available since Emacs 24.1, so be sure to set
-@code{lexical-binding} to @code{t} if you need to emulate this aspect
+Lexical binding is available since Emacs 24.1, but be sure not to set
+@code{lexical-binding} to @code{nil} if you need to emulate this aspect
 of Common Lisp.  @xref{Lexical Binding,,,elisp,GNU Emacs Lisp Reference Manual}.
 
 Here is an example of a Common Lisp code fragment that would fail in
diff --git a/etc/NEWS b/etc/NEWS
index d1c7303f976..5a480c5f68a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -636,6 +636,12 @@ the directory into which the repository was cloned.
 
 * Incompatible Lisp Changes in Emacs 31.1
 
++++
+** 'lexical-binding' now defaults to t.
+The default ELisp dialect is now the lexically scoped dialect.
+Any code which has not yet been adapted should either be
+adapted or set 'lexical-binding' to nil explicitly.
+
 ** Nested backquotes are not supported any more in Pcase patterns.
 
 ** The 'rx' category name 'chinese-two-byte' must now be spelled correctly.
diff --git a/lisp/loadup.el b/lisp/loadup.el
index bd74a9d6aff..e676c338c14 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -654,9 +654,9 @@ comp-subr-arities-h
           (unwind-protect
               (let ((tmp-dump-mode dump-mode)
                     (dump-mode nil)
-                    ;; Set `lexical-binding' to nil by default
+                    ;; Set `lexical-binding' to its default value
                     ;; in the dumped Emacs.
-                    (lexical-binding nil))
+                    (lexical-binding (default-toplevel-value 'lexical-binding)))
                 (if (member tmp-dump-mode '("pdump" "pbootstrap"))
                     (dump-emacs-portable (expand-file-name output invocation-directory))
                   (dump-emacs output (if (eq system-type 'ms-dos)
diff --git a/src/lread.c b/src/lread.c
index ea0398196e3..9f56880e551 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1522,7 +1522,7 @@ DEFUN ("load", Fload, Sload, 1, 5, 0,
      otherwise using a file-variable in the first line.  This is bound here
      so that it takes effect whether or not we use
      Vload_source_file_function.  */
-  specbind (Qlexical_binding, Qnil);
+  specbind (Qlexical_binding, Fdefault_toplevel_value (Qlexical_binding));
 
   Lisp_Object found_eff =
     is_native_elisp
@@ -1720,8 +1720,11 @@ DEFUN ("load", Fload, Sload, 1, 5, 0,
     }
   else
     {
-      if (lisp_file_lexical_cookie (Qget_file_char) == Cookie_Lex)
+      lexical_cookie_t lexc = lisp_file_lexical_cookie (Qget_file_char);
+      if (lexc == Cookie_Lex)
         Fset (Qlexical_binding, Qt);
+      else if (lexc == Cookie_Dyn)
+        Fset (Qlexical_binding, Qnil);
 
       if (! version || version >= 22)
         readevalloop (Qget_file_char, &input, hist_file_name,
@@ -2606,8 +2609,11 @@ DEFUN ("eval-buffer", Feval_buffer, Seval_buffer, 0, 5, "",
   specbind (Qstandard_output, tem);
   record_unwind_protect_excursion ();
   BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf)));
+  lexical_cookie_t lexc = lisp_file_lexical_cookie (buf);
   specbind (Qlexical_binding,
-	    lisp_file_lexical_cookie (buf) == Cookie_Lex ? Qt : Qnil);
+	    lexc == Cookie_Lex ? Qt
+	    : lexc == Cookie_Dyn ? Qnil
+	    : Fdefault_toplevel_value (Qlexical_binding));
   BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf)));
   readevalloop (buf, 0, filename,
 		!NILP (printflag), unibyte, Qnil, Qnil, Qnil);
@@ -6056,7 +6062,7 @@ syms_of_lread (void)
 This variable is automatically set from the file variables of an
 interpreted Lisp file read using `load'.  Unlike other file local
 variables, this must be set in the first line of a file.  */);
-  Vlexical_binding = Qnil;
+  Vlexical_binding = Qt;
   Fmake_variable_buffer_local (Qlexical_binding);
 
   DEFVAR_LISP ("eval-buffer-list", Veval_buffer_list,
-- 
2.39.5


--=-=-=--





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

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


Received: (at 74145) by debbugs.gnu.org; 1 Nov 2024 02:06:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 31 22:06:52 2024
Received: from localhost ([127.0.0.1]:45888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t6h3r-00033x-TO
	for submit <at> debbugs.gnu.org; Thu, 31 Oct 2024 22:06:52 -0400
Received: from mail-ed1-f41.google.com ([209.85.208.41]:46498)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1t6h3p-00033p-39
 for 74145 <at> debbugs.gnu.org; Thu, 31 Oct 2024 22:06:50 -0400
Received: by mail-ed1-f41.google.com with SMTP id
 4fb4d7f45d1cf-5c948c41edeso1848897a12.1
 for <74145 <at> debbugs.gnu.org>; Thu, 31 Oct 2024 19:06:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1730426743; x=1731031543; 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=5KXtZm1qb+elzo+v9RtHzdRGOzDMSotGvK7E9ZEv6II=;
 b=PMqehIRbTDr9mGFFrLZakxmzG2yGE+G+3T2qJZE0YttuplBUkUbTSucecS5PVJq5+R
 kR9LGzkbLvFOYKU/JX/AtXx8AXmbBrjtl+2hQJCze8C/Rw99QCoNhShR7PWG4fyQBbJa
 MEEebi3GVgxe8Jgl7i7vvVNgKT6Kkqj2WVL0EJNaJytehTFN6t/kWrgyNJoSIi0jgRS7
 qmfdRAPYMnrhecRJfZ6aSJu2tHhdAc0ggax+CJ65LBN+tsaRyttDo3Bf5yj1pkiLxeTO
 RlhiKKNeuL95jXv2VqwzolgAlaTHYA6X78yAR+jJPp11zsyNHzIGg5OVTAR16gUN+i9P
 lCUQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1730426743; x=1731031543;
 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=5KXtZm1qb+elzo+v9RtHzdRGOzDMSotGvK7E9ZEv6II=;
 b=fDywhsk7f+4eBctW4tB+dySC0Becl/Q6baX2CU3UYbIVjfpAwxRwXNM+ebRvNIfvyl
 oq2JRaUdkFODkSZbaWo3+Bl72jZRNsyMJqzH2fqaCcqcjKMLy7sFYMZlNWnKaHnHuEF0
 MxKiwwZvXb/zytEaS13dCO7LeyEEPm/B0YfPcqU9KHIu8yayh5w6JXpT0lA41O/Igyyt
 r38nskq6zXrJlWgW9zpZOpwcLeRbF0Q3/l/t01qpxtSpb/MIKfha4/V3Q0pSp4frkYI5
 Af1vkWYaYhF81zuhicBwu0b5RgmEvI2NEpZjXSGDIl0pL7vHElEgeemB2xoPZaCS7lt3
 b7Yw==
X-Gm-Message-State: AOJu0YyjKpbpe1qybBba3wnJ39D856A130Xk8mjwWQQ1GEQYUL4CoT3B
 Z/7HGKwV4YfmmTrES1+IU0GrW2FrfJlR1nB9iT2zFqXAk1IuaSrbPR7OSE9hicr3p+E+g7F56Be
 j/yFm0/KAT3IltXY926dPpw4BZEo=
X-Google-Smtp-Source: AGHT+IFgnSaUyB7eDVCWLee8quK8z/hXbXtU6KKVikt7uvah4k8vu+s1Hxs03h146Sm5Br04e9VapJ+4KxZc5Zimi+8=
X-Received: by 2002:a17:907:7dac:b0:a9a:81a3:59bf with SMTP id
 a640c23a62f3a-a9e5093f631mr429019666b.35.1730426743247; Thu, 31 Oct 2024
 19:05:43 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Thu, 31 Oct 2024 19:05:42 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <jwvbjyzhi0l.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <CADwFkmnT5OO2cbtgTg_W+KWPUrH9MTF+mOoRQOPJU5LDEJXarA@HIDDEN>
 <jwvbjyzhi0l.fsf-monnier+emacs@HIDDEN>
MIME-Version: 1.0
Date: Thu, 31 Oct 2024 19:05:42 -0700
Message-ID: <CADwFkmmDXOZ7P_u=UYq=1GKQMGi6jb+PNcR1Obfv15wsSFMJZA@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74145
Cc: Eli Zaretskii <eliz@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>,
 74145 <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:

>> I think this section might need more work.  It's a bit confusing to talk
>> about "default dynamic scoping" and "optional lexical scoping" now.
>> Shouldn't we talk about "normal variables with lexical scoping" and
>> "special variables with dynamic scoping" or something along those lines?
>
> Very good point, will take a closer look.

Great, thanks.

Meanwhile, here's two more things I thought of:

- I think there's some text in doc/lispref/tips.texi that will need
  updating too.

- Should we provide any advice somewhere for Emacs Lisp authors that
  want to support Emacs 30 or older?  For example, they will want to
  keep the lexical-binding:t cookie.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74145; 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 74145 <at> debbugs.gnu.org:


Received: (at 74145) by debbugs.gnu.org; 1 Nov 2024 01:20:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 31 21:20:57 2024
Received: from localhost ([127.0.0.1]:45575 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t6gLQ-0001Z9-OI
	for submit <at> debbugs.gnu.org; Thu, 31 Oct 2024 21:20:57 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:59541)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1t6gLL-0001Yi-7p
 for 74145 <at> debbugs.gnu.org; Thu, 31 Oct 2024 21:20:52 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4F15E4444BA;
 Thu, 31 Oct 2024 21:20:44 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1730424043;
 bh=vjqR5154sYxCw9PXa2/3jFKT/zIpTGvU7hMbOMENiqI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=jxYbZHjxGNAEq+26LMXQm3S63UU+szSPTQCGBOHeqNvQ95t+4sABeitMj+CRVfFL1
 0I5nBRxdNAxJugtagl48jV7nspXggQSXy30SYVTTvAzIu+oeYhk4zxDrOZT0j/b8pY
 NxTT9MKvB104ng1O3tthmN6q5FpvRA4KLtYOp/e+gAXZHCDoI3bMpsOQtzBbLUjxdw
 2u55GONWuXsUhhXXI5oUDWEgY5j/wNeI6ew1/4fuMQyh1jKMzdzjFRu5UISReFQR+1
 4iuwS08OO9/c5Nb2ERG61ZI6Iym4mEBMJtvVdEm5cPtYbME3U31IHoEM/T1v+MHp6v
 ZgRW9bTBmT3/A==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2150F4444AD;
 Thu, 31 Oct 2024 21:20:43 -0400 (EDT)
Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DDBBF120243;
 Thu, 31 Oct 2024 21:20:42 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
In-Reply-To: <CADwFkmnT5OO2cbtgTg_W+KWPUrH9MTF+mOoRQOPJU5LDEJXarA@HIDDEN>
 (Stefan Kangas's message of "Thu, 31 Oct 2024 16:31:49 -0700")
Message-ID: <jwvbjyzhi0l.fsf-monnier+emacs@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
 <CADwFkmnT5OO2cbtgTg_W+KWPUrH9MTF+mOoRQOPJU5LDEJXarA@HIDDEN>
Date: Thu, 31 Oct 2024 21:20:41 -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.037 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: 74145
Cc: Eli Zaretskii <eliz@HIDDEN>, Andrea Corallo <acorallo@HIDDEN>,
 74145 <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 (---)

Hi Stefan,

>> @@ -392,7 +392,7 @@ Void Variables
>>  to evaluate the variable signals a @code{void-variable} error, instead
>>  of returning a value.
>>
>> -  Under the optional lexical scoping rule, the value cell only holds
>> +  Under the optional lexical scoping rule, the value cell holds only
>>  the variable's global value---the value outside of any lexical binding
>>  construct.  When a variable is lexically bound, the local value is
>>  determined by the lexical environment; hence, variables can have local
>
> I think this section might need more work.  It's a bit confusing to talk
> about "default dynamic scoping" and "optional lexical scoping" now.
> Shouldn't we talk about "normal variables with lexical scoping" and
> "special variables with dynamic scoping" or something along those lines?

Very good point, will take a closer look.

>> +                    (lexical-binding (default-toplevel-value 'lexical-binding)))
> Why not just use `t` here instead of its `default-toplevel-value`?

I "fixed" the code such that the default is set at exactly one place,
i.e. in `syms_of_lread`, but indeed it's not indispensable.

It's not super important, but it seemed cleaner.
It also makes it easy for users to "go back" to the nil default,
e.g. for testing purposes, or as a quick fix until you can track down
the `.el` files that need to be adjusted.


        Stefan





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

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


Received: (at 74145) by debbugs.gnu.org; 31 Oct 2024 23:33:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 31 19:33:00 2024
Received: from localhost ([127.0.0.1]:45020 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t6eey-0006et-51
	for submit <at> debbugs.gnu.org; Thu, 31 Oct 2024 19:33:00 -0400
Received: from mail-ed1-f48.google.com ([209.85.208.48]:47376)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1t6eew-0006el-Di
 for 74145 <at> debbugs.gnu.org; Thu, 31 Oct 2024 19:32:59 -0400
Received: by mail-ed1-f48.google.com with SMTP id
 4fb4d7f45d1cf-5cebcf96fabso53542a12.3
 for <74145 <at> debbugs.gnu.org>; Thu, 31 Oct 2024 16:32:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1730417511; x=1731022311; 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=gHZz0WrfstlA3FYHhiB8BCwIzSQ2dRxkmEI7N4iDUFU=;
 b=fwfv92qeUoamfNUuSGtjvGgqYmy4dJRMWI7LrqbKaYVYszr7ZRg1cq8Ql1ehkfFNNG
 zP5qL5bPLEkHYu8NqDK/ZJoiEKwQP1qlR3Cr3femHGeHUdJrXjpnCrbZrdsxy4pGDl8p
 T+Kfs+uZc+HNdePGTz3DuNEATsLGAwqI5muHXax/54+HufStA0kylc4Pzt3IyVGFuJeQ
 ep8NThgmr9RcGPFyiJfpOzXCTFPB0EqkRfNY2Dm+yzaMr4xKGuTYtjC9H2/SjiswvixO
 52KRa3DpJCFmoGTr7znAQbLJ3nvgubw4dGOEfaQLBnsCBmPKVY1HSl1AJKXqTXlnMjDQ
 Bk+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1730417511; x=1731022311;
 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=gHZz0WrfstlA3FYHhiB8BCwIzSQ2dRxkmEI7N4iDUFU=;
 b=XlKKnmtLS+sCt87JwbUHCi+WnvaaGCGosDc2dafQAoh3H1ZeR7uk/3NSlHhexzRjuZ
 Rzi5HxgdkTBTCZUlnQwmX+oVHY+ppyby9tveuV3caab0UktRVmJXI3uRjtyPUyo/mhi5
 LTUb3LiBOTnTUo82yIFFdbypxyt87alqMDGfcLnlSsEXJaB6Q/wTwFwVS2kN8XStAZxm
 gj5VdW66ZSZxGoD26uyLf6undx8+rzFGho05K6zElHKsEgGyJrNLXs8Ogsldqc9rIf6V
 f0ChOSK7v0vTYU0YptaRrHolHUOFz3mZOkW+UIMe2BG2qGlpMYVrQ5jMbwt2GCWF4din
 4HcA==
X-Gm-Message-State: AOJu0YwoLmJ9ohGCHSAW9UYZxj+OtGuNWj4o0B6mJwrCpviI2QrPUExj
 pxtB6pb5x2c1qZnIybyW5uVXVYXU5nGtHiXm5OYeVO6QmOgq9zGbsnT2qno3dtgS2u2wmWO7PDB
 kOiaq4nQT4GtD9hyGtIwce1xvUsIAqQ==
X-Google-Smtp-Source: AGHT+IGCPeVTUUZMyO7L1IlVh5IRo4Ly852wXoY+b3+UGOqS82k2EME0L6KlMrSJctUSUKlQtx1A7o2DC57qfgIn9cc=
X-Received: by 2002:a05:6402:2105:b0:5c9:5ac1:df6c with SMTP id
 4fb4d7f45d1cf-5cea9732262mr4368916a12.33.1730417509658; Thu, 31 Oct 2024
 16:31:49 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Thu, 31 Oct 2024 16:31:49 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <jwv4j4sat2i.fsf@HIDDEN>
References: <jwv4j4sat2i.fsf@HIDDEN>
MIME-Version: 1.0
Date: Thu, 31 Oct 2024 16:31:49 -0700
Message-ID: <CADwFkmnT5OO2cbtgTg_W+KWPUrH9MTF+mOoRQOPJU5LDEJXarA@HIDDEN>
Subject: Re: bug#74145: 31.0.50; Default lexical-binding to t
To: 74145 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74145
Cc: Eli Zaretskii <eliz@HIDDEN>, Andrea Corallo <acorallo@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: -1.0 (-)

Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@HIDDEN> writes:

> I believe the time has come to change the default dialect.
> I attached a suggested patch to do that.

Sounds good to me.  Legacy code can still run with a lexical-binding:nil
cookie, so I think we're good in the backwards-compatibility department.
Andrea and Eli?

Some minor comments and questions on your patch below.

> @@ -392,7 +392,7 @@ Void Variables
>  to evaluate the variable signals a @code{void-variable} error, instead
>  of returning a value.
>
> -  Under the optional lexical scoping rule, the value cell only holds
> +  Under the optional lexical scoping rule, the value cell holds only
>  the variable's global value---the value outside of any lexical binding
>  construct.  When a variable is lexically bound, the local value is
>  determined by the lexical environment; hence, variables can have local

I think this section might need more work.  It's a bit confusing to talk
about "default dynamic scoping" and "optional lexical scoping" now.
Shouldn't we talk about "normal variables with lexical scoping" and
"special variables with dynamic scoping" or something along those lines?

> diff --git a/lisp/loadup.el b/lisp/loadup.el
> index bd74a9d6aff..e676c338c14 100644
> --- a/lisp/loadup.el
> +++ b/lisp/loadup.el
> @@ -654,9 +654,9 @@ comp-subr-arities-h
>            (unwind-protect
>                (let ((tmp-dump-mode dump-mode)
>                      (dump-mode nil)
> -                    ;; Set `lexical-binding' to nil by default
> +                    ;; Set `lexical-binding' to its default value
>                      ;; in the dumped Emacs.
> -                    (lexical-binding nil))
> +                    (lexical-binding (default-toplevel-value 'lexical-binding)))
>                  (if (member tmp-dump-mode '("pdump" "pbootstrap"))
>                      (dump-emacs-portable (expand-file-name output invocation-directory))
>                    (dump-emacs output (if (eq system-type 'ms-dos)

Why not just use `t` here instead of its `default-toplevel-value`?

> diff --git a/src/lread.c b/src/lread.c
> index ea0398196e3..9f56880e551 100644
> --- a/src/lread.c
> +++ b/src/lread.c
> @@ -1522,7 +1522,7 @@ DEFUN ("load", Fload, Sload, 1, 5, 0,
>       otherwise using a file-variable in the first line.  This is bound here
>       so that it takes effect whether or not we use
>       Vload_source_file_function.  */
> -  specbind (Qlexical_binding, Qnil);
> +  specbind (Qlexical_binding, Fdefault_toplevel_value (Qlexical_binding));
>
>    Lisp_Object found_eff =
>      is_native_elisp

And here?

> @@ -2606,8 +2609,11 @@ DEFUN ("eval-buffer", Feval_buffer, Seval_buffer, 0, 5, "",
>    specbind (Qstandard_output, tem);
>    record_unwind_protect_excursion ();
>    BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf)));
> +  lexical_cookie_t lexc = lisp_file_lexical_cookie (buf);
>    specbind (Qlexical_binding,
> -	    lisp_file_lexical_cookie (buf) == Cookie_Lex ? Qt : Qnil);
> +	    lexc == Cookie_Lex ? Qt
> +	    : lexc == Cookie_Dyn ? Qnil
> +	    : Fdefault_toplevel_value (Qlexical_binding));
>    BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf)));
>    readevalloop (buf, 0, filename,
>  		!NILP (printflag), unibyte, Qnil, Qnil, Qnil);

And here?




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

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


Received: (at submit) by debbugs.gnu.org; 31 Oct 2024 20:58:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 31 16:58:33 2024
Received: from localhost ([127.0.0.1]:44279 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t6cFU-000055-RT
	for submit <at> debbugs.gnu.org; Thu, 31 Oct 2024 16:58:33 -0400
Received: from lists.gnu.org ([209.51.188.17]:43434)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1t6cFR-00004y-A2
 for submit <at> debbugs.gnu.org; Thu, 31 Oct 2024 16:58:31 -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 <monnier@HIDDEN>)
 id 1t6cFR-0002fF-55
 for bug-gnu-emacs@HIDDEN; Thu, 31 Oct 2024 16:58:29 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <monnier@HIDDEN>)
 id 1t6cFI-0004RY-R0
 for bug-gnu-emacs@HIDDEN; Thu, 31 Oct 2024 16:58:28 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B55DF442D4B
 for <bug-gnu-emacs@HIDDEN>; Thu, 31 Oct 2024 16:58:17 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1730408290;
 bh=9wVbgfa2YZt+m+ub49847lhDxBpFkGa8bv6V2DxD1cU=;
 h=From:To:Subject:Date:From;
 b=nzAj5+B3PhvGNm+CQHHqpeW9Xpx8kkccgs/ciYqxY+VhnnPKKrgdQUOyQQatIpoRM
 uwS0b6W2XDr+zA+sO4vGtgBcW+NZ1p3BlzsFYKo7JnXhnNYJ0Con2TDBFGymYiMnZK
 zyoYaS34M7ajwJxIEOYiyE3bTT3f5OrunqgFBrD+qj/gTQ7cdYq8tkKu23hG2/VAuX
 IPn/jF81aZkk65TsmkZM/CixoAWVWN1VwLimVuUTv07Afe8JivXtqjjMibpyV0BGxY
 bkNbDe3Ff4UdK1qFdfyozZQH1ynjixHw3kBTD0R2dTJW9rtnx/ObBHR0GE3r4c8Ggl
 tYBqsxxs+2Uiw==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7447744295B
 for <bug-gnu-emacs@HIDDEN>; Thu, 31 Oct 2024 16:58:10 -0400 (EDT)
Received: from pastel (unknown [104.195.225.43])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 518DA1201CF
 for <bug-gnu-emacs@HIDDEN>; Thu, 31 Oct 2024 16:58:10 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; Default lexical-binding to t
X-Debbugs-Cc: monnier@HIDDEN
Date: Thu, 31 Oct 2024 16:57:57 -0400
Message-ID: <jwv4j4sat2i.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.039 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: 
Received-SPF: pass client-ip=132.204.25.50;
 envelope-from=monnier@HIDDEN; helo=mailscanner.iro.umontreal.ca
X-Spam_score_int: -42
X-Spam_score: -4.3
X-Spam_bar: ----
X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
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: -2.3 (--)

--=-=-=
Content-Type: text/plain

Package: Emacs
Version: 31.0.50


I believe the time has come to change the default dialect.
I attached a suggested patch to do that.


        Stefan

--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-Change-the-default-value-of-lexical-binding.patch

From 973939b9dd79735f051c99f1a20d74aabad931ff Mon Sep 17 00:00:00 2001
From: Stefan Monnier <monnier@HIDDEN>
Date: Thu, 31 Oct 2024 16:00:10 -0400
Subject: [PATCH] Change the default value of `lexical-binding`

* src/lread.c (syms_of_lread): Set `Vlexical_binding` to Qt.
(Fload, Feval_buffer): Don't assume the default value of
`lexical-binding` is nil.
* lisp/loadup.el: Don't assume the default value of `lexical-binding`
is nil.

* doc/misc/cl.texi (Porting Common Lisp):
* doc/lispref/variables.texi (Variable Scoping)
(Selecting Lisp Dialect): Adjust to new default of `lexical-binding`.

* doc/lispref/edebug.texi (Edebug Eval): Remove out of date paragraph.

* doc/lispintro/emacs-lisp-intro.texi (How let Binds Variables)
(Lexical vs. Dynamic Binding Example, defvar): Only consider the
lexical dialect of ELisp.
---
 doc/lispintro/emacs-lisp-intro.texi | 26 ++++++++----------------
 doc/lispref/edebug.texi             |  7 -------
 doc/lispref/variables.texi          | 31 +++++++++++++++--------------
 doc/misc/cl.texi                    |  9 +++++----
 etc/NEWS                            |  6 ++++++
 lisp/loadup.el                      |  4 ++--
 src/lread.c                         | 14 +++++++++----
 7 files changed, 47 insertions(+), 50 deletions(-)

diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index 49916235fbf..6cc7a5b3cf2 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -3754,21 +3754,12 @@ How let Binds Variables
 
 Emacs Lisp supports two different ways of binding variable names to
 their values.  These ways affect the parts of your program where a
-particular binding is valid.  For historical reasons, Emacs Lisp uses
-a form of variable binding called @dfn{dynamic binding} by default.
-However, in this manual we discuss the preferred form of binding,
-called @dfn{lexical binding}, unless otherwise noted (in the future,
-the Emacs maintainers plan to change the default to lexical binding).
+particular binding is valid.
+In this manual we discuss the preferred form of binding,
+called @dfn{lexical binding}, unless otherwise noted.
 If you have programmed in other languages before, you're likely
 already familiar with how lexical binding behaves.
 
-In order to use lexical binding in a program, you should add this to
-the first line of your Emacs Lisp file:
-
-@example
-;;; -*- lexical-binding: t -*-
-@end example
-
 For more information about this, @pxref{Variable Scoping, , ,
 elisp, The Emacs Lisp Reference Manual}.
 
@@ -3818,8 +3809,6 @@ Lexical vs. Dynamic Binding Example
 For example, see what happens in this code under lexical binding:
 
 @example
-;;; -*- lexical-binding: t -*-
-
 (setq x 0)
 
 (defun getx ()
@@ -3845,7 +3834,7 @@ Lexical vs. Dynamic Binding Example
 If we use dynamic binding instead, the behavior is different:
 
 @example
-;;; -*- lexical-binding: nil -*-
+(defvar x) ;; Use dynamic binding for 'x'.
 
 (setq x 0)
 
@@ -3867,8 +3856,9 @@ Lexical vs. Dynamic Binding Example
 @code{x}, since its binding is below the one from our @code{let}
 expression in the stack of bindings.
 
-(Some variables are also ``special'', and they are always dynamically
-bound even when @code{lexical-binding} is @code{t}.  @xref{defvar, ,
+(The @code{defvar} declaration above is said to make the variable
+``special'', which causes it to obey the dynamic binding rules instead of
+the default lexical binding rules.  @xref{defvar, ,
 Initializing a Variable with @code{defvar}}.)
 
 @node if
@@ -9229,7 +9219,7 @@ defvar
 The @code{defvar} special form is similar to @code{setq} in that it
 sets the value of a variable.  It is unlike @code{setq} in three ways:
 first, it marks the variable as ``special'' so that it is always
-dynamically bound, even when @code{lexical-binding} is @code{t}
+dynamically bound
 (@pxref{How let Binds Variables}).  Second, it only sets the value of
 the variable if the variable does not already have a value.  If the
 variable already has a value, @code{defvar} does not override the
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi
index 03fae67e528..fe617550b09 100644
--- a/doc/lispref/edebug.texi
+++ b/doc/lispref/edebug.texi
@@ -722,13 +722,6 @@ Edebug Eval
 pretty-printed in a separate buffer.
 @end table
 
-@cindex lexical binding (Edebug)
-  Edebug supports evaluation of expressions containing references to
-lexically bound symbols created by the following constructs in
-@file{cl.el}: @code{lexical-let}, @code{macrolet}, and
-@code{symbol-macrolet}.
-@c FIXME?  What about lexical-binding = t?
-
 @node Eval List
 @subsection Evaluation List Buffer
 
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index af11e498d86..fa5f792b40f 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -285,7 +285,7 @@ Local Variables
 @defspec letrec (bindings@dots{}) forms@dots{}
 This special form is like @code{let*}, but all the variables are bound
 before any of the local values are computed.  The values are then
-assigned to the locally bound variables.  This is only useful when
+assigned to the locally bound variables.  This is useful only when
 lexical binding is in effect, and you want to create closures that
 refer to bindings that would otherwise not yet be in effect when using
 @code{let*}.
@@ -351,7 +351,7 @@ Local Variables
 done so that the value returned by the call is the value of @var{body}
 itself, as is the case in the recursive call to @code{sum} above.
 
-@code{named-let} can only be used when lexical-binding is enabled.
+@code{named-let} can be used only when lexical-binding is enabled.
 @xref{Lexical Binding}.
 @end defspec
 
@@ -392,7 +392,7 @@ Void Variables
 to evaluate the variable signals a @code{void-variable} error, instead
 of returning a value.
 
-  Under the optional lexical scoping rule, the value cell only holds
+  Under the optional lexical scoping rule, the value cell holds only
 the variable's global value---the value outside of any lexical binding
 construct.  When a variable is lexically bound, the local value is
 determined by the lexical environment; hence, variables can have local
@@ -514,7 +514,7 @@ Defining Variables
 
 Note that specifying a value, even @code{nil}, marks the variable as
 special permanently.  Whereas if @var{value} is omitted then the
-variable is only marked special locally (i.e.@: within the current
+variable is marked special only locally (i.e.@: within the current
 lexical scope, or file if at the top-level).  This can be useful for
 suppressing byte compilation warnings, see @ref{Compiler Errors}.
 
@@ -706,8 +706,8 @@ Accessing Variables
   The usual way to reference a variable is to write the symbol which
 names it.  @xref{Symbol Forms}.
 
-  Occasionally, you may want to reference a variable which is only
-determined at run time.  In that case, you cannot specify the variable
+  Occasionally, you may want to reference a variable which is determined
+only at run time.  In that case, you cannot specify the variable
 name in the text of the program.  You can use the @code{symbol-value}
 function to extract the value.
 
@@ -1003,14 +1003,15 @@ Variable Scoping
 while the binding construct (such as the body of a @code{let} form) is
 being executed.
 
-  The old dynamic-only Emacs Lisp dialect is still the default in code
+  The new lexically scoped Emacs Lisp dialect is now the default in code
 loaded or evaluated from Lisp files that lack a dialect declaration.
-Eventually the modern dialect will be made the default.
-All Lisp files should declare the dialect used to ensure that they
-keep working correctly in the future.
+Lisp files which still need the old dynamically scoped dialect need to declare
+it explicitly to ensure that they keep working correctly, and should
+eventually be converted to use the new dialect to
+ensure that they keep working correctly in the future.
 
   The following subsections describe lexical binding and dynamic
-binding in greater detail, and how to enable lexical binding in Emacs
+binding in greater detail, and how to disable lexical binding in Emacs
 Lisp programs.
 
 @menu
@@ -1319,8 +1320,8 @@ Selecting Lisp Dialect
 
 @noindent
 for the old dynamic-only dialect.  When no declaration is present the
-old dialect is used, but this may change in a future release.
-The compiler will warn if no declaration is present.
+new dialect is used.  Support for the old dialect may be removed in
+a future release.
 
 When evaluating Emacs Lisp code directly using an @code{eval} call,
 lexical binding is enabled if the @var{lexical} argument to
@@ -1980,8 +1981,8 @@ File Local Variables
 
 @defvar permanently-enabled-local-variables
 Some local variable settings will, by default, be heeded even if
-@code{enable-local-variables} is @code{nil}.  By default, this is only
-the case for the @code{lexical-binding} local variable setting, but
+@code{enable-local-variables} is @code{nil}.  By default, this is the
+case only for the @code{lexical-binding} local variable setting, but
 this can be controlled by using this variable, which is a list of
 symbols.
 @end defvar
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index 113029700ec..395725944f0 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -4758,12 +4758,13 @@ Porting Common Lisp
 @item
 Lexical scoping.  In Common Lisp, function arguments and @code{let}
 bindings apply only to references physically within their bodies (or
-within macro expansions in their bodies).  Traditionally, Emacs Lisp
-uses @dfn{dynamic scoping} wherein a binding to a variable is visible
+within macro expansions in their bodies).  The is also the case in
+modern Emacs Lisp, but historically, Emacs Lisp
+used @dfn{dynamic scoping} wherein a binding to a variable is visible
 even inside functions called from the body.
 @xref{Dynamic Binding,,,elisp,GNU Emacs Lisp Reference Manual}.
-Lexical binding is available since Emacs 24.1, so be sure to set
-@code{lexical-binding} to @code{t} if you need to emulate this aspect
+Lexical binding is available since Emacs 24.1, but be sure not to set
+@code{lexical-binding} to @code{nil} if you need to emulate this aspect
 of Common Lisp.  @xref{Lexical Binding,,,elisp,GNU Emacs Lisp Reference Manual}.
 
 Here is an example of a Common Lisp code fragment that would fail in
diff --git a/etc/NEWS b/etc/NEWS
index d1c7303f976..5a480c5f68a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -636,6 +636,12 @@ the directory into which the repository was cloned.
 
 * Incompatible Lisp Changes in Emacs 31.1
 
++++
+** 'lexical-binding' now defaults to t.
+The default ELisp dialect is now the lexically scoped dialect.
+Any code which has not yet been adapted should either be
+adapted or set 'lexical-binding' to nil explicitly.
+
 ** Nested backquotes are not supported any more in Pcase patterns.
 
 ** The 'rx' category name 'chinese-two-byte' must now be spelled correctly.
diff --git a/lisp/loadup.el b/lisp/loadup.el
index bd74a9d6aff..e676c338c14 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -654,9 +654,9 @@ comp-subr-arities-h
           (unwind-protect
               (let ((tmp-dump-mode dump-mode)
                     (dump-mode nil)
-                    ;; Set `lexical-binding' to nil by default
+                    ;; Set `lexical-binding' to its default value
                     ;; in the dumped Emacs.
-                    (lexical-binding nil))
+                    (lexical-binding (default-toplevel-value 'lexical-binding)))
                 (if (member tmp-dump-mode '("pdump" "pbootstrap"))
                     (dump-emacs-portable (expand-file-name output invocation-directory))
                   (dump-emacs output (if (eq system-type 'ms-dos)
diff --git a/src/lread.c b/src/lread.c
index ea0398196e3..9f56880e551 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1522,7 +1522,7 @@ DEFUN ("load", Fload, Sload, 1, 5, 0,
      otherwise using a file-variable in the first line.  This is bound here
      so that it takes effect whether or not we use
      Vload_source_file_function.  */
-  specbind (Qlexical_binding, Qnil);
+  specbind (Qlexical_binding, Fdefault_toplevel_value (Qlexical_binding));
 
   Lisp_Object found_eff =
     is_native_elisp
@@ -1720,8 +1720,11 @@ DEFUN ("load", Fload, Sload, 1, 5, 0,
     }
   else
     {
-      if (lisp_file_lexical_cookie (Qget_file_char) == Cookie_Lex)
+      lexical_cookie_t lexc = lisp_file_lexical_cookie (Qget_file_char);
+      if (lexc == Cookie_Lex)
         Fset (Qlexical_binding, Qt);
+      else if (lexc == Cookie_Dyn)
+        Fset (Qlexical_binding, Qnil);
 
       if (! version || version >= 22)
         readevalloop (Qget_file_char, &input, hist_file_name,
@@ -2606,8 +2609,11 @@ DEFUN ("eval-buffer", Feval_buffer, Seval_buffer, 0, 5, "",
   specbind (Qstandard_output, tem);
   record_unwind_protect_excursion ();
   BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf)));
+  lexical_cookie_t lexc = lisp_file_lexical_cookie (buf);
   specbind (Qlexical_binding,
-	    lisp_file_lexical_cookie (buf) == Cookie_Lex ? Qt : Qnil);
+	    lexc == Cookie_Lex ? Qt
+	    : lexc == Cookie_Dyn ? Qnil
+	    : Fdefault_toplevel_value (Qlexical_binding));
   BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf)));
   readevalloop (buf, 0, filename,
 		!NILP (printflag), unibyte, Qnil, Qnil, Qnil);
@@ -6056,7 +6062,7 @@ syms_of_lread (void)
 This variable is automatically set from the file variables of an
 interpreted Lisp file read using `load'.  Unlike other file local
 variables, this must be set in the first line of a file.  */);
-  Vlexical_binding = Qnil;
+  Vlexical_binding = Qt;
   Fmake_variable_buffer_local (Qlexical_binding);
 
   DEFVAR_LISP ("eval-buffer-list", Veval_buffer_list,
-- 
2.39.5


--=-=-=--





Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
New bug report received and forwarded. Copy sent to monnier@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to monnier@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#74145; 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: Thu, 20 Feb 2025 20:00:03 UTC

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