From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Xah Lee" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4169: 23.1.50; default mode for xml files not correct Date: Sun, 16 Aug 2009 19:33:27 -0700 Message-ID: <48317C0E1A69429482B1548C992F0FFC@xahPC> Reply-To: Xah Lee , 4169@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250517478 9648 80.91.229.12 (17 Aug 2009 13:57:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2009 13:57:58 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 17 15:57:50 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Md2iW-000853-QM for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2009 15:57:45 +0200 Original-Received: from localhost ([127.0.0.1]:40369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md2iW-0004Di-Ey for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2009 09:57:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McsFS-00078E-Ix for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 22:47:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McsFN-00077q-Vi for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 22:47:02 -0400 Original-Received: from [199.232.76.173] (port=36208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McsFN-00077l-QQ for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 22:46:57 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43946) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1McsFM-00064c-KD for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 22:46:57 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7H2kn43000732; Sun, 16 Aug 2009 19:46:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7H2e5LN032021; Sun, 16 Aug 2009 19:40:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Xah Lee" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 17 Aug 2009 02:40:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4169 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125047642431059 (code B ref -1); Mon, 17 Aug 2009 02:40:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Aug 2009 02:33:44 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7H2XgQf031056 for ; Sun, 16 Aug 2009 19:33:44 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:37378 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Mcs2Y-0002Wa-AL for emacs-pretest-bug@gnu.org; Sun, 16 Aug 2009 22:33:42 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Mcs2W-0004eY-6L for emacs-pretest-bug@gnu.org; Sun, 16 Aug 2009 22:33:41 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:53045) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mcs2V-0004du-T5 for emacs-pretest-bug@gnu.org; Sun, 16 Aug 2009 22:33:40 -0400 Original-Received: from xahPC (c-76-102-12-87.hsd1.ca.comcast.net [76.102.12.87]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MKpCa-1Mcs2Q2czb-000D31; Sun, 16 Aug 2009 22:33:36 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18005 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005 X-Provags-ID: V01U2FsdGVkX1/llsNp1BD2UoHyC49vnUsIo79Xs2owpMDwfnB PsuMudhz5wiezpmr1iKJB1nn0JHwH3kR/2QKUeZcWYX/aUBIU8 K09JQmArl+yTC+L9EllwQ== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id n7H2kn43000732 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 16 Aug 2009 22:47:02 -0400 X-Mailman-Approved-At: Mon, 17 Aug 2009 09:46:11 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30300 gmane.emacs.pretest.bugs:24963 Archived-At: On my Windows emacs, when i open a xml file, the default mode loaded is=20 sgml-mode, not nxml. This is reproducible with Emacs -Q with FSF's binary for Windows. Since nxml is better, it seems the default should be nxml-mode. PS here's some tidbits from Lennart. On Aug 16, 5:49 pm, Lennart Borgman wrote: > On Sat, Aug 15, 2009 at 5:08 PM, Xah Lee wrote: > > > is this a bug or intentional? > > It is one of those unintentional problems that has not got the > official bug status ;-) > > I wrote majmodpri.el (part of nXhtml) to take care of this kind of > problem and suggested that something like it should be included in > Emacs. There has not been any positive response to it yet. > > The reason I wrote it was that this problem is much more prominent > when there are multi major modes as an alternative too. (For an xhtml > file for example you could use html-mode, nxml-mode, html-mumamo-mode, > nxhtml-mumamo-mode etc.) I'm not sure how emacs choose modes, or the policies, mechanisms, file=20 locations...etc, or what majmodpri.el is supposed to do. Anyway, i though= t=20 this warrant a bug report for the record. Thanks. Xah =E2=88=91 http://xahlee.org/ =E2=98=84=20