bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Monnier
Subject: bug#59057: Emacs 29. Byte compiler sometimes forgets about a defvar.
Date: Wed, 09 Nov 2022 12:54:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> The basic problem is that defvar is a dog's breakfast of a function.  In
> fact, it's two distinct functions sharing a name.  These two functions
> have little else to do with eachother.

Yup.

> And defvar appears to be the only function in Emacs where supplying nil
> as an &optional argument has an effect different from omitting it.  This
> is bad for anybody trying to learn Emacs Lisp.

Not the only one, sadly (`declare-function` comes to mind :-)), but yes,
it's unusual.


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]