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: Three strikes them out Date: Sat, 31 May 2008 15:36:20 +0200 Message-ID: <48415454.9050607@gmx.at> References: <48403C07.5080404@gmail.com> <484113E8.1040008@gmail.com> <4841177E.8020708@gmx.at> <484118F0.2050805@gmail.com> <48412778.7030302@gmx.at> <48413D82.9080304@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212240935 22238 80.91.229.12 (31 May 2008 13:35:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 May 2008 13:35:35 +0000 (UTC) Cc: Stefan Monnier , Emacs Devel To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 31 15:36:17 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K2RFo-0001OB-DH for ged-emacs-devel@m.gmane.org; Sat, 31 May 2008 15:36:16 +0200 Original-Received: from localhost ([127.0.0.1]:55000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2RF2-0000EP-3k for ged-emacs-devel@m.gmane.org; Sat, 31 May 2008 09:35:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2REw-0000CT-QW for emacs-devel@gnu.org; Sat, 31 May 2008 09:35:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2REu-00008n-A6 for emacs-devel@gnu.org; Sat, 31 May 2008 09:35:22 -0400 Original-Received: from [199.232.76.173] (port=36095 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2REu-00008d-3P for emacs-devel@gnu.org; Sat, 31 May 2008 09:35:20 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:36904) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1K2REt-0003Lf-Kl for emacs-devel@gnu.org; Sat, 31 May 2008 09:35:19 -0400 Original-Received: (qmail invoked by alias); 31 May 2008 13:35:18 -0000 Original-Received: from 62-47-46-44.adsl.highway.telekom.at (EHLO [62.47.46.44]) [62.47.46.44] by mail.gmx.net (mp058) with SMTP; 31 May 2008 15:35:18 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+yoTQnbcOyxax929exWhw3DrVJU8pLn8Ym7txSnF BOGIwU15HCXGXq User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <48413D82.9080304@gmail.com> X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) 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:98132 Archived-At: > Thanks. The situation is a bit different in my case, but it could > perhaps be that contextual refontificaion is re-triggered. Could that > happen when the code runs under font-lock and only text properties and > overlays are changed? It happens with every change of a text property. >> You can't: As soon as you manage to exit looping, a repeating idle timer >> will fire again. > > Yes, that was why I suggested that we implement something that allows us > to stop this (with for example C-g C-g C-g). Stop what? All idle timers? That's hardly possible if the timer fires before you finished typing that key sequence. If, on the other hand, you manage earlier keyboard events get through you will stop all timers whenever you mishappen to type C-g repeatedly. If there's a bug fix the bug. If the bug is caused by a function run by a timer make the delay larger or run the function manually to find the bug. In general any function run by a timer must be safe - that is exit quickly wrt real time and never cause any reentrancy.