From 3fb190507f1f8cc5ad667abd2b84748f8e703242 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 25 Feb 2015 01:47:29 -0800 Subject: New ignerr macro. * eval.c (me_ignerr): New static function. (eval_init): Registered ignerr macro. * txr.1: Documented. * tl.vim, txr.vim: Regenerated. --- txr.1 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'txr.1') 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 -- cgit v1.2.3