Subject: bug#508: emacs 22.2.1 becomes confused

From: "Bruce Korb" <[email-masked]>
Date: Mon, 30 Jun 2008 11:12:57 -0700

On Mon, Jun 30, 2008 at 10:53 AM, Sven Joachim <[email-masked]> wrote:
> The following patch tries to take care of this by matching the home
> directory case-sensitively on systems which usually have such
> filesystems, could you please test it?

Sure, but given you reproduced the problem and that this fixed it
for you, I'm guessing it will work.  Now, where does this file live?
I know I can find it if I look hard enough, but the easy search
only yielded /usr/share/emacs/22.2/lisp/files.elc
Thanks - Bruce

> --8<---------------cut here---------------start------------->8---
> --- files.el.~1.985.~   2008-06-11 07:54:21.000000000 +0200
> +++ files.el    2008-06-30 19:37:37.000000000 +0200
> @@ -1412,7 +1412,10 @@
>             (file-exists-p (file-name-directory
>                             (substring filename (1- (match-end 0))))))
>        (setq filename (substring filename (1- (match-end 0)))))
> -    (let ((tail directory-abbrev-alist))
> +    (let ((tail directory-abbrev-alist)
> +         (case-fold-search
> +          (if (memq system-type '(ms-dos windows-nt darwin macos vax-vms axp-vms))
> +              t nil)))
>       ;; If any elt of directory-abbrev-alist matches this name,
>       ;; abbreviate accordingly.
>       (while tail
> --8<---------------cut here---------------end--------------->8---