emacs-devel
[Top][All Lists]
Advanced

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

Re: Typo in defconst-1 and defvar-1 docstrings?


From: Stefan Monnier
Subject: Re: Typo in defconst-1 and defvar-1 docstrings?
Date: Thu, 06 Oct 2022 16:06:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> And related to defconst (which is why I was looking at the definition in
> the first place), is there a way to check if a variable was declared
> using defconst instead of defvar?

Currently, not really, no (beside ugly hacks that only work in some
particular cases, such as trying to jump to the source of the var's
definition and seeing if it says "defvar" or "defconst", or looking at
the `byte-compile-const-variables` var).


        Stefan




reply via email to

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