From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: precedence of auto-mode-alist and magic-fallback-mode-alist Date: Sat, 08 Dec 2007 15:09:56 -0500 Message-ID: References: <87ejdxi7tl.fsf@escher.local.home> <475AB233.4090503@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197144620 5499 80.91.229.12 (8 Dec 2007 20:10:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2007 20:10:20 +0000 (UTC) Cc: Stephen Berman , emacs-devel@gnu.org To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 08 21:10:28 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 1J160H-0001DW-Km for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 21:10:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1600-0000NX-F1 for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 15:10:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J15zv-0000Kh-KS for emacs-devel@gnu.org; Sat, 08 Dec 2007 15:10:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J15zt-0000HY-KB for emacs-devel@gnu.org; Sat, 08 Dec 2007 15:10:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J15zt-0000HB-CN for emacs-devel@gnu.org; Sat, 08 Dec 2007 15:10:01 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J15zs-0008Bc-F4 for emacs-devel@gnu.org; Sat, 08 Dec 2007 15:10:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAOaIWkfO+J2ydGdsb2JhbACPYQEw X-IronPort-AV: E=Sophos;i="4.23,271,1194238800"; d="scan'208";a="11097384" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 08 Dec 2007 15:09:56 -0500 Original-Received: from pastel.home ([206.248.157.178]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id NGR96856; Sat, 08 Dec 2007 15:09:56 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 7CB937F79; Sat, 8 Dec 2007 15:09:56 -0500 (EST) In-Reply-To: <475AB233.4090503@gmail.com> (Lennart Borgman's message of "Sat, 08 Dec 2007 16:03:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:84892 Archived-At: >> 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