diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-01-21 23:47:22 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-01-21 23:47:22 -0800 |
commit | 062b374c59842e6f00e1df7acf0cbe33293026af (patch) | |
tree | 015d8c1b6bea5e2ff36e72d329ffc279a780da1e /txr.1 | |
parent | b64bcbb6e7bd7f331f660518e97e2bfa898ae340 (diff) | |
download | txr-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.1 | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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 |