From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stavros Macrakis" Newsgroups: gmane.emacs.devel Subject: RE: etags confused with uppercase filenames (on Windows) Date: Wed, 3 Apr 2002 16:40:51 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <000501c1db58$3a0055b0$34f3fea9@gazi> References: Reply-To: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1017870145 22413 127.0.0.1 (3 Apr 2002 21:42:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 3 Apr 2002 21:42:25 +0000 (UTC) Cc: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ssWO-0005pO-00 for ; Wed, 03 Apr 2002 23:42:24 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16ssif-0004Lu-00 for ; Wed, 03 Apr 2002 23:55:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ssW8-0003YP-00; Wed, 03 Apr 2002 16:42:08 -0500 Original-Received: from out008pub.verizon.net ([206.46.170.108] helo=out008.verizon.net) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16ssVJ-0003U1-00; Wed, 03 Apr 2002 16:41:17 -0500 Original-Received: from gazi ([141.154.229.9]) by out008.verizon.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20020403214116.OVVN16955.out008.verizon.net@gazi>; Wed, 3 Apr 2002 15:41:16 -0600 Original-To: "Eli Zaretskii" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2362 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2362 > > 2bis) else, if the file name is all upcase, upcase the builtin file name suffixes and retry > > It would probably be better to apply a bit more fine checks to the > file name. For example, I suspect that only file names that fit into > the DOS 8+3 limitations are upcased like that. Stavros, can you > confirm that in your case? That's probably true, although I've renamed them now. The main reason I suggested that a warning would be appropriate is that it took me a few *years* since I copied over these files to notice that they weren't being indexed by etags! On Windows, Emacs seems to accept *.EL as equivalent to *.el, so etags should, too (although a warning might be a good idea). In glancing at the code, I'm not 100% sure that Emacs is completely consistent about this (depending on the setting of case-fold-search) though.... I have not taken the time to check thoroughly. But without investigating this further (I don't think it deserves it!), I agree with Francesco's suggestions, except for (4), which I would make: 4) if suffix is all upcased, try downcasing, and give a warning if that succeeds This is a good idea because .EL is not the standard suffix, and may not work in all cases (e.g. when the files get moved to another system). On systems which only support uppercase filenames (does etags support any such), of course there should be no warning. -s