summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-04-08 21:45:40 -0700
committerKaz Kylheku <kaz@kylheku.com>2025-04-08 21:45:40 -0700
commit8cc7b9ee27b400ba752f11042f727d68a2ef1dc8 (patch)
tree26b1f3aa192f1c77aef8f979f50f5a3a284dbe8c
parent8db92bed90d4cf700de8191b6fbd2c4a8c8ab989 (diff)
downloadtxr-8cc7b9ee27b400ba752f11042f727d68a2ef1dc8.tar.gz
txr-8cc7b9ee27b400ba752f11042f727d68a2ef1dc8.tar.bz2
txr-8cc7b9ee27b400ba752f11042f727d68a2ef1dc8.zip
expand-hook: don't process symbol macros.
There isn't an obvious use for calling the expander hook for symbolic forms that are macros. (Especially while not calling it for symbolic forms that are not macros.) * eval.c (do_expand): Do not call the expand hook for symbol macro forms.
-rw-r--r--eval.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/eval.c b/eval.c
index 7b485e6f..9c35d6c5 100644
--- a/eval.c
+++ b/eval.c
@@ -5067,17 +5067,7 @@ again:
val symac_bind = lookup_symac(menv, form);
if (symac_bind) {
- val eh = expand_hook;
val symac = cdr(symac_bind);
-
- if (eh) {
- val eform = funcall3(eh, form, menv, macro_k);
- if (eform != form) {
- form = rlcp_tree(eform, form);
- goto again;
- }
- }
-
if (symac == form)
return form;
return expand(rlcp_tree(symac, form), menv);