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: Can't interrupt directory_files_internal run fromtimer-event-handler Date: Tue, 09 Aug 2005 19:29:50 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123630581 14642 80.91.229.2 (9 Aug 2005 23:36:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2005 23:36:21 +0000 (UTC) Cc: kzeitler@lucent.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 10 01:36:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2dcy-0006kN-M4 for ged-emacs-devel@m.gmane.org; Wed, 10 Aug 2005 01:35:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2dfu-0004kc-2p for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2005 19:38:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2ddV-0004K0-NK for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:35:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2ddM-0004FU-OB for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:35:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2ddL-0004FM-H4 for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:35:48 -0400 Original-Received: from [195.186.19.65] (helo=mail20.bluewin.ch) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E2dlk-0005k1-6v for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:44:28 -0400 Original-Received: from empanada.local (83.76.14.40) by mail20.bluewin.ch (Bluewin 7.2.063) id 42D281C40045643F; Tue, 9 Aug 2005 23:29:47 +0000 Original-Received: by empanada.local (Postfix, from userid 502) id 23F655FDD94; Tue, 9 Aug 2005 19:29:50 -0400 (EDT) Original-To: In-Reply-To: (klaus berndl's message of "Fri, 5 Aug 2005 14:01:44 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) 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:41824 > ECB encapslates ist "stealthy" tasks in a loop like: > (while (and (not (input-pending-p)) > ... > So IMHO C-g should work.... Only if each iteration takes a (small) finite time. The OP's problem is that one of the iteration doesn't terminate. > AFAIK there is a new macro in CVS named `while-no-input' (there > was a discussion some time ago).... Could using this macro > solve problems like that posted from the OP?? Could be. Another related new macro is with-local-quit (which uses no new internal feature and can thus be backported to other Emacsen). Stefan