From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Flynn Newsgroups: gmane.emacs.help Subject: Re: Disabling nxml-mode Date: Tue, 10 May 2011 21:42:22 +0100 Organization: Usenet Labs Bozon Detector Facility Message-ID: <92tm9eFhsU1@mid.individual.net> References: <92m0bdFgm5U1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306269149 21567 80.91.229.12 (24 May 2011 20:32:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:32:29 +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 May 24 22:32:25 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOyHB-0004jI-HV for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:32:25 +0200 Original-Received: from localhost ([::1]:60959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyHB-0003KV-1n for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:32:25 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: comp.text.xml,gnu.emacs.help Original-Lines: 25 Original-X-Trace: individual.net N3uyJ34DE1xEix4Tq59rewZCy8DmER/Ti9qAE4hmcc5OfMkE8Q Cancel-Lock: sha1:BRMyArkDm4kr6WTRB5Ajz62v9JI= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: <92m0bdFgm5U1@mid.individual.net> Original-Xref: usenet.stanford.edu comp.text.xml:85718 gnu.emacs.help:186835 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81185 Archived-At: 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