From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: precedence of auto-mode-alist and magic-fallback-mode-alist Date: Sat, 08 Dec 2007 16:03:15 +0100 Message-ID: <475AB233.4090503@gmail.com> References: <87ejdxi7tl.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197126216 18885 80.91.229.12 (8 Dec 2007 15:03:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2007 15:03:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 08 16:03:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J11DU-0006eR-9B for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 16:03:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J11DC-0006CK-OF for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 10:03:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J11D9-0006CE-EY for emacs-devel@gnu.org; Sat, 08 Dec 2007 10:03:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J11D8-0006C2-H6 for emacs-devel@gnu.org; Sat, 08 Dec 2007 10:03:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J11D8-0006Bz-D4 for emacs-devel@gnu.org; Sat, 08 Dec 2007 10:03:22 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J11D7-0004nk-PO for emacs-devel@gnu.org; Sat, 08 Dec 2007 10:03:22 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:63673 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1J11D2-0002R6-9H; Sat, 08 Dec 2007 16:03:19 +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 In-Reply-To: <87ejdxi7tl.fsf@escher.local.home> X-Antivirus: avast! (VPS 071208-0, 2007-12-08), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1J11D2-0002R6-9H. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1J11D2-0002R6-9H f0ecbeecd791af6872ce43fadb301b16 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84875 Archived-At: 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?