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

From: Stefan Kangas <[email-masked]>
Date: Sat, 15 Oct 2022 12:33:29 +0000

Stefan Monnier <[email-masked]> writes:

> The byte-compiler already does warn about it, but only if the assignment
> is in the same file as the `defconst`.

I don't get any warnings with this recipe:

    echo "(defconst foo-bar t) (setq foo-bar nil)" > /tmp/foo.el
    emacs -Q -batch -eval '(byte-compile-file "/tmp/foo.el")'

Am I missing something?