Subject: bug#508: emacs 22.2.1 becomes confused

From: Eli Zaretskii <[email-masked]>
Date: Fri, 04 Jul 2008 13:04:22 +0300

> Resent-From: Stefan Monnier <[email-masked]>
> Resent-To: [email-masked]
> Resent-CC: Emacs Bugs <[email-masked]>
> Resent-Sender: [email-masked]
> From: Stefan Monnier <[email-masked]>
> Date: Thu, 03 Jul 2008 00:54:57 -0400
> Cc: Kevin Rodgers <[email-masked]>, [email-masked]
> 
> > There could be a new defvar (or defconst), like this:
> 
> > (defvar case-insensitive-systems-alist
> >   '(ms-dos windows-nt cygwin darwin macos vax-vms axp-vms)
> >   "List of systems who have case insensitive filesystems.")
> 
> Actually, it should not be a variable but a function (and even
> a file-name operation, obeying file-name-handlers):
> 
>    (directory-case-sensitive-p FILE)

100% agreement: with the proliferation of network-mounted filesystems,
there's no longer a deterministic way to infer whether a filesystem is
case-sensitive or not from the OS brand.  Instead, we should query the
filesystem about that, and the function suggested by Stefan should do
that (when there're no file-name-handlers for the filesystem).