all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Stephen Berman <Stephen.Berman@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: precedence of auto-mode-alist and magic-fallback-mode-alist
Date: Sat, 08 Dec 2007 16:03:15 +0100	[thread overview]
Message-ID: <475AB233.4090503@gmail.com> (raw)
In-Reply-To: <87ejdxi7tl.fsf@escher.local.home>

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	other threads:[~2007-12-08 15:03 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) [this message]
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=475AB233.4090503@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=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.