[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Case folding for auto-mode-alist
From: |
Stefan Monnier |
Subject: |
Re: Case folding for auto-mode-alist |
Date: |
Wed, 31 Oct 2007 12:17:04 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
>>> Yes, you can get that by setting auto-mode-case-fold.
>>> But for some reason that still escapes me, Richard is strongly opposed to
>>> activating it by default.
>>
>>> Because it is too drastic for the actual problem, and likely to often
>>> be wrong.
>>
>> Yes, that is your claim. I have seen no evidence that it will "likely" and
>> "often" be "wrong". As a matter of fact I have seen no evidence that it will
>> ever be "wrong".
> .c vs .C for C vs. C++ files is probably the most relevant item, and
> .Z vs .z for compress vs uh, pack? files could be one, though in
> practice one would uncompress both of those "legacy" formats with
> gunzip.
Thanks for playing: the code tries the case-non-folded name first and
only if that one fails, does it fallback to case-folding, so the above
examples all work correctly.
I.e. enabling auto-mode-case-fold only changes the behavior in the case
where the buffer would otherwise be put in fundamental-mode. So the only
possible downside is if the mode chosen by auto-mode-case-fold is worse
than fundamental-mode.
Stefan
- Re: doc-view compilation warnings, (continued)
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/24
- doc-view.patch waiting for installation (was: doc-view compilation warnings), Tassilo Horn, 2007/10/26
- Re: doc-view.patch waiting for installation, Glenn Morris, 2007/10/28
- Re: doc-view.patch waiting for installation, Tassilo Horn, 2007/10/29
- Re: doc-view.patch waiting for installation, Glenn Morris, 2007/10/30
- Case folding for auto-mode-alist (was: doc-view.patch waiting for installation), Reiner Steib, 2007/10/30
- Re: Case folding for auto-mode-alist, Stefan Monnier, 2007/10/30
- Re: Case folding for auto-mode-alist, Richard Stallman, 2007/10/31
- Re: Case folding for auto-mode-alist, Stefan Monnier, 2007/10/31
- Re: Case folding for auto-mode-alist, David Kastrup, 2007/10/31
- Re: Case folding for auto-mode-alist,
Stefan Monnier <=
- Re: doc-view compilation warnings, Stefan Monnier, 2007/10/24
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/24
- Re: doc-view compilation warnings, Richard Stallman, 2007/10/24
- Re: doc-view compilation warnings, Richard Stallman, 2007/10/24
- Re: doc-view compilation warnings, Richard Stallman, 2007/10/24
- Re: doc-view compilation warnings, Richard Stallman, 2007/10/24
- Re: doc-view compilation warnings, Richard Stallman, 2007/10/23
- Re: doc-view compilation warnings, Richard Stallman, 2007/10/23
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/24
- Re: doc-view compilation warnings, David Kastrup, 2007/10/24