Subject: bug#66636: Move lexical-binding warning from checkdoc to byte-compiler

From: Mattias Engdegård <[email-masked]>
Date: Sat, 21 Oct 2023 11:53:58 +0200

20 okt. 2023 kl. 21.27 skrev Eli Zaretskii <[email-masked]>:

> Did you see what Po Lu and I said?

Not sure what he was trying to say, but it looks like a misunderstanding.
I'll try to clarify matters here. Please tell me if you still have concerns.

We certainly care about users of legacy code. The warning is intended as a soft nudge to encourage users to convert their code to lexical binding, which is quite straightforward most of the time.

When it's not, or when the user simply doesn't have the time or expertise to perform the conversion, it's just a matter of inserting `-*- lexical-binding: nil -*-`. Doing so will both silence the warning and buy the user some reprieve. A lot of reprieve, in fact.

This should probably be pointed out in the NEWS entry as well.