unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>
Cc: Stephen Berman <Stephen.Berman@gmx.net>, emacs-devel@gnu.org
Subject: Re: precedence of auto-mode-alist and magic-fallback-mode-alist
Date: Sat, 08 Dec 2007 15:09:56 -0500	[thread overview]
Message-ID: <jwvve79dk5o.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <475AB233.4090503@gmail.com> (Lennart Borgman's message of "Sat,  08 Dec 2007 16:03:15 +0100")

>> 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	other threads:[~2007-12-08 20:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-08 14:23 precedence of auto-mode-alist and magic-fallback-mode-alist Stephen Berman
2007-12-08 15:03 ` Lennart Borgman (gmail)
2007-12-08 20:09   ` Stefan Monnier [this message]
2007-12-08 23:45 ` Jason Rumney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvve79dk5o.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=Stephen.Berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).