From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: find-library-name fails if file (with no extension) exists. Date: Wed, 22 Nov 2006 10:35:46 +0100 Message-ID: <85vel7ombx.fsf@lola.goethe.zz> References: <8764d8u085.fsf@pacem.orebokech.com> <85lkm4zbfa.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164189964 20107 80.91.229.2 (22 Nov 2006 10:06:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 10:06:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 22 11:05:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmozM-0007sV-Lo for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 11:05:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmozL-0000iO-TA for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 05:05:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmoyC-0000Tz-9i for emacs-devel@gnu.org; Wed, 22 Nov 2006 05:04:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmoyB-0000TO-Ea for emacs-devel@gnu.org; Wed, 22 Nov 2006 05:04:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmoyA-0000T7-9B for emacs-devel@gnu.org; Wed, 22 Nov 2006 05:04:43 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gmoy9-00072G-UK for emacs-devel@gnu.org; Wed, 22 Nov 2006 05:04:42 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.52) id 1Gmoy9-0006b2-Cz; Wed, 22 Nov 2006 05:04:41 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 24BD21C29846; Wed, 22 Nov 2006 10:35:46 +0100 (CET) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Wed\, 22 Nov 2006 06\:10\:41 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) 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:62653 Archived-At: Eli Zaretskii writes: >> From: David Kastrup >> Date: Tue, 21 Nov 2006 23:23:37 +0100 >> Cc: Andreas Schwab , Romain Francoise , >> Emacs Devel >> >> Having different file names map to the same file is a recipe for >> trouble. > > Then links are a recipe for trouble. They certainly are, and this includes `.' and `..'. However, they offer a reasonable tradeoff between trouble and utility. And they don't violate the principle that listing a directory will tell you all legal _file names_ available from that directory. I can decide whether the file `/fdsaf/dsafd/asfd/daffa' can exist by looking at the directory listing of `/fdsaf/dsafd/asfd/'. That is not possible with case insensitive file systems unless I have a function that is guaranteed to compare file names exactly in the same manner as the operating system does. And if I have such a function, it might mean that I can't use file names as an index into a hash data structure unless I have a hash function that maps operating-system-identical file names onto identical keys. And so forth and so on. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum