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: Tue, 19 Dec 2006 18:22:40 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

>     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 ?

> It wouldn't be correct.  These file names are case sensitive.

In what sense would it not be correct?
In what sense is any other choice correct?
And more importantly, in what sense would it be less incorrect to use
fundamental-mode for those files?

I agree that it wouldn't be correct for bash to use a file named
".BASH_PROFILE" rather than ".bash_profile", but w.r.t Emacs choosing
a particular mode when reading such a file and in the absence of any other
information about which mode to use, I think that using sh-mode is at least
no worse than fundamental-mode for such a file.
I have seen such wrongly capitalized files occasionally because they went
through some msdosish tool like `winzip' or something.  But I've never seen
someone accidentally naming his Perl file ".BASH_PROFILE".


        Stefan




reply via email to

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