aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-05-17 11:06:33 +0200
committerLars Ingebrigtsen2022-05-17 11:06:33 +0200
commit608afd6e4ec46ca9b3843c05934d72e759fe1ad5 (patch)
tree70561b3191ae0e0db057ac8dacec0a4f9a3d1159 /src
parent90dccb0f00f684f63ab117a826a88a8e939b212b (diff)
downloademacs-608afd6e4ec46ca9b3843c05934d72e759fe1ad5.tar.gz
emacs-608afd6e4ec46ca9b3843c05934d72e759fe1ad5.zip
Improve Finternal__define_uninitialized_variable erroring
* src/eval.c (Finternal__define_uninitialized_variable): Say what symbol we're bugging out on for easier debugging.
Diffstat (limited to 'src')
-rw-r--r--src/eval.c4
1 files changed, 3 insertions, 1 deletions
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. */)
741 and where the `foo` package only gets loaded when <foo-function> 741 and where the `foo` package only gets loaded when <foo-function>
742 is called, so the outer `let` incorrectly made the binding lexical 742 is called, so the outer `let` incorrectly made the binding lexical
743 because the <foo-var> wasn't yet declared as dynamic at that point. */ 743 because the <foo-var> wasn't yet declared as dynamic at that point. */
744 error ("Defining as dynamic an already lexical var"); 744 xsignal2 (Qerror,
745 build_string ("Defining as dynamic an already lexical var"),
746 symbol);
745 747
746 XSYMBOL (symbol)->u.s.declared_special = true; 748 XSYMBOL (symbol)->u.s.declared_special = true;
747 if (!NILP (doc)) 749 if (!NILP (doc))