From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: AW: AW: AW: Can't interrupt directory_files_internalrunfromtimer-event-handler Date: Fri, 12 Aug 2005 15:58:35 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1123877180 21253 80.91.229.2 (12 Aug 2005 20:06:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2005 20:06:20 +0000 (UTC) Cc: kzeitler@lucent.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 12 22:06:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E3fmR-0000hW-No for ged-emacs-devel@m.gmane.org; Fri, 12 Aug 2005 22:05:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3fpf-0003HN-Q7 for ged-emacs-devel@m.gmane.org; Fri, 12 Aug 2005 16:08:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E3fm2-0002D3-4A for emacs-devel@gnu.org; Fri, 12 Aug 2005 16:05:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E3flw-0002AS-FW for emacs-devel@gnu.org; Fri, 12 Aug 2005 16:04:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3flt-00027O-8m for emacs-devel@gnu.org; Fri, 12 Aug 2005 16:04:55 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E3fwn-0005Yo-Hd for emacs-devel@gnu.org; Fri, 12 Aug 2005 16:16:09 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1E3ffn-0007jK-Sv; Fri, 12 Aug 2005 15:58:35 -0400 Original-To: In-reply-to: (klaus.berndl@sdm.de) 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:41972 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41972 I looked at the code for directory-files, and it seems you cannot quit out of it while it is waiting in a system call. This means that while-no-input won't currently work when directory-files hangs in that way. It is probably possible to implement quitting out of the system call in directory-files. Doing this requires setting immediate_quit to 1, at least while that system call is running. Which system call takes the long time? Is it opendir, or readdir?