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: jit-lock timer etc. Date: Thu, 24 Aug 2006 15:16:44 -0400 Message-ID: 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> <44EDEB44.4010408@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156447034 7082 80.91.229.2 (24 Aug 2006 19:17:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2006 19:17:14 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org, rms@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 24 21:17:11 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 1GGKhO-0007Jo-BZ for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 21:17:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGKhN-0001Ow-L5 for ged-emacs-devel@m.gmane.org; Thu, 24 Aug 2006 15:17:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GGKh8-0001KA-C7 for emacs-devel@gnu.org; Thu, 24 Aug 2006 15:16:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GGKh7-0001H9-4n for emacs-devel@gnu.org; Thu, 24 Aug 2006 15:16:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGKh6-0001Gi-RO for emacs-devel@gnu.org; Thu, 24 Aug 2006 15:16:48 -0400 Original-Received: from [209.226.175.74] (helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GGKpA-0005y9-Ty; Thu, 24 Aug 2006 15:25:09 -0400 Original-Received: from localhost ([70.55.147.103]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060824191644.BBXU16051.tomts20-srv.bellnexxia.net@localhost>; Thu, 24 Aug 2006 15:16:44 -0400 Original-Received: by localhost (Postfix, from userid 20848) id 735198A21; Thu, 24 Aug 2006 15:16:44 -0400 (EDT) Original-To: martin rudalics In-Reply-To: <44EDEB44.4010408@gmx.at> (martin rudalics's message of "Thu, 24 Aug 2006 20:09:08 +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:58825 Archived-At: > (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)) You mean (when repeat (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 (memq jit-lock-stealth-repeat-timer timer-idle-list)))) Shouldn't timer-activate-when-idle simply do it automatically? Stefan