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:09:08 +0200 Message-ID: <44EDEB44.4010408@gmx.at> References: <44E9E5F5.8000400@gmx.at> <87fyfpq5wf.fsf@stupidchicken.com> <44EA3222.9050405@gmx.at> <44EC49AD.2080001@gmx.at> <87k64y8875.fsf@furball.mit.edu> <87fyfm87lp.fsf@furball.mit.edu> 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 1156443239 25815 80.91.229.2 (24 Aug 2006 18:13:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2006 18:13:59 +0000 (UTC) Cc: storm@cua.dk, 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:13:57 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 1GGJi5-00085o-3b for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 20:13:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGJi4-00035m-D7 for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 14:13:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GGJh4-00021w-Rc for emacs-devel@gnu.org; Thu, 24 Aug 2006 14:12:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GGJh0-0001wh-Ru for emacs-devel@gnu.org; Thu, 24 Aug 2006 14:12:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGJh0-0001wK-NW for emacs-devel@gnu.org; Thu, 24 Aug 2006 14:12:38 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GGJp7-0006Nt-7s for emacs-devel@gnu.org; Thu, 24 Aug 2006 14:21:01 -0400 Original-Received: (qmail invoked by alias); 24 Aug 2006 18:12:37 -0000 Original-Received: from N923P012.adsl.highway.telekom.at (EHLO [62.47.59.76]) [62.47.59.76] by mail.gmx.net (mp019) with SMTP; 24 Aug 2006 20:12:37 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Chong Yidong In-Reply-To: <87fyfm87lp.fsf@furball.mit.edu> 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:58821 Archived-At: > There were a few mistakes in the code I posted, incurred during > cutting and pasting. Please look at this patch instead; and sorry for > the noise. It works! Thanks for finding the problem and solving it! BTW, what do you think about ;; Cancel timer for repeated invocations. (when (and (not repeat) (timerp jit-lock-stealth-repeat-timer)) (cancel-timer jit-lock-stealth-repeat-timer)) and (if repeat (let ((cell (memq jit-lock-stealth-repeat-timer timer-idle-list))) (timer-set-idle-time jit-lock-stealth-repeat-timer (current-idle-time)) (timer-inc-time jit-lock-stealth-repeat-timer delay) (timer-activate-when-idle jit-lock-stealth-repeat-timer t cell)) We currently allocate a new timer for every chunk we fontify stealthily and for every buffer in `jit-lock-stealth-buffers'. Is it worth the trouble?