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: Lennart Borgman (gmail)
Subject: Re: precedence of auto-mode-alist and magic-fallback-mode-alist
Date: Sat, 08 Dec 2007 16:03:15 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Stephen Berman wrote:
On GNU Emacs 23.0.50.3 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of
2007-11-29 on escher I do the following:

1. emacs -Q
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?

Steve Berman


Should not the rules be different for a file fetched from the net? We can't know association between the URL and the content type. (Maybe the headers can be used?)

BTW, why is the new-window argument ignored in browse-url-emacs?




reply via email to

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