all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Flynn <peter@silmaril.ie>
To: help-gnu-emacs@gnu.org
Subject: Re: Disabling nxml-mode
Date: Tue, 10 May 2011 21:42:22 +0100	[thread overview]
Message-ID: <92tm9eFhsU1@mid.individual.net> (raw)
In-Reply-To: <92m0bdFgm5U1@mid.individual.net>

On 07/05/11 23:45, Peter Flynn wrote:
> I just upgraded a machine to Ubuntu Natty, which installed Emacs 23.2,
> which appears to open XML files in nxml-mode by default. My .emacs file
> says
>
>> (autoload 'xml-mode "psgml" "Major mode to edit XML files." t )
>> (setq auto-mode-alist (cons
>> '("\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" .
>> xml-mode) auto-mode-alist))
>
> which has been working fine for years. It looks as if Emacs 23.2 defines
> xml-mode to point to nxml-mode, and this is somehow superseding my .emacs.
>
> Unfortunately I still need to use psgml's xml-mode for all my XML stuff.
> Does anyone know how I disable Emacs' new behaviour?

Thanks to Jason Rumney on the emacs-nxml-mode mailing list, the solution 
is to replace the autoload above with

(require 'nxml-mode)
(require 'psgml)

This works perfectly.

///Peter


      parent reply	other threads:[~2011-05-10 20:42 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-07 22:45 Disabling nxml-mode Peter Flynn
2011-05-08 19:24 ` Luuk
2011-05-08 21:45   ` Joe Kesselman
2011-05-08 21:46     ` Joe Kesselman
2011-05-08 21:46     ` Joe Kesselman
2011-05-09 18:26       ` Luuk
2011-05-09 20:12 ` William F Hammond
2011-05-10 11:23 ` Xah Lee
2011-05-10 17:15   ` B. T. Raven
2011-05-10 19:16     ` Xah Lee
2011-05-11  2:03       ` B. T. Raven
2011-05-11  4:05         ` rusi
2011-05-11 20:38           ` xmodmap ( was:: Disabling nxml-mode) B. T. Raven
2011-05-11 22:35             ` xmodmap ( Tim X
2011-05-12  2:20               ` B. T. Raven
2011-05-11  4:17         ` Disabling nxml-mode Xah Lee
2011-05-10 23:02   ` Joe Kesselman
2011-05-10 23:11     ` John Bokma
2011-05-11 20:24   ` Peter Flynn
2011-05-10 20:42 ` Peter Flynn [this message]

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

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

  git send-email \
    --in-reply-to=92tm9eFhsU1@mid.individual.net \
    --to=peter@silmaril.ie \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.