summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-02-25 01:47:29 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-02-25 01:47:29 -0800
commit3fb190507f1f8cc5ad667abd2b84748f8e703242 (patch)
tree552c8fb3c41f3257aaef7c120dd84684c7dbb34b /txr.1
parentfee5943718c28f2b9e422bf0564ba35870e55d25 (diff)
downloadtxr-3fb190507f1f8cc5ad667abd2b84748f8e703242.tar.gz
txr-3fb190507f1f8cc5ad667abd2b84748f8e703242.tar.bz2
txr-3fb190507f1f8cc5ad667abd2b84748f8e703242.zip
New ignerr macro.
* eval.c (me_ignerr): New static function. (eval_init): Registered ignerr macro. * txr.1: Documented. * tl.vim, txr.vim: Regenerated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.130
1 files changed, 30 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 5c4d61c6..75794618 100644
--- a/txr.1
+++ b/txr.1
@@ -19657,6 +19657,36 @@ operator, and the functions
and
.codn error .
+.coNP Macro @ ignerr
+.synb
+.mets (ignerr << form *)
+.syne
+.desc
+The
+.code ignerr
+macro operator evaluates each
+.meta form
+similarly to the
+.code progn
+operator. If no forms are present, it returns
+.codn nil .
+Otherwise it evaluates each
+.meta form
+in turn, yielding the value of the last one.
+
+If the evaluation of any
+.meta form
+is abandoned due to an exception of type
+.codn error ,
+the code generated by the
+.code ignerr
+macro catches this exception. In this situation,
+the execution of the
+.code ignerr
+form terminates without evaluating the remaining
+forms, and yields
+.codn nil .
+
.coNP Variable @ *unhandled-hook*
The