From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Nested sit-for's Date: Mon, 21 Aug 2006 21:40:30 -0400 Message-ID: <87wt91eekm.fsf-monnier+emacs@gnu.org> References: <87y7tp90i1.fsf@stupidchicken.com> <87hd0bjvoi.fsf@furball.mit.edu> <44E493E0.5000205@gmx.at> <44E58248.7020202@gmx.at> <87irknqzpv.fsf@furball.mit.edu> <87r6zaf4ym.fsf-monnier+emacs@gnu.org> <44E9EAEC.9000603@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156210871 20273 80.91.229.2 (22 Aug 2006 01:41:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Aug 2006 01:41:11 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org, rms@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 22 03:41:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFLGM-00014S-Q4 for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2006 03:41:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFLGM-0005wQ-8O for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2006 21:41:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFLFr-0005lZ-Us for emacs-devel@gnu.org; Mon, 21 Aug 2006 21:40:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFLFr-0005lB-9e for emacs-devel@gnu.org; Mon, 21 Aug 2006 21:40:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFLFr-0005l7-5M for emacs-devel@gnu.org; Mon, 21 Aug 2006 21:40:35 -0400 Original-Received: from [12.46.53.131] (helo=alfajor) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GFLNK-0004rT-Pn; Mon, 21 Aug 2006 21:48:19 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 9D6011C15B; Mon, 21 Aug 2006 21:40:30 -0400 (EDT) Original-To: martin rudalics In-Reply-To: <44E9EAEC.9000603@gmx.at> (martin rudalics's message of "Mon, 21 Aug 2006 19:18:36 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58675 Archived-At: >> 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. Stefan