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 from timer-event-handler Date: Tue, 09 Aug 2005 19:07:45 -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 1123630333 13578 80.91.229.2 (9 Aug 2005 23:32:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2005 23:32:13 +0000 (UTC) Cc: Klaus Zeitler , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 10 01:32:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2dZF-0006Ow-6J for ged-emacs-devel@m.gmane.org; Wed, 10 Aug 2005 01:31:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2dcK-0003oL-E4 for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2005 19:34:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2dYG-0002H7-9D for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:30:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2dWl-0001l9-2r for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:29:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2dWf-0001au-M7 for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:28:53 -0400 Original-Received: from [195.186.19.66] (helo=mail22.bluewin.ch) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E2dQF-0004m3-P7; Tue, 09 Aug 2005 19:22:15 -0400 Original-Received: from empanada.local (83.76.14.40) by mail22.bluewin.ch (Bluewin 7.2.063) id 42E684E0001FC941; Tue, 9 Aug 2005 23:07:44 +0000 Original-Received: by empanada.local (Postfix, from userid 502) id AA3435FB45E; Tue, 9 Aug 2005 19:07:47 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Fri, 05 Aug 2005 16:38:14 -0400") 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:41823 > Timer code normally turns off C-g so that you won't interrupt it > by accident. (After all, you can't predict when the timer code > will be running.) If ECB is going to do something potentially > slow from a timer, it should probably bind inhibit-quit to nil > around that code, after displaying a message in the echo area Indeed. Except that just binding inhibit-quit to nil may not quite do what we want: it should use with-local-quit or something equivalent. Stefan