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 14:21:36 +0200 Message-ID: <44ED99D0.205@gmx.at> References: <44E9E5F5.8000400@gmx.at> <87fyfpq5wf.fsf@stupidchicken.com> <44EA3222.9050405@gmx.at> <44EC49AD.2080001@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 1156422283 9679 80.91.229.2 (24 Aug 2006 12:24:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2006 12:24:43 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 24 14:24:40 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 1GGEG3-0007sh-Ds for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 14:24:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGEG2-00033o-Ua for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 08:24:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GGEFr-00033A-7M for emacs-devel@gnu.org; Thu, 24 Aug 2006 08:24:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GGEFp-00032l-P9 for emacs-devel@gnu.org; Thu, 24 Aug 2006 08:24:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGEFp-00032a-GW for emacs-devel@gnu.org; Thu, 24 Aug 2006 08:24:13 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GGENs-00050X-ML for emacs-devel@gnu.org; Thu, 24 Aug 2006 08:32:33 -0400 Original-Received: (qmail invoked by alias); 24 Aug 2006 12:24:11 -0000 Original-Received: from N765P017.adsl.highway.telekom.at (EHLO [62.47.39.145]) [62.47.39.145] by mail.gmx.net (mp001) with SMTP; 24 Aug 2006 14:24:11 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: rms@gnu.org 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:58802 Archived-At: > Please try using time-to-seconds to convert. Sorry, the tire's still flat. Using (let ((message-log-max t) (count 0)) (message "%s ... %s" (setq count (1+ count)) jit-lock-stealth-repeat-timer) (timer-set-idle-time jit-lock-stealth-repeat-timer (time-to-seconds (current-idle-time))) (message "%s ... %s" (setq count (1+ count)) jit-lock-stealth-repeat-timer) (timer-inc-time jit-lock-stealth-repeat-timer (max delay 0.1)) (message "%s ... %s" (setq count (1+ count)) jit-lock-stealth-repeat-timer) (timer-activate-when-idle jit-lock-stealth-repeat-timer t) (message "%s ... %s" (setq count (1+ count)) jit-lock-stealth-repeat-timer)) typically gets me 1 ... [t nil nil nil nil jit-lock-stealth-fontify t nil] Loading time-date...done 2 ... [t 0 3 20000 nil jit-lock-stealth-fontify t nil] 3 ... [t 0 3 120000 nil jit-lock-stealth-fontify t nil] 4 ... [nil 0 3 120000 nil jit-lock-stealth-fontify t t] 1 ... [t 0 3 120000 nil jit-lock-stealth-fontify t t] 2 ... [t 0 3 20000 nil jit-lock-stealth-fontify t t] 3 ... [t 0 3 120000 nil jit-lock-stealth-fontify t t] 4 ... [nil 0 3 120000 nil jit-lock-stealth-fontify t t] 1 ... [t 0 3 120000 nil jit-lock-stealth-fontify t t] 2 ... [t 0 3 20000 nil jit-lock-stealth-fontify t t] 3 ... [t 0 3 120000 nil jit-lock-stealth-fontify t t] 4 ... [nil 0 3 120000 nil jit-lock-stealth-fontify t t] 1 ... [t 0 3 120000 nil jit-lock-stealth-fontify t t] 2 ... [t 0 3 20000 nil jit-lock-stealth-fontify t t] 3 ... [t 0 3 120000 nil jit-lock-stealth-fontify t t] 4 ... [nil 0 3 120000 nil jit-lock-stealth-fontify t t] where every new cycle was caused by a mouse-click to trigger `jit-lock-stealth-timer'. (I used "(max delay 0.1)" because I thought that a delay of zero could cause problems, but there's no difference.)