[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal for a new mechanism for delayed stuff
From: |
Ted Zlatanov |
Subject: |
Re: Proposal for a new mechanism for delayed stuff |
Date: |
Wed, 26 Dec 2012 09:08:56 -0500 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
On Tue, 25 Dec 2012 14:20:31 +0100 Lars Ingebrigtsen <address@hidden> wrote:
LI> The idea I had yesterday was to make this totally general:
(with-timeout-forms
(progn
(bla)
(bla))
(1.5 (message "This is sure taking a lot of time..."))
(10 (message "This is sure taking forever!")))
LI> A la condition-case and stuff, although here we have forms that are
LI> run if the main form takes too long. So after 1.5 seconds we trigger
LI> the first, and after 10 we trigger the second.
I like it.
LI> And perhaps it would also be possible to have a special thing in the
LI> timeout forms that would conclude the entire main form? Like `return'
LI> or something.
You could use 'finally?
Ted