summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-12-08 21:20:38 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-12-08 21:20:38 -0800
commitfd1473136898716cecf77de5a029c58e98f2a682 (patch)
treea498e61c35d7da37a7a408e2c5f6b678ea46c94f /txr.1
parent0bca60148566d0cd9999c016c8107a0a29d523f0 (diff)
downloadtxr-fd1473136898716cecf77de5a029c58e98f2a682.tar.gz
txr-fd1473136898716cecf77de5a029c58e98f2a682.tar.bz2
txr-fd1473136898716cecf77de5a029c58e98f2a682.zip
New function macro-ancestor.
* eval.c (eval_init): Register lookup_origin as macro-ancestor intrinsic. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.118
1 files changed, 18 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index e130c6cb..aa281265 100644
--- a/txr.1
+++ b/txr.1
@@ -36801,6 +36801,24 @@ source code location info also, so that when the \*(TL evaluator
encounters errors in transformed code, it can give diagnostics which refer
to the original untransformed source code.
+.coNP Function @ macro-ancestor
+.synb
+.mets (macro-ancestor << form )
+.syne
+.desc
+The
+.code macro-ancestor
+function returns information about the macro-expansion ancestor of
+.metn form .
+The ancestor is the original form whose expansion produced
+.metn form .
+
+If
+.meta form
+is not the result of macro-expansion, or the ancestor information
+is unavailable, the function returns
+.codn nil .
+
.SS* Profiling
.coNP Operator @ prof
.synb