all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: 'Emacs Devel' <emacs-devel@gnu.org>
Subject: Re: Indentation contest nxml vs xml-mode
Date: Thu, 06 Mar 2008 22:52:31 +0100	[thread overview]
Message-ID: <47D0679F.5000001@gmail.com> (raw)
In-Reply-To: <00a601c87fba$febc3150$0600a8c0@us.oracle.com>

Drew Adams wrote:
>> Try indenting the following in nxml-mode and xml-mode:
>>
>> <outermost>
>>    <inner1><inner2>
>>        <inner3>Duh</inner3>
>>      </inner2>
>>    </inner1>
>> </outermost>
>>
>> I think xml-mode wins here. If I remember correctly there are 
>> also some 
>> bugs in nxml-mode indentattion code. Is there any reason to have both 
>> ways of indenting, ie should not nxml-mode indentation use 
>> the xml-mode indentation code?
> 
> Can you please just present the two alternatives here, so we don't have to
> go through the exercise? Thx.

My main point was of course to have only one code to do the indentation 
(I think there might be bugs in both versions today), but here is the 
output:

***** xml-mode
<outermost>
   <inner1><inner2>
       <inner3>Duh</inner3>
     </inner2>
   </inner1>
</outermost>

***** nxml-mode
<outermost>
   <inner1><inner2>
     <inner3>Duh</inner3>
   </inner2>
   </inner1>
</outermost>

BTW, I just noted that the person that sent me the bug report long ago 
put a "duh" in the text. ;-)




  reply	other threads:[~2008-03-06 21:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 18:41 Indentation contest nxml vs xml-mode Lennart Borgman (gmail)
2008-03-06 18:50 ` Drew Adams
2008-03-06 21:52   ` Lennart Borgman (gmail) [this message]
2008-03-06 22:21     ` Drew Adams
2008-03-06 22:38       ` Lennart Borgman (gmail)
2008-03-07  3:31         ` Drew Adams
2008-03-06 22:18   ` Jason Rumney
2008-03-06 22:34     ` Lennart Borgman (gmail)
2008-03-07  3:31     ` Drew Adams
2008-03-07  0:28 ` Miles Bader

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=47D0679F.5000001@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /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.