[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...
- bug#58513: describe-function should say that defconst variables are constant, Stefan Kangas, 2022/10/14
- bug#58513: describe-function should say that defconst variables are constant, Lars Ingebrigtsen, 2022/10/14
- bug#58513: describe-function should say that defconst variables are constant, Phil Sainty, 2022/10/14
- bug#58513: describe-function should say that defconst variables are constant,
Lars Ingebrigtsen <=
- bug#58513: describe-function should say that defconst variables are constant, Stefan Kangas, 2022/10/14
- bug#58513: describe-function should say that defconst variables are constant, Lars Ingebrigtsen, 2022/10/14
- bug#58513: describe-function should say that defconst variables are constant, Stefan Monnier, 2022/10/14
- bug#58513: describe-function should say that defconst variables are constant, Lars Ingebrigtsen, 2022/10/14
- bug#58513: describe-function should say that defconst variables are constant, Stefan Monnier, 2022/10/14
- bug#58513: describe-function should say that defconst variables are constant, Lars Ingebrigtsen, 2022/10/15
- bug#58513: describe-function should say that defconst variables are constant, Richard Stallman, 2022/10/16
- bug#58513: describe-function should say that defconst variables are constant, Drew Adams, 2022/10/16
- bug#58513: describe-function should say that defconst variables are constant, Stefan Kangas, 2022/10/17
- bug#58513: describe-function should say that defconst variables are constant, Lars Ingebrigtsen, 2022/10/17