From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Gary ." Newsgroups: gmane.emacs.help Subject: Re: complete file at point in buffer - solution and questions Date: Wed, 19 May 2010 14:53:33 +0200 Message-ID: References: <28599706.post@talk.nabble.com> <28606928.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1274273653 31117 80.91.229.12 (19 May 2010 12:54:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 May 2010 12:54:13 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 19 14:54:10 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OEimn-000361-5X for geh-help-gnu-emacs@m.gmane.org; Wed, 19 May 2010 14:54:09 +0200 Original-Received: from localhost ([127.0.0.1]:44077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEimm-0008ED-5f for geh-help-gnu-emacs@m.gmane.org; Wed, 19 May 2010 08:54:08 -0400 Original-Received: from [140.186.70.92] (port=51769 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEimH-0008AQ-Og for Help-gnu-emacs@gnu.org; Wed, 19 May 2010 08:53:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEimF-0007ux-U5 for Help-gnu-emacs@gnu.org; Wed, 19 May 2010 08:53:37 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:43160) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEimF-0007uq-LD for Help-gnu-emacs@gnu.org; Wed, 19 May 2010 08:53:35 -0400 Original-Received: by wyb36 with SMTP id 36so9976wyb.0 for ; Wed, 19 May 2010 05:53:33 -0700 (PDT) Original-Received: by 10.216.184.6 with SMTP id r6mr2812475wem.87.1274273613284; Wed, 19 May 2010 05:53:33 -0700 (PDT) Original-Received: by 10.216.167.147 with HTTP; Wed, 19 May 2010 05:53:33 -0700 (PDT) In-Reply-To: <28606928.post@talk.nabble.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73670 Archived-At: On Wed, May 19, 2010 at 1:30 PM, Dirk80 wrote: >> 3.) In unix the file system is case sensitive. In windows OS the file >> system is not case sensitive. But my function is always case sensitive. ... > For this problem I found the solution: > > (let ((completion-ignore-case (memq system-type '(ms-dos windows-nt > cygwin)))) > ...) Please see the Cygwin FAQ: "4.30. Is Cygwin case-sensitive?? Several Unix programs expect to be able to use to filenames spelled the same way, but with different case. A prime example of this is perl's configuration script, which wants Makefile and makefile. Windows can't tell the difference between files with just different case, so the configuration fails. To help with this problem, Cygwin supports casesensitivity starting with Cygwin 1.7.0. For a detailed description how to use that feature see the Cygwin User's Guilde at http://cygwin.com/cygwin-ug-net/using-specialnames.html." (http://cygwin.com/faq/faq-nochunks.html#faq.using.case-sensitive) So basically, it looks like you shouldn't assume that in Cygwin the files ABC and abc are the same file (nor assume that they are different files...). Even without Cygwin, the filesystem being accessed might still support case sensitivity (some kind of network share, perhaps, or other remote system via tramp, are two examples that spring to mind) - the OS that emacs is running on isn't the best guide (and don't as me what is, as I don't know :-P )