summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-01-21 23:47:22 -0800
committerKaz Kylheku <kaz@kylheku.com>2017-01-21 23:47:22 -0800
commit062b374c59842e6f00e1df7acf0cbe33293026af (patch)
tree015d8c1b6bea5e2ff36e72d329ffc279a780da1e /txr.1
parentb64bcbb6e7bd7f331f660518e97e2bfa898ae340 (diff)
downloadtxr-062b374c59842e6f00e1df7acf0cbe33293026af.tar.gz
txr-062b374c59842e6f00e1df7acf0cbe33293026af.tar.bz2
txr-062b374c59842e6f00e1df7acf0cbe33293026af.zip
doc: missing :var documented.
txr.1: the @(next) directive has a :var argument which was added in 2011 but never documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.125
1 files changed, 25 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 479b604c..d99d4e88 100644
--- a/txr.1
+++ b/txr.1
@@ -3365,6 +3365,7 @@ and takes various arguments, according to these possibilities:
.mets @(next :list << lisp-expr )
.mets @(next :tlist << bind-expr )
.mets @(next :string << lisp-expr )
+.mets @(next :var << var )
.mets @(next nil)
.cble
@@ -3465,6 +3466,30 @@ is not a \*(TL expression, but a \*(TX bind expression.
The syntax
.cblk
+.meti @(next :var << var )
+.cble
+requires
+.meta var
+to be a previously bound variable. The value of the
+variable is retrieved and treated like a list, in the
+same manner as under
+.codn "@(next :list ...)" .
+Note that
+.code "@(next :var x)"
+is not always the same as
+.codn "@(next :tlist x)" ,
+because
+.code ":var x"
+strictly requires
+.code x
+to be a \*(TX variable, whereas the
+.code x
+in
+.code ":tlist x"
+is an expression which can potentially refer to Lisp variable.
+
+The syntax
+.cblk
.meti @(next :string << lisp-expr )
.cble
treats expression