emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image.el doesn't associate image-mode with .JPG files


From: Stefan Monnier
Subject: Re: image.el doesn't associate image-mode with .JPG files
Date: Mon, 18 Dec 2006 05:17:57 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

>     Can you point to a single instance where doing a case-insensitve match
>     as a fallback would be harmful?

> There are many patterns which are meant to apply to file names used
> for specific conventional purposes in a GNU-like system, names
> which are used with specific case patterns.  Here's one example.

>      
> ("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" . 
> sh-mode)

I don't see in which sense this is an example.  After all, what harm would
there be to use sh-mode for files named .BASH_PROFILE or .ZLOGIN ?
Or even .bAsH_PROfilE ?

> The answer is no, and I've chosen a different solution.

I think the two solutions aren't mutually exclusive.  I agree with Jason
that it would make a lot of sense to use a fallback where we try
auto-mode-alist a second time with case-fold-search set to t if the first
time didn't turn up any match.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]