From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: precedence of auto-mode-alist and magic-fallback-mode-alist Date: Sat, 08 Dec 2007 15:23:34 +0100 Message-ID: <87ejdxi7tl.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197123864 12631 80.91.229.12 (8 Dec 2007 14:24:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2007 14:24:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 08 15:24:33 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 1J10bW-0003Nm-Mq for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 15:24:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J10bF-0004KS-Cn for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 09:24:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J10b2-0004BD-49 for emacs-devel@gnu.org; Sat, 08 Dec 2007 09:24:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J10b0-000495-BO for emacs-devel@gnu.org; Sat, 08 Dec 2007 09:23:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J10b0-00048v-5g for emacs-devel@gnu.org; Sat, 08 Dec 2007 09:23:58 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J10az-00061M-TG for emacs-devel@gnu.org; Sat, 08 Dec 2007 09:23:58 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1J10an-0007pv-AV for emacs-devel@gnu.org; Sat, 08 Dec 2007 14:23:45 +0000 Original-Received: from i5387de9c.versanet.de ([83.135.222.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Dec 2007 14:23:45 +0000 Original-Received: from Stephen.Berman by i5387de9c.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Dec 2007 14:23:45 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387de9c.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:84874 Archived-At: 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