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: Disabling nxml-mode Date: Tue, 10 May 2011 04:23:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <92m0bdFgm5U1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1306268842 19445 80.91.229.12 (24 May 2011 20:27:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:27:22 +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:27:18 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 1QOyCC-00017n-Bb for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:27:16 +0200 Original-Received: from localhost ([::1]:58534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyCB-0002Hf-Ri for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:27:15 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!q12g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: comp.text.xml,gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: 76.126.112.84 Original-X-Trace: posting.google.com 1305026613 16595 127.0.0.1 (10 May 2011 11:23:33 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 10 May 2011 11:23:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q12g2000prb.googlegroups.com; posting-host=76.126.112.84; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24,gzip(gfe) Original-Xref: usenet.stanford.edu comp.text.xml:85717 gnu.emacs.help:186831 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:81155 Archived-At: the reason it nxml-mode is loaded when u call xml-mode is probably because there is a alias. you can probably set it back by: (defalias 'xml-mode 'sgml-xml-mode) Peter wrote: > (setq auto-mode-alist (cons '("\\.[XxRrMmDdTt][TtMmDdSsNnEe] [PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" . xml-mode) auto-mode-alist)) that seems to be pretty bad. you probably want to use add-to-list instead of setq. (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) also, the file suffix "\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" seems quite wild. What is it? nxml-mode is a new mode for xml, written by the xml expert James Clark, who is also the original author of sgml-mode (html-mode and xml- mode are parts of sgml-mode). nxml-mode features on-the-fly xml validation. It's 10k lines of elisp. the following might provide helpful info: =E3=80=88How to Install Emacs Packages=E3=80=89 http://xahlee.org/emacs/emacs_installing_packages.html =E3=80=88New Features in Emacs 23=E3=80=89 http://xahlee.org/emacs/emacs23_features.html Xah On May 7, 3:45=C2=A0pm, 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 s= ays > > > (autoload 'xml-mode "psgml" "Major mode to edit XML files." t ) > > (setq auto-mode-alist (cons '("\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFf= SsIi]?[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? > > ///Peter