From: Lars Ingebrigtsen Date: Tue, 17 May 2022 09:06:33 +0000 (+0200) Subject: Improve Finternal__define_uninitialized_variable erroring X-Git-Tag: emacs-29.0.90~1910^2~634 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=608afd6e4ec46ca9b3843c05934d72e759fe1ad5;p=emacs.git Improve Finternal__define_uninitialized_variable erroring * src/eval.c (Finternal__define_uninitialized_variable): Say what symbol we're bugging out on for easier debugging. --- diff --git a/src/eval.c b/src/eval.c index 25ac8e45296..08e2dce61e4 100644 --- a/src/eval.c +++ b/src/eval.c @@ -741,7 +741,9 @@ value. */) and where the `foo` package only gets loaded when is called, so the outer `let` incorrectly made the binding lexical because the 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))