From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: loaddefs.el filenames as seen by `update-file-autoloads' Date: Tue, 13 May 2003 00:06:45 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200305122305.h4CN5EGw009946@rum.cs.yale.edu> <200305130114.h4D1EDBZ010190@rum.cs.yale.edu> Reply-To: ttn@glug.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1052799058 25841 80.91.224.249 (13 May 2003 04:10:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 13 May 2003 04:10:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 13 06:10:56 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 19FR7i-0006i4-00 for ; Tue, 13 May 2003 06:10:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19FRER-00074n-00 for ; Tue, 13 May 2003 06:17:39 +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 19FR7f-00016Y-05 for emacs-devel@quimby.gnus.org; Tue, 13 May 2003 00:10:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19FR72-0000gE-00 for emacs-devel@gnu.org; Tue, 13 May 2003 00:10:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19FR4b-0007PJ-00 for emacs-devel@gnu.org; Tue, 13 May 2003 00:07:29 -0400 Original-Received: from colo.agora-net.com ([207.245.84.69]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FR3x-0007Ha-00 for emacs-devel@gnu.org; Tue, 13 May 2003 00:06:49 -0400 Original-Received: from ttn by colo.agora-net.com with local (Exim 3.34 #1) id 19FR3t-0004v6-00; Tue, 13 May 2003 00:06:45 -0400 Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-reply-to: <200305130114.h4D1EDBZ010190@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) 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:13820 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13820 From: "Stefan Monnier" Date: Mon, 12 May 2003 21:14:13 -0400 Under W32, the file-system preserves the capitalization, even though it ignores it when searching for files. I.e. you can't have both "Foo" and "FOO", but after creating "Foo", an application can know whether the file was created as "Foo" or "foo" or "FOO". If `directory-files' *can* properly return ("ChangeLog" "README" "configure"), rather than ("changelog" "readme" "configure") or ("CHANGELOG" "README" "CONFIGURE"), without having to read the user's mind (and without performance cost) then I think it should. ok, i see what you mean. i see that `readdir' for vms (in sysdep.c) does no case translation, and stepping through that function a few times in the debugger shows the filename to be upcased from the beginning. it looks like vms that i am using follows the last of the three models above. Why do you need to upcase in expand-file-name ? Isn't VMS happy either way ? i don't know if it's necessary; perhaps for consistency? after a while, the "vms mindset" of upcase filenames is not as disturbing as initially. what is more disturbing is the case folding for dcl command procedure arguments, necessitating quoting, which has its own share of freaky and baroque idiosyncrasies, but i digress... update-file-autoloads is not used exclusievly for lisp/loaddefs.el: it is also used by some outside elisp packages. Admittedly, they probably also use lowercase filenames. yeah, i have some familiarity from use in ttn-pers-elisp, although this is the first time i've looked at the case issue. > (expand-file-name "foo.el") => "AXPA:[TTN.EMACS.EMACS212_3]FOO.EL" Since VMS is case-insensitive, it would work just as well if expand-file-name returned "AXPA:[TTN.EMACS.EMACS212_3]FOO.EL". i presume you mean "axpa:[ttn.emacs.emacs212_3]foo.el", as currently `expand-file-name' does indeed upcase. thi