[Top][All Lists]

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

Re: try-this-for ?

From: Bob Newell
Subject: Re: try-this-for ?
Date: Wed, 17 Jan 2018 16:08:39 -1000

>     (try-this-for SECONDS BODY)

The best way to do this is to build the timer check into 'body'
itself. That way you can be sure to always exit in a known state. If
an external timer interrupts 'body' (and I haven't yet figured out how
to do that, so it's in theory) then the state could be in some

Of course if 'body' is something like an internal emacs call that
simply might run for a long time, this idea won't work.

If 'body' is running a /process/, however, an Emacs timer can trigger
a call to 'kill-process' or 'interrupt-process' to halt the process.

Don't know if any of this helps ...

Bob Newell
Honolulu, Hawai`i

Sent via Linux Mint 17.

reply via email to

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