emacs-devel
[Top][All Lists]
Advanced

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

Re: precedence of auto-mode-alist and magic-fallback-mode-alist


From: Stefan Monnier
Subject: Re: precedence of auto-mode-alist and magic-fallback-mode-alist
Date: Sat, 08 Dec 2007 15:09:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>> 2. M-x browse-url-emacs RET http://www.gnu.org RET
>> 3. After a short time a buffer www.gnu.org pops up containing the HTML
>> source of the gnu.org home page.  This buffer is in Org mode, because
>> auto-mode-alist takes precedence over magic-fallback-mode-alist (if I
>> save the buffer as "testme" then C-x C-f opens the file in html-mode).
>> 
>> I don't remember if cases like this were considered when this precedence
>> relation was established.  If not, is the above an argument against this
>> precedence relation, or just evidence that we can't always DTRT, or is
>> it a bug that can be fixed while retaining the current precedence
>> relation?

> Should not the rules be different for a file fetched from the net?

Indeed.  We should use the content-type info provided in the HTTP
response, but we don't have any support for that right now.


        Stefan




reply via email to

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