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: Can't interrupt directory_files_internal run from timer-event-handler Date: Mon, 08 Aug 2005 20:27:40 -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 1123547714 16620 80.91.229.2 (9 Aug 2005 00:35:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2005 00:35:14 +0000 (UTC) Cc: kzeitler@lucent.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 09 02:35:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2I4l-0005wi-3Q for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2005 02:34:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2I7n-0008Gx-7S for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2005 20:37:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2I6P-0007oh-DZ for emacs-devel@gnu.org; Mon, 08 Aug 2005 20:36:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2I6L-0007lq-Qo for emacs-devel@gnu.org; Mon, 08 Aug 2005 20:36:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2I6L-0007ka-BO for emacs-devel@gnu.org; Mon, 08 Aug 2005 20:36:17 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E2IDj-00079f-IU for emacs-devel@gnu.org; Mon, 08 Aug 2005 20:43:55 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1E2Hy0-0006QR-9W; Mon, 08 Aug 2005 20:27:40 -0400 Original-To: Eli Zaretskii In-reply-to: (message from Eli Zaretskii on Sun, 07 Aug 2005 21:15:53 +0300) 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:41737 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41737 A combination of file-attributes (looking at the number of links) and directory-files should do that, I think. But...it is using directory-files now, and that is what causes the problem. The question is how to avoid using using directory-files. I'm not an expert on this, but I think it's impossible to create such alternate names, since GNU Find uses this fact to detect directories with no subdirectories. Linux seems to refuse to do this even if you are root. But I believe that root could do it on Unix at some point. Maybe that was only in old versions in the early 80s. It might be that that case is so peculiar that it can safely be ignored here. If so, looking at the link count would be ok.