unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Foreign file names on MS-Windows
Date: Sun, 23 Mar 2008 21:15:25 -0400	[thread overview]
Message-ID: <jwvabko7wko.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <uskyif4rw.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 23 Mar 2008 06:22:43 +0200")

>> >> I.e. why fiddle with Vw32_downcase_file_names?
>> 
>> > Because 8+3 aliases are reported in all caps, as the comment says, so
>> > instead of "some foreign file name.mp3" you get something like
>> > "ABCDE~45.MP3", and I fear that not every alist in Emacs that supports
>> > file recognition by extension includes both lower- and upper-case
>> > variants.  Also, lower-casing the 8+3 aliases makes them slightly less
>> > ugly, IMO.
>> 
>> The ugliness factor is irrelevant: those files are ugly anyway, and
>> having them in all-caps makes it arguably (to me) more clear what's
>> going on.
>> 
>> But the issue of recognition of all-caps extension is a good argument,
>> that's the one that should be in the comment.

> Is it worth the trouble to downcase only the extension?

I never suggested such a thing.  I just meant to say that downcasing is
worthwhile because of the extension-matching done in the likes of
auto-mode-alist, but these don't only work on the extension anyway.
I.e. your code is fine, it's just the comment that doesn't give the good
reason for it.


        Stefan




      reply	other threads:[~2008-03-24  1:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-22 12:50 Foreign file names on MS-Windows Eli Zaretskii
2008-03-22 13:21 ` Lennart Borgman (gmail)
2008-03-22 13:32   ` Eli Zaretskii
2008-03-22 14:34 ` Eli Zaretskii
2008-03-22 15:38 ` Jason Rumney
2008-03-22 17:26   ` Eli Zaretskii
2008-03-22 17:32 ` Stefan Monnier
2008-03-22 18:15   ` Eli Zaretskii
2008-03-23  0:56     ` Stefan Monnier
2008-03-23  4:22       ` Eli Zaretskii
2008-03-24  1:15         ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvabko7wko.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).