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 13:46:14 +0100 Message-ID: <85r6vvmyy1.fsf@lola.goethe.zz> References: <8764d8u085.fsf@pacem.orebokech.com> <85lkm4zbfa.fsf@lola.goethe.zz> <854pssz8u7.fsf@lola.goethe.zz> <45638B07.2090201@student.lu.se> <85wt5oxtly.fsf@lola.goethe.zz> <456396EA.9030207@student.lu.se> <857ixoxq6e.fsf@lola.goethe.zz> <85mz6jol1d.fsf@lola.goethe.zz> <45643D6D.2080200@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164199611 20478 80.91.229.2 (22 Nov 2006 12:46:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 12:46:51 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 22 13:46:48 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 1GmrUz-0002DD-9l for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 13:46:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmrUy-0006Vs-N2 for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2006 07:46:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmrUn-0006VS-Uy for emacs-devel@gnu.org; Wed, 22 Nov 2006 07:46:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmrUn-0006VG-H3 for emacs-devel@gnu.org; Wed, 22 Nov 2006 07:46:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmrUn-0006VD-Aq for emacs-devel@gnu.org; Wed, 22 Nov 2006 07:46:33 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GmrUn-0008Kd-AC for emacs-devel@gnu.org; Wed, 22 Nov 2006 07:46:33 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.52) id 1GmrUm-0008Ml-8x; Wed, 22 Nov 2006 07:46:32 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id C93781C29846; Wed, 22 Nov 2006 13:46:14 +0100 (CET) Original-To: Lennart Borgman In-Reply-To: <45643D6D.2080200@student.lu.se> (Lennart Borgman's message of "Wed\, 22 Nov 2006 13\:07\:09 +0100") 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:62659 Archived-At: Lennart Borgman writes: > David Kastrup wrote: > >>> Really? Then how come this has been satisfactorily solved several >>> times already, both in Emacs and in ports of Bash? >> >> It has? >> >> So why do I get "No Match" when typing >> >> C-x C-f /c/my docu >> >> when there is a directory >> >> /c/My Documents/ >> >> and opening >> >> /c/my documents/test.tex >> >> works. And why doesn't Emacs realize that it already has this file >> open when I now do >> >> C-x C-f /c/My Documents/test.tex RET >> >> and opens another buffer for it? >> >> I don't see this as a satisfactory solution. > > Looks like bugs to me. Sure. That was my point. Case-insensitive file systems trip up more than just incompetently naive programmers, as people want to make believe. And there are no easy solutions for all problems. > Are there any reason in those relatively simple cases that they can > not be solved? How would you do that? Once a path component is completed, you can try to do an actual stat call whenever a file _appears_ not to be there (and I guess that this is what happens, since `/c/my documents/' _is_ a valid component for further completion), but an incomplete file name? There is no function of the operating system for asking "is this a partial match with any filename"? And I also don't see how file-truename (which presumably is used for collision detection) can figure out a case-corrected path without doing the (slow) equivalent of `/bin/pwd'. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum