From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Emacs 23 does not load nxml but sgml-mode for .xml files? Date: Sun, 16 Aug 2009 19:45:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <124b4756-0cb3-4078-8194-489daf7655d6@r18g2000yqd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250555798 31731 80.91.229.12 (18 Aug 2009 00:36:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2009 00:36:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 18 02:36:31 2009 Return-path: Envelope-to: geh-help-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 1MdCgh-0005Nc-E8 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2009 02:36:31 +0200 Original-Received: from localhost ([127.0.0.1]:36564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdCgg-0001G1-F4 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Aug 2009 20:36:30 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h21g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1250477138 5926 127.0.0.1 (17 Aug 2009 02:45:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 17 Aug 2009 02:45:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h21g2000yqa.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172042 X-Mailman-Approved-At: Mon, 17 Aug 2009 20:34:48 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67229 Archived-At: Thanks Lennart. I filed a bug report. Xah On Aug 16, 5:49 pm, Lennart Borgman wrote: > On Sat, Aug 15, 2009 at 5:08 PM, Xah Lee wrote: > > on my Windows emacs, when i open a xml file, seems the default mode > > loaded is sgml-mode, not nxml? > > > 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.) > > > > > GNU Emacs 23.1.50.1 (i386-mingw-nt6.0.6002) of 2009-06-30 on > > LENNART-69DE564 (patched) > > > Reproducible with emacs -Q using FSF's official emacs for Windows > > binary too. > > > Xah > > =E2=88=91http://xahlee.org/ > > > =E2=98=84