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:15:12 -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 1123630973 16348 80.91.229.2 (9 Aug 2005 23:42:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2005 23:42:53 +0000 (UTC) Cc: kzeitler@lucent.com, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 10 01:42:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2dja-0007GZ-25 for ged-emacs-devel@m.gmane.org; Wed, 10 Aug 2005 01:42:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2dmf-0006va-AA for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2005 19:45:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2dlE-0006HP-ID for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:43:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2dl7-0006D0-Oq for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:43:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2dl6-0006AY-A5 for emacs-devel@gnu.org; Tue, 09 Aug 2005 19:43:48 -0400 Original-Received: from [195.186.19.63] (helo=mail16.bluewin.ch) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E2dpn-0006HL-66; Tue, 09 Aug 2005 19:48:39 -0400 Original-Received: from empanada.local (83.76.14.40) by mail16.bluewin.ch (Bluewin 7.2.063) id 42D280500047511A; Tue, 9 Aug 2005 23:33:57 +0000 Original-Received: by empanada.local (Postfix, from userid 502) id 39A895FBC79; Tue, 9 Aug 2005 19:15:16 -0400 (EDT) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Sat, 06 Aug 2005 09:57:08 +0300") 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:41825 > There's no need to run any program just to know if a directory is > empty. Emacs has primitives which will tell that directly (e.g., > file-attributes) and do that faster. If directory-files blocks (on a failed NFS server), file-attributes is pretty likely to block just as well, in which case `ls' may be a good way to do the equivalent of running directory-files asynchronously. Stefan