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

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

bug#58513: describe-function should say that defconst variables are cons


From: Lars Ingebrigtsen
Subject: bug#58513: describe-function should say that defconst variables are constant
Date: Fri, 14 Oct 2022 14:40:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Phil Sainty <psainty@orcon.net.nz> writes:

> It does at least one thing different: if you load or eval a defconst
> for a variable which already exists, the value is updated.

Yes, that's true.

And we could start adding a symbol property saying that a constant is
meant to be constant, and perhaps start warning if people change it, but
that would make things slower for basic things like `setq', so I'm
pretty sure it's not worth it.

We could use that property to make describe-function say that the
variable isn't meant to be changed, though.  But is it worth adding to
the symbol plist just for that?  Hm...





reply via email to

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