From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Default for editing XML files Date: Wed, 23 Sep 2009 12:06:49 +0300 Organization: JURTA Message-ID: <87ab0mr5vq.fsf@mail.jurta.org> References: <87ws45qavl.fsf@stupidchicken.com> <87eiq4jdgh.fsf@stupidchicken.com> <8763bc2fei.fsf@mail.jurta.org> <87d45kt0a4.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253699575 16521 80.91.229.12 (23 Sep 2009 09:52:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Sep 2009 09:52:55 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 23 11:52:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MqOWj-0001sF-Pc for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2009 11:52:46 +0200 Original-Received: from localhost ([127.0.0.1]:40567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqOWj-0003p2-4g for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2009 05:52:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqOWY-0003oi-Pz for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:52:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqOWT-0003ng-C7 for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:52:33 -0400 Original-Received: from [199.232.76.173] (port=38675 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqOWT-0003nd-4n for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:52:29 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:35979 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqOWS-00041V-OH for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:52:28 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.97.132.cable.starman.ee [82.131.97.132]) by mx1.starman.ee (Postfix) with ESMTP id CECB13F4128; Wed, 23 Sep 2009 12:52:19 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Tue, 22 Sep 2009 10:27:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115540 Archived-At: >>>> I've made nXML mode the default for editing XML files. >>> Shouldn't `xml-mode' be replaced with `nxml-mode' in >>> `magic-fallback-mode-alist' and `conf-mode-maybe' as well? > >> Yes, I missed that. Thanks. > > I think this is wrong. I think all those variable should point to > xml-mode, and then xml-mode should be an alias for nxml-mode (which the > user can re-alias back to sgml-mode if she so prefers). I agree, it would be better to configure sgml-mode/nxml-mode for all calls of xml-mode in one place. Maybe with the help of a new defcustom like: (defcustom xml-mode 'nxml-mode "Define xml-mode." :type '(choice (const nxml-mode) (const sgml-mode))) (defun xml-mode () (interactive) (funcall xml-mode)) -- Juri Linkov http://www.jurta.org/emacs/