Subject: Re: bug#59057: Emacs 29. Byte compiler sometimes forgets about a defvar.

From: Stefan Monnier <[email-masked]>
Date: Mon, 07 Nov 2022 16:31:32 -0500

>> (defvar VAR) does not "create a variable".
> According to both its doc string and the Elisp manual it does.

BTW, what I'm describing is how things have worked in `lexical-binding`
since Emacs-24, basically.  A few corner cases didn't quite obey it
(and I'm sure there are still a few remaining ones), but by and large
this is how it has worked for the last 10 years.

        Stefan