From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: Behavior of directory-files on Windows Date: Thu, 01 Dec 2011 18:34:17 +0100 Message-ID: <878vmw6vs6.fsf@gmail.com> References: <87liqw3116.fsf@gmail.com> <83r50o439k.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322760872 30109 80.91.229.12 (1 Dec 2011 17:34:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Dec 2011 17:34:32 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 01 18:34:28 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RWAWi-0002uF-3R for ged-emacs-devel@m.gmane.org; Thu, 01 Dec 2011 18:34:28 +0100 Original-Received: from localhost ([::1]:52531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWAWh-0006xg-NS for ged-emacs-devel@m.gmane.org; Thu, 01 Dec 2011 12:34:27 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWAWf-0006xQ-3I for emacs-devel@gnu.org; Thu, 01 Dec 2011 12:34:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWAWe-0000ZV-56 for emacs-devel@gnu.org; Thu, 01 Dec 2011 12:34:25 -0500 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:62811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWAWe-0000ZJ-0A; Thu, 01 Dec 2011 12:34:24 -0500 Original-Received: by bkbzt12 with SMTP id zt12so79824bkb.0 for ; Thu, 01 Dec 2011 09:34:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=LSyD7m8fJUSHG5anCnxwz1gTllN/ZCJzbKDjHa7CFlA=; b=jR+JZR6Cg4lKnBWPtAiY7du0QMr8RMk7VLS9RzxphwS/1sGB6A9CLGG3OKly8pa+Aj wK5QeZssJKRV6a4ymiETvTsXMRtynMPXn0gh8r8nsU561fw56AMBuq23yMKJi4rDFrX+ 13ARlVAkFV75F7qBurf8uBiw5+yEAzvB7kbwY= Original-Received: by 10.204.149.212 with SMTP id u20mr8336808bkv.120.1322760862709; Thu, 01 Dec 2011 09:34:22 -0800 (PST) Original-Received: from thierry-MM061 (52.78.88.79.rev.sfr.net. [79.88.78.52]) by mx.google.com with ESMTPS id hw14sm12712110bkc.16.2011.12.01.09.34.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Dec 2011 09:34:21 -0800 (PST) In-Reply-To: <83r50o439k.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Dec 2011 19:20:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146399 Archived-At: Eli Zaretskii writes: >> From: Juanma Barranquero >> Date: Thu, 1 Dec 2011 15:39:41 +0100 >> Cc: emacs-devel@gnu.org >> >> On Thu, Dec 1, 2011 at 13:54, Thierry Volpiatto >> wrote: >> >> > If I do: >> > (directory-files "c:/") >> > The "c:/." and "c:/.." candidates are omitted >> >> Assuming C:/ is really the root of your Windows' installation drive, >> it does not have the . and .. entries (try doing "dir /a:" in C:\ and >> in a subdirectory). So they are not omitted, they just are not there. > > Right. DJGPP, the development environment used to build the DOS port > of Emacs, actually _invents_ these two entries in the root of each > drive, to avoid the unpleasant surprises like the one Thierry just > hit. So that would make sense to add these two entries to output of `directory-files', after all, one is able to do: (find-file "c:/.") but when he list directory this file ("c:/.") is not present. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997