From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Moore, Mathew L" Newsgroups: gmane.emacs.help Subject: SGML/XML: fill-paragraph between start and end tags Date: Wed, 03 Mar 2004 10:35:48 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1078485209 14605 80.91.224.253 (5 Mar 2004 11:13:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Mar 2004 11:13:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 05 12:13:23 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AzDGc-0001b6-00 for ; Fri, 05 Mar 2004 12:13:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AzDG7-0004yp-JY for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Mar 2004 06:12:51 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AyYbD-0001bP-R7 for help-gnu-emacs@gnu.org; Wed, 03 Mar 2004 10:47:55 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AyYUt-0007yo-4T for help-gnu-emacs@gnu.org; Wed, 03 Mar 2004 10:41:54 -0500 Original-Received: from [131.167.1.2] (helo=bclcl1.im.battelle.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyYUX-0007kl-Rn for help-gnu-emacs@gnu.org; Wed, 03 Mar 2004 10:41:02 -0500 Original-Received: from ws-bco-scn3.milky-way.battelle.org ([131.167.1.110]) by BCLCL1 (PMDF V5.1-10 #U2779) with ESMTP id <01L7ACXEQYK690SCAK@BCLCL1> for help-gnu-emacs@gnu.org; Wed, 3 Mar 2004 10:35:53 EST Original-Received: from ws-bco-mse1.milky-way.battelle.org ([131.167.1.91]) by ws-bco-scn3 with trend_isnt_name_B; Wed, 03 Mar 2004 10:35:49 -0500 Original-Received: from ws-bco-mse4.milky-way.battelle.org ([131.167.1.104]) by ws-bco-mse1.milky-way.battelle.org with Microsoft SMTPSVC(5.0.2195.5329) ; Wed, 03 Mar 2004 10:35:48 -0500 Original-To: help-gnu-emacs@gnu.org X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SGML/XML: fill-paragraph between start and end tags Thread-Index: AcQBNTNq4OcPr4bgSGSu6JnvNesB5A== X-OriginalArrivalTime: 03 Mar 2004 15:35:48.0628 (UTC) FILETIME=[33BF3540:01C40135] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17416 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17416 I am writing xml in sgml-mode. Is there a convenient way to perform a fill-paragraph that operates only between the start-tag and end-tag surrounding the current point? If I have this: This is a short tag

This is a long paragraph...

and do a fill-paragraph while the point is between the

and

, then I get this, This is a short tag

This is a long paragraph that needs to be filled only between the "p" tags.

instead of the more preferable, This is a short tag

This is a long paragraph that needs to be filled only between the "p" tags.

Thanks in advance, --Matt Moore From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: SGML/XML: fill-paragraph between start and end tags Date: Fri, 05 Mar 2004 14:28:48 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078835668 7760 80.91.224.253 (9 Mar 2004 12:34:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Mar 2004 12:34:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 09 13:34:22 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B0gRC-0003MX-00 for ; Tue, 09 Mar 2004 13:34:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B0gM6-0006od-MZ for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Mar 2004 07:29:06 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1078496928 132.204.24.84 (Fri, 05 Mar 2004 09:28:48 EST) Original-NNTP-Posting-Date: Fri, 05 Mar 2004 09:28:48 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:121491 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17483 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17483 > 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: > > This is a short tag > >

This is a long paragraph...

>
>
> and do a fill-paragraph while the point is between the

and

, > then I get this, > > This is a short tag > >

This is a long paragraph that needs to be > filled only between the "p" tags.

>
A lonely tag like 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jeff.rancier@softechnics.com (Jeffery B. Rancier) Newsgroups: gmane.emacs.help Subject: Re: SGML/XML: fill-paragraph between start and end tags Date: Fri, 05 Mar 2004 11:47:18 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078858446 7772 80.91.224.253 (9 Mar 2004 18:54:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Mar 2004 18:54:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 09 19:53:59 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B0mMZ-0001Rp-00 for ; Tue, 09 Mar 2004 19:53:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B0mK1-0003iG-RT for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Mar 2004 13:51:21 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AzIUy-00024k-GD for help-gnu-emacs@gnu.org; Fri, 05 Mar 2004 11:48:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AzIUO-0001p8-Li for help-gnu-emacs@gnu.org; Fri, 05 Mar 2004 11:48:29 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AzIUN-0001oe-Kl for help-gnu-emacs@gnu.org; Fri, 05 Mar 2004 11:47:55 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AzIUF-00060O-00 for ; Fri, 05 Mar 2004 17:47:47 +0100 Original-Received: from mailserver.softechnics.com ([65.247.80.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Mar 2004 17:47:47 +0100 Original-Received: from jeff.rancier by mailserver.softechnics.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Mar 2004 17:47:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 46 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: mailserver.softechnics.com User-Agent: Gnus/5.110001 (No Gnus v0.1) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:/GEB5NTO/CVjVUFlDY2QQ4nKRIQ= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17488 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17488 "Moore, Mathew L" writes: > I am writing xml in sgml-mode. > > Is there a convenient way to perform a fill-paragraph that operates only > between the start-tag and end-tag surrounding the current point? > > If I have this: > > > This is a short tag > >

This is a long paragraph...

>
>
> > and do a fill-paragraph while the point is between the

and

, > then I get this, > > > This is a short tag > >

This is a long paragraph that needs to be > filled only between the "p" tags.

>
> > instead of the more preferable, > > > This is a short tag > >

This is a long paragraph that needs to be > filled only between the "p" tags.

>
>
> > Thanks in advance, > > --Matt Moore You may want to look at psgml mode: http://sourceforge.net/projects/psgml/ -- Thanks, Jeff From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Moore, Mathew L" Newsgroups: gmane.emacs.help Subject: RE: SGML/XML: fill-paragraph between start and end tags Date: Tue, 09 Mar 2004 09:18:26 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1079028005 9014 80.91.224.253 (11 Mar 2004 18:00:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 18:00:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 11 18:59:54 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1UTJ-0000ae-00 for ; Thu, 11 Mar 2004 18:59:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1UPj-0001UQ-Cn for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Mar 2004 12:56:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B0i5Z-0000xL-PL for help-gnu-emacs@gnu.org; Tue, 09 Mar 2004 09:20:09 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B0i52-0000ly-Ek for help-gnu-emacs@gnu.org; Tue, 09 Mar 2004 09:20:08 -0500 Original-Received: from [131.167.1.2] (helo=bclcl1.im.battelle.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B0i51-0000kK-CM for help-gnu-emacs@gnu.org; Tue, 09 Mar 2004 09:19:35 -0500 Original-Received: from ws-bco-scn3.milky-way.battelle.org ([131.167.1.110]) by BCLCL1 (PMDF V5.1-10 #U2779) with ESMTP id <01L7IO00USP690T9K1@BCLCL1> for help-gnu-emacs@gnu.org; Tue, 9 Mar 2004 09:18:53 EST Original-Received: from ws-bco-mse1.milky-way.battelle.org ([131.167.1.91]) by ws-bco-scn3 with trend_isnt_name_B; Tue, 09 Mar 2004 09:18:27 -0500 Original-Received: from ws-bco-mse4.milky-way.battelle.org ([131.167.1.104]) by ws-bco-mse1.milky-way.battelle.org with Microsoft SMTPSVC(5.0.2195.5329) ; Tue, 09 Mar 2004 09:18:27 -0500 Original-To: Stefan Monnier , help-gnu-emacs@gnu.org X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SGML/XML: fill-paragraph between start and end tags Thread-Index: AcQF0rACnRAWrZsuQOqoeX7Wfiz99wADpxVA X-OriginalArrivalTime: 09 Mar 2004 14:18:27.0645 (UTC) FILETIME=[63FBE6D0:01C405E1] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17535 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17535 > -----Original Message----- > From: Stefan Monnier [mailto:monnier@iro.umontreal.ca]=20 > Sent: Friday, March 05, 2004 09:29 > To: help-gnu-emacs@gnu.org > Subject: Re: SGML/XML: fill-paragraph between start and end tags >=20 >=20 > > I am writing xml in sgml-mode. >=20 > If you're not using it already I recommend you try out the=20 > 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. >=20 The CVS version of sgml-mode seems to solve the problem outlined below. I'll try to keep myself a little more up-to-date. Thanks, Stefan! --Matt > > If I have this: >=20 > > > > This is a short tag > > > >

This is a long paragraph...

> >
> >
>=20 > > and do a fill-paragraph while the point is between the

and

, > > then I get this, >=20 > > > > This is a short tag > > > >

This is a long paragraph that needs to be > > filled only between the "p" tags.

> >
>=20 > A lonely tag like 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=20 > try it with the > above-mentioned CVS code first (I believe the new=20 > sgml-mode.el still works > in Emacs-21.3) it's even better. >=20 >=20 > Stefan > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs >=20