Subject: Re: bug#66706: [PATCH] Automatic elisp dialect insertion

From: Eli Zaretskii <[email-masked]>
Date: Thu, 26 Oct 2023 08:22:55 +0300

> Date: Wed, 25 Oct 2023 17:07:55 -0700
> Cc: [email-masked], [email-masked], [email-masked],
>  [email-masked]
> From: Jim Porter <[email-masked]>
> 
> On 10/25/2023 12:09 PM, Mattias Engdegård wrote:
> > Only now do we have a compiler warning telling them, which is only effective if (a) people recompile their code when they upgrade Emacs (which they don't need to do because we are almost too good at .elc backward compatibility, and some run their code interpreted all the time) and (b) they look at at the warning and decide to take action.
> 
> Assuming we don't want to flip the default for 'lexical-binding' just 
> yet, would it be possible to warn the user any time they load 
> interpreted code that uses dynamic binding?

We already do: on the mode line.  Doing more would be an annoyance.
E.g., many init files use dynamic binding.