[Top][All Lists]

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

Re: Nested sit-for's

From: Stefan Monnier
Subject: Re: Nested sit-for's
Date: Mon, 21 Aug 2006 21:40:30 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> Additionally, if REPEAT is a number, repeat the action every REPEAT
>> seconds as long as Emacs stays idle.

> That's exactly what I hoped for in the first place.

> However, in `jit-lock-stealth-fontify' I need different REPEAT
> intervals: `jit-lock-stealth-time' if the load is too high and
> `jit-lock-stealth-nice' otherwise.

> Anyway, I think that would be a _very_ pleasant feature.

Then, maybe a generic background.el package which provides a function
`run-in-the-background'.  That function can then take care to run those
background tasks when Emacs is idle, taking average-load into account.


reply via email to

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