all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <Stephen.Berman@gmx.net>
To: emacs-devel@gnu.org
Subject: precedence of auto-mode-alist and magic-fallback-mode-alist
Date: Sat, 08 Dec 2007 15:23:34 +0100	[thread overview]
Message-ID: <87ejdxi7tl.fsf@escher.local.home> (raw)

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

             reply	other threads:[~2007-12-08 14:23 UTC|newest]

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

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

  git send-email \
    --in-reply-to=87ejdxi7tl.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.