From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: etags confused with uppercase filenames (on Windows) Date: Tue, 02 Apr 2002 11:02:49 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200204021602.g32G2oS02957@rum.cs.yale.edu> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017763404 26803 127.0.0.1 (2 Apr 2002 16:03:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2002 16:03:24 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers , Stavros Macrakis Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16sQkl-0006yC-00 for ; Tue, 02 Apr 2002 18:03:23 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16sQwU-0006HT-00 for ; Tue, 02 Apr 2002 18:15:30 +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 16sQka-0001T5-00; Tue, 02 Apr 2002 11:03:12 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16sQkE-0001Re-00; Tue, 02 Apr 2002 11:02:50 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g32G2oS02957; Tue, 2 Apr 2002 11:02:50 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Francesco Potorti` 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:2319 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2319 > To determine a file's language, currently etags does the following: > > 1) if the user specified a language, use that > 2) else, guess it from the file name > 3) else, look for #! > 4) ... (other euristics) > > I think that I could add: > > 2bis) else, if the file name is all upcase, upcase the builtin file name > suffixes and retry How about 4) try to guess from the filename but ignore case this time. I don't think that the "all upcase" condition is necessary. But I do think that #! should take precedence since I'd rather not change the existing behavior on POSIX systems. Stefan