From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: set-auto-mode on case insensitive OS:es [Was: Re: CC Mode 5.30] Date: Mon, 07 Jul 2003 10:27:19 -0400 Sender: cc-mode-help-admin@lists.sourceforge.net Message-ID: <200307071427.h67ERKg6015692@rum.cs.yale.edu> References: <5bhe6119sc.fsf@lister.roxen.com> <5bel1518cr.fsf@lister.roxen.com> <5bznjsenur.fsf@lister.roxen.com> <5bfzlj4xk1.fsf_-_@lister.roxen.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057598406 26338 80.91.224.249 (7 Jul 2003 17:20:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 7 Jul 2003 17:20:06 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Mon Jul 07 19:20:00 2003 Return-path: Original-Received: from lists.sourceforge.net ([66.35.250.206] helo=sc8-sf-list2.sourceforge.net) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ZZeh-0006q4-00 for ; Mon, 07 Jul 2003 19:20:00 +0200 Original-Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.13] helo=sc8-sf-list1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 19ZZfb-0001UX-00; Mon, 07 Jul 2003 10:20:55 -0700 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19ZZef-0008PU-00 for ; Mon, 07 Jul 2003 10:19:57 -0700 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.20) id 19ZZeb-0000sE-Ua for bug-cc-mode@gnu.org; Mon, 07 Jul 2003 13:19:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ZZaB-0001qU-Cz for bug-cc-mode@gnu.org; Mon, 07 Jul 2003 13:15:20 -0400 Original-Received: from gnuftp.gnu.org ([199.232.41.6]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZXl6-0003HQ-2R; Mon, 07 Jul 2003 11:18:28 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by gnuftp.gnu.org with esmtp (Exim 4.20) id 19ZX19-0004Yr-Df; Mon, 07 Jul 2003 10:30:59 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h67ERKHl015694; Mon, 7 Jul 2003 10:27:20 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h67ERKg6015692; Mon, 7 Jul 2003 10:27:20 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Unsubscribe: , List-Archive: X-Original-Date: Mon, 07 Jul 2003 10:27:19 -0400 Xref: main.gmane.org gmane.emacs.cc-mode.general:632 gmane.emacs.devel:15458 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15458 > Also, NT file systems can distinguish between upper and lower case > chars visually, even if it doesn't matter when finding files. Thus > it could be an idea to try to match the name case sensitively > first, and if that fails do another attempt with a downcased name > (or with case-fold-search set). > > Whether this would really give the desired results is a tricky > question. I think that we had better wait for MS-Windows users to tell > us if that would really work well with their typical patterns of usage. I think it's a good idea, but probably will hit various problems where the capitalization of the filename gets lost (because it passed through a program that is not careful to preserve it). I seem to remember that double-clicking on an file icon to have Emacs open the file passes the 8+3 allcaps filename to Emacs, so with the above change, doing it on a C file would open it in C++ mode since the extension would be .C rather than .c. Stefan ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01