1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00

Improve Finternal__define_uninitialized_variable erroring

* src/eval.c (Finternal__define_uninitialized_variable): Say what
symbol we're bugging out on for easier debugging.
This commit is contained in:
Lars Ingebrigtsen 2022-05-17 11:06:33 +02:00
parent 90dccb0f00
commit 608afd6e4e

View File

@ -741,7 +741,9 @@ value. */)
and where the `foo` package only gets loaded when <foo-function>
is called, so the outer `let` incorrectly made the binding lexical
because the <foo-var> wasn't yet declared as dynamic at that point. */
error ("Defining as dynamic an already lexical var");
xsignal2 (Qerror,
build_string ("Defining as dynamic an already lexical var"),
symbol);
XSYMBOL (symbol)->u.s.declared_special = true;
if (!NILP (doc))