From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Handling invalid HTML Date: Tue, 18 Oct 2005 22:43:57 -0400 Message-ID: References: <87br1ni7gl.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1129690017 28734 80.91.229.2 (19 Oct 2005 02:46:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2005 02:46:57 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 19 04:46:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ES3yL-0002jy-UZ for ged-emacs-devel@m.gmane.org; Wed, 19 Oct 2005 04:46:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ES3yL-0003Oc-FM for ged-emacs-devel@m.gmane.org; Tue, 18 Oct 2005 22:46:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ES3vr-0002UN-B5 for emacs-devel@gnu.org; Tue, 18 Oct 2005 22:43:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ES3vq-0002U2-P3 for emacs-devel@gnu.org; Tue, 18 Oct 2005 22:43:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ES3vq-0002Tx-Hz for emacs-devel@gnu.org; Tue, 18 Oct 2005 22:43:58 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ES3vq-0002BJ-PM for emacs-devel@gnu.org; Tue, 18 Oct 2005 22:43:58 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1ES3vp-0006ku-Py; Tue, 18 Oct 2005 22:43:57 -0400 Original-To: Juri Linkov In-reply-to: <87br1ni7gl.fsf@jurta.org> (message from Juri Linkov on Tue, 18 Oct 2005 11:06:42 +0300) 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:44292 Archived-At: 3. Visiting Mozilla Firefox bookmark file in Emacs also can't detect the type of this file. Emacs opens it in SGML mode whereas it is actually HTML file. This problem is caused by the default value of `magic-mode-alist'. Maybe the `.html' extension in `auto-mode-alist' should take precedence over `magic-mode-alist'? That would be the tail wagging the dog. If there is a suitable criterion to test, that would give the right results, whatever function is called through magic-mode-alist can test that criterion.