all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Default for editing XML files
Date: Fri, 25 Sep 2009 12:01:04 +0300	[thread overview]
Message-ID: <87iqf7o0c3.fsf@mail.jurta.org> (raw)
In-Reply-To: <87zl8jixvc.fsf@cyd.mit.edu> (Chong Yidong's message of "Thu, 24 Sep 2009 22:03:51 -0400")

>> 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/




  reply	other threads:[~2009-09-25  9:01 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-12  0:12 Default for editing XML files Chong Yidong
2009-09-12  1:41 ` Miles Bader
2009-09-12  1:41 ` bug#4169: " Miles Bader
2009-09-12  6:29 ` joakim
2009-09-12  6:29 ` joakim
2009-09-12 16:02 ` Eric Hanchrow
2009-09-12 22:19   ` Sean Sieger
2009-09-13  1:16     ` Stefan Monnier
2009-09-13  1:30     ` Jason Rumney
2009-09-18 18:49 ` Chong Yidong
2009-08-17  2:33   ` bug#4169: 23.1.50; default mode for xml files not correct Xah Lee
2009-08-17 14:35     ` Lennart Borgman
2009-08-18  2:18       ` Stefan Monnier
2009-08-18  2:25         ` Lennart Borgman
2009-09-18 18:55     ` bug#4169: marked as done (23.1.50; default mode for xml files not correct) Emacs bug Tracking System
2009-09-21 21:48   ` Default for editing XML files Juri Linkov
2009-09-21 22:12     ` Chong Yidong
2009-09-22 14:27       ` Stefan Monnier
2009-09-23  9:06         ` Juri Linkov
2009-09-23 15:57           ` Chong Yidong
2009-09-23 20:43           ` Stefan Monnier
2009-09-24 20:57             ` Juri Linkov
2009-09-24 21:14               ` Lennart Borgman
2009-09-25  2:03               ` Chong Yidong
2009-09-25  9:01                 ` Juri Linkov [this message]
2009-09-25 14:18                   ` Stefan Monnier

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=87iqf7o0c3.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.