From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Montsaroff Newsgroups: gmane.emacs.help Subject: XML and Fill-region Date: Tue, 08 Sep 2009 11:34:04 -0700 Message-ID: <4AA6A39C.9000205@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------010806080404050105030401" X-Trace: ger.gmane.org 1252454936 13457 80.91.229.12 (9 Sep 2009 00:08:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Sep 2009 00:08:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 09 02:08:49 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MlAjv-0004Qt-Up for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Sep 2009 02:08:48 +0200 Original-Received: from localhost ([127.0.0.1]:36346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlAjv-0006pe-5Y for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Sep 2009 20:08:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ml5WC-0005Io-VS for help-gnu-emacs@gnu.org; Tue, 08 Sep 2009 14:34:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ml5W7-0005D6-QP for help-gnu-emacs@gnu.org; Tue, 08 Sep 2009 14:34:16 -0400 Original-Received: from [199.232.76.173] (port=60845 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ml5W7-0005D3-NC for help-gnu-emacs@gnu.org; Tue, 08 Sep 2009 14:34:11 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:57667 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ml5W7-0007dM-4F for help-gnu-emacs@gnu.org; Tue, 08 Sep 2009 14:34:11 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 5A9924934C; Tue, 8 Sep 2009 14:34:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:subject:content-type; s=sasl; bh=7KRX OXN3athBk4KzYT2yvPoinqE=; b=FegihDhcnJ9uSL9/o3X0vkSuwpFlWTu2E0ny ZdSNrYlleF8XhlwHKM8/CFeSQNqf0c1Z7uwJ/IcXmkVQk5/eya5qVuZKKcfe+C+0 xs5+p7Oq/zAGusiDOZmcBLIPljO6EYLBg+wlc2LbRgLb3bNErWBDEvsdPCYFVoVL 9eaTFN0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:subject:content-type; q=dns; s=sasl; b=XH3 bCGCTDCcrVzDWUgU0Ym/dVCitAlucK6naP1cydd7gODzON9T7hltS67zaJKzE8x8 ZV9yD717d/v3/UNylhES3DKLYvTxPh69uO2pyPKnKa7yVEfmdXAwEO0YhEAHTxys LQcCg9ECaxNe/eghrmwL02nSUTvbmTpmeGs72HZg= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4A6A44934B; Tue, 8 Sep 2009 14:34:09 -0400 (EDT) Original-Received: from [131.107.0.103] (unknown [131.107.0.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 5D6774934A; Tue, 8 Sep 2009 14:34:05 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.0 X-Pobox-Relay-ID: 3272EBD8-9CA6-11DE-A96A-8B19076EA04E-43920898!a-pb-sasl-sd.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-Mailman-Approved-At: Tue, 08 Sep 2009 20:01:41 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67971 Archived-At: This is a multi-part message in MIME format. --------------010806080404050105030401 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi - I was wondering if anyone could give me some guidance on using fill-region with xml. I have two basic questions 1. How do I stop Fill-region from combining tags on two lines on to one. For example, running fill-region on TEXT TEXT... * * TEXT TEXT... Gives: TEXT TEXT... * * TEXT TEXT... 2. Is there anyway of telling fill-region *not* to fill between two tags, for example to skip the material between and TEXT TEXT... * * TEXT TEXT... * * TEXT TEXT... Thanks. -- ** *Stephen Montsaroff** * * /o o// / */The Bear / *711 23rd Ave. E*** *Seattle, WA 98112** * * (' ')_____o */Who Swims/ *stephm@pobox.com*** *206 568 1641(p)* ***~ ~~~(______)~~~~~~~ * ******* ~~** ~**~~ oo oo~~~~~ * ****//**** --------------010806080404050105030401 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi -

    I was wondering if anyone could give me some guidance on using fill-region with xml.

    I have two basic questions

    1. How do I stop Fill-region from combining tags on two lines on to one.

        For example, running fill-region on

                <a>
                TEXT TEXT...            
                </a>
                <b>

                TEXT TEXT...            
                </b>

       Gives:
                 <a>
                        TEXT TEXT...            
                </a>    <b>
                       TEXT TEXT...            
                </b>

    2. Is there anyway of telling fill-region not to fill between two tags, for example to skip the material between <c> and </c>
               <a>
                TEXT TEXT...            
                </a>
                 <c>
                TEXT TEXT...            
                </c>
                <b>
                TEXT TEXT...            
                </b>
Thanks.

--
Stephen Montsaroff 


     o  o        The Bear 
711 23rd Ave. E
Seattle, WA 98112
    (' ')_____o   Who Swims
stephm@pobox.com
206 568 1641(p)
~    ~~~(______)~~~~~~~




~~  ~~~ oo    oo~~~~~
--------------010806080404050105030401--