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: loaddefs.el filenames as seen by `update-file-autoloads' Date: Mon, 12 May 2003 19:05:14 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305122305.h4CN5EGw009946@rum.cs.yale.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052781484 18334 80.91.224.249 (12 May 2003 23:18:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 12 May 2003 23:18:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 13 01:18:03 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19FMYV-0004lW-00 for ; Tue, 13 May 2003 01:18:03 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19FMf7-0004Q3-00 for ; Tue, 13 May 2003 01:24:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FMZZ-0000mi-02 for emacs-devel@quimby.gnus.org; Mon, 12 May 2003 19:19:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19FMZ3-0000Ye-00 for emacs-devel@gnu.org; Mon, 12 May 2003 19:18:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19FMY2-0008LW-00 for emacs-devel@gnu.org; Mon, 12 May 2003 19:17:35 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FMM8-0003yz-00 for emacs-devel@gnu.org; Mon, 12 May 2003 19:05:16 -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 h4CN5Fx6009948; Mon, 12 May 2003 19:05:15 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h4CN5EGw009946; Mon, 12 May 2003 19:05:14 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Thien-Thi Nguyen X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13812 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13812 > under vms, filenames are case-insensitive and are upcased w/in emacs. Any reason why it's upcased ? Is it just the tradition under VMS ? At least under Emacs, the tradition is rather to use lowercase for most file names, so it would make more sense to downcase (and most places where we want to ignore case, we downcase rather than upcase, your code below being a prime example). Also it would be better to do what W32 does: preserve capitalization. Is that possible ? > (let ((load-name ...)) > (when (memq system-type '(vax-vms vms > ;; Add other systems whose filenames > ;; are case insensitive and for which > ;; `expand-file-name' DTRT, here. > )) > (setq load-name (downcase load-name))) > ... > (when (string= load-name ...) ...)) I'd rather use file-name-equal. Admittedly, since loaddefs.el is still under CVS control and is hence shared between all kinds of systems, it might be better to just systematically downcase, independently from the system in use. Hold it. What about the file name in the (autoload ...) form ? Since the `autoload' might be used on case-sensitive systems, it needs to have the right capitalization (now there's an example where preserving capitalization in filenames (even if you ignore it) is beneficial). > changing `load-name' instead of making the comparison case-insensitive > means loaddefs.el will have lowercased frags (under vms), a change that > is transparent to `expand-file-name'. is this ok? other ideas? I don't understand your references to expand-file-name. Could you lay out what you mean ? Stefan