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: Fri, 25 Sep 2009 12:01:04 +0300 Organization: JURTA Message-ID: <87iqf7o0c3.fsf@mail.jurta.org> References: <87ws45qavl.fsf@stupidchicken.com> <87eiq4jdgh.fsf@stupidchicken.com> <8763bc2fei.fsf@mail.jurta.org> <87d45kt0a4.fsf@stupidchicken.com> <87ab0mr5vq.fsf@mail.jurta.org> <87k4zotit8.fsf@mail.jurta.org> <87zl8jixvc.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253872374 5356 80.91.229.12 (25 Sep 2009 09:52:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2009 09:52:54 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 25 11:52:46 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 1Mr7To-0004uv-Bz for ged-emacs-devel@m.gmane.org; Fri, 25 Sep 2009 11:52:44 +0200 Original-Received: from localhost ([127.0.0.1]:59375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mr7Tn-0000s1-ID for ged-emacs-devel@m.gmane.org; Fri, 25 Sep 2009 05:52:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mr7Te-0000rw-3W for emacs-devel@gnu.org; Fri, 25 Sep 2009 05:52:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mr7TY-0000qU-Hs for emacs-devel@gnu.org; Fri, 25 Sep 2009 05:52:32 -0400 Original-Received: from [199.232.76.173] (port=34702 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mr7TY-0000qR-9o for emacs-devel@gnu.org; Fri, 25 Sep 2009 05:52:28 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:51992 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mr7TX-0004Lv-RJ for emacs-devel@gnu.org; Fri, 25 Sep 2009 05:52:28 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.96.214.cable.starman.ee [82.131.96.214]) by mx1.starman.ee (Postfix) with ESMTP id 6C0253F41AA; Fri, 25 Sep 2009 12:52:19 +0300 (EEST) In-Reply-To: <87zl8jixvc.fsf@cyd.mit.edu> (Chong Yidong's message of "Thu, 24 Sep 2009 22:03:51 -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:115610 Archived-At: >> The question is how often users might want to switch xml-mode back to >> sgml-mode and how easy this should be. > > My impression, from those few who chimed in on the earlier thread about > the switch, is that there's basically no reason to switch back to > sgml-mode. Or is there? I know no reason to switch back to sgml-mode. But what I worry about is that someone who has a reason to use sgml-mode should be able to find an instruction how to do this. > If hardly anyone will want to switch back, I don't think it's worth > adding an extra knob for customizing this; we can just mention this in > the nxml-mode docstring. I don't think the nxml-mode docstring is an appropriate place to mention sgml-mode. I remember that at the early days of Wikipedia an initial version of the article about Leo Tolstoy started with the sentence "Along with Dostoevsky, Tolstoy is one of the most famous novelists" that looked very silly. Starting the nxml-mode docstring with something like "Along with sgml-mode, nxml-mode is a major mode for editing XML" is no better ;-) I think a good place to mention both nxml-mode and sgml-mode is the docstring of the xml-mode alias since the optional third argument of `defalias' specifies the docstring: (defalias 'xml-mode 'nxml-mode "Docstring.") In this docstring we could write that there are two XML editing modes, whereas nxml-mode is the default mode, add links to docstrings of both and provide instructions how to switch xml-mode to sgml-mode. -- Juri Linkov http://www.jurta.org/emacs/