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: Fri, 25 Aug 2006 08:00:30 +0200 Message-ID: <44EE91FE.3060709@gmx.at> References: <44E9E5F5.8000400@gmx.at> <87fyfpq5wf.fsf@stupidchicken.com> <44EA3222.9050405@gmx.at> <44EC49AD.2080001@gmx.at> <87k64y8875.fsf@furball.mit.edu> <44EDD157.8010207@gmx.at> <874pw1vrsx.fsf@stupidchicken.com> 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 1156486849 14822 80.91.229.2 (25 Aug 2006 06:20:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2006 06:20:49 +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 Fri Aug 25 08:20:36 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 1GGV3T-0002Fn-HP for ged-emacs-devel@m.gmane.org; Fri, 25 Aug 2006 08:20:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGV3S-00083M-S2 for ged-emacs-devel@m.gmane.org; Fri, 25 Aug 2006 02:20:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GGV3D-00080P-9S for emacs-devel@gnu.org; Fri, 25 Aug 2006 02:20:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GGV3B-0007yZ-CN for emacs-devel@gnu.org; Fri, 25 Aug 2006 02:20:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGV3B-0007yH-6O for emacs-devel@gnu.org; Fri, 25 Aug 2006 02:20:17 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GGVBO-0005Te-LF for emacs-devel@gnu.org; Fri, 25 Aug 2006 02:28:47 -0400 Original-Received: (qmail invoked by alias); 25 Aug 2006 06:20:15 -0000 Original-Received: from N840P028.adsl.highway.telekom.at (EHLO [62.47.48.252]) [62.47.48.252] by mail.gmx.net (mp005) with SMTP; 25 Aug 2006 08:20:15 +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: <874pw1vrsx.fsf@stupidchicken.com> 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:58845 Archived-At: >> (timer-set-function jit-lock-stealth-repeat-timer >> 'jit-lock-stealth-fontify t)) > > > Now I know why your code didn't work. The very last line is wrong! > It should be > > (timer-set-function jit-lock-stealth-repeat-timer > 'jit-lock-stealth-fontify '(t))) > > I believe that with this change, everything will work. Indeed. I must have tacitly anticipated that `timer-set-function' has a &rest. Using `run-with-idle-timer' in `jit-lock-stealth-fontify' as you did is, however, cleaner anyway. Thanks for sorting this out.