From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: SGML/XML: fill-paragraph between start and end tags
Date: Fri, 05 Mar 2004 14:28:48 GMT [thread overview]
Message-ID: <jwvishjh0xg.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca> (raw)
In-Reply-To: mailman.1096.1078485135.340.help-gnu-emacs@gnu.org
> I am writing xml in sgml-mode.
If you're not using it already I recommend you try out the sgml-mode.el
version in the Emacs-CVS repository, which you can browse from
http://savannah.gnu.org/projects/emacs. It has some improvements for
XML editing.
> Is there a convenient way to perform a fill-paragraph that operates only
> between the start-tag and end-tag surrounding the current point?
Other than selecting the region and calling fill-region, no, I don't know
how to do that conveniently.
> If I have this:
> <report>
> <title>This is a short tag</title>
> <description>
> <p>This is a long paragraph...</p>
> </description>
> </report>
> and do a fill-paragraph while the point is between the <p> and </p>,
> then I get this,
> <report>
> <title>This is a short tag</title>
> <description>
> <p>This is a long paragraph that needs to be
> filled only between the "p" tags.</p>
> </description> </report>
A lonely tag like </description> should be considered as
a paragraph separator and prevent filling. There's obviously a bug.
Please report it with M-x report-emacs-bug. But if you can try it with the
above-mentioned CVS code first (I believe the new sgml-mode.el still works
in Emacs-21.3) it's even better.
Stefan
next parent reply other threads:[~2004-03-05 14:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1096.1078485135.340.help-gnu-emacs@gnu.org>
2004-03-05 14:28 ` Stefan Monnier [this message]
2004-03-09 14:18 SGML/XML: fill-paragraph between start and end tags Moore, Mathew L
-- strict thread matches above, loose matches on Subject: below --
2004-03-03 15:35 Moore, Mathew L
2004-03-05 16:47 ` Jeffery B. Rancier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvishjh0xg.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca \
--to=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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).