help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

try-this-for ?


From: Emanuel Berg
Subject: try-this-for ?
Date: Wed, 17 Jan 2018 22:04:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Is there something like this:

    (try-this-for SECONDS BODY)

If BODY hasn't completed after SECONDS,
everything will be aborted, i.e.
the equivalence of `keyboard-quit' (or whatever
appropriate).

But what has already happened until the point
of abortion don't have to be rolled back or any
state restored or dumped or anything like that.

If BODY do complete before SECONDS it should be
transparent in the sense that what should be
returned is the final evaluation of BODY.

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

[Prev in Thread] Current Thread [Next in Thread]