unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Xah Lee" <xah@xahlee.org>
To: <emacs-pretest-bug@gnu.org>
Subject: bug#4169: 23.1.50; default mode for xml files not correct
Date: Sun, 16 Aug 2009 19:33:27 -0700	[thread overview]
Message-ID: <48317C0E1A69429482B1548C992F0FFC@xahPC> (raw)

On my Windows emacs, when i open a xml file, the default mode loaded is 
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 <lennart.borg...@gmail.com> wrote:
> On Sat, Aug 15, 2009 at 5:08 PM, Xah Lee<xah...@gmail.com> 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 
locations...etc, or what majmodpri.el is supposed to do. Anyway, i thought 
this warrant a bug report for the record. Thanks.

  Xah
∑ http://xahlee.org/

             reply	other threads:[~2009-08-17  2:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87eiq4jdgh.fsf@stupidchicken.com>
2009-08-17  2:33 ` Xah Lee [this message]
2009-08-17 14:35   ` bug#4169: 23.1.50; default mode for xml files not correct Lennart Borgman
2009-08-18  2:18     ` Stefan Monnier
2009-08-18  2:25       ` Lennart Borgman
2009-09-18 18:55   ` bug#4169: marked as done (23.1.50; default mode for xml files not correct) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48317C0E1A69429482B1548C992F0FFC@xahPC \
    --to=xah@xahlee.org \
    --cc=4169@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).