From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: jit-lock timer etc. Date: Thu, 24 Aug 2006 20:11:53 +0200 Message-ID: <44EDEBE9.1030101@gmx.at> References: <44E9E5F5.8000400@gmx.at> <87fyfpq5wf.fsf@stupidchicken.com> <44EA3222.9050405@gmx.at> <44EC49AD.2080001@gmx.at> <44ED9A3E.3050001@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156443272 25919 80.91.229.2 (24 Aug 2006 18:14:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2006 18:14:32 +0000 (UTC) Cc: cyd@stupidchicken.com, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 24 20:14:30 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 1GGJif-0008D8-52 for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 20:14:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGJie-0003tK-Fb for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 14:14:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GGJh4-00021z-Vt for emacs-devel@gnu.org; Thu, 24 Aug 2006 14:12:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GGJh2-0001yb-4G for emacs-devel@gnu.org; Thu, 24 Aug 2006 14:12:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGJh1-0001yG-SY for emacs-devel@gnu.org; Thu, 24 Aug 2006 14:12:39 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GGJp8-0006O4-Eh for emacs-devel@gnu.org; Thu, 24 Aug 2006 14:21:02 -0400 Original-Received: (qmail invoked by alias); 24 Aug 2006 18:12:38 -0000 Original-Received: from N923P012.adsl.highway.telekom.at (EHLO [62.47.59.76]) [62.47.59.76] by mail.gmx.net (mp040) with SMTP; 24 Aug 2006 20:12:38 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: "Kim F. Storm" In-Reply-To: X-Y-GMX-Trusted: 0 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:58822 Archived-At: > It could be that the new trigger time has somehow passed by > before restarting the idle timer. Just to rule that out, > could you try with delay = 2 instead of 0. I tried a lot of these before without any success. >>> (let ((idle (current-idle-time))) >>> (when idle >>> (run-with-idle-timer (+ idle (max delay 0.1)) >>> nil #'jit-lock-stealth-fontify))) >>> >> >>make that: >> >> (let ((idle (current-idle-time))) >> (setq jit-lock-stealth-repeat-timer >> (and (not idle) >> (run-with-idle-timer (+ idle (max delay 0.1)) >> nil #'jit-lock-stealth-fontify)))) > > > Brain damange -- make that: > > (let ((idle (current-idle-time))) > (setq jit-lock-stealth-repeat-timer > (and idle > (run-with-idle-timer (+ idle (max delay 0.1)) > nil #'jit-lock-stealth-fontify)))) > I must have lost you, all your suggestions set that timer to nil. Did you try Chong's patch?