From 608afd6e4ec46ca9b3843c05934d72e759fe1ad5 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 17 May 2022 11:06:33 +0200 Subject: [PATCH] Improve Finternal__define_uninitialized_variable erroring * src/eval.c (Finternal__define_uninitialized_variable): Say what symbol we're bugging out on for easier debugging. --- src/eval.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.39.2