From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: Linebreaks in XML files. Date: Mon, 24 May 2004 18:17:28 GMT Organization: Comcast Online 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 1085443127 14974 80.91.224.253 (24 May 2004 23:58:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 May 2004 23:58:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 25 01:58:38 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 1BSPL4-00016I-00 for ; Tue, 25 May 2004 01:58:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BSKEH-0007bs-K9 for geh-help-gnu-emacs@m.gmane.org; Mon, 24 May 2004 14:31:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.news.rcn.net!rcn!wns13feed!worldnet.att.net!attbi_s01.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:9y/+OJu9w3vJ4PMSTnxN1bsQBwc= Original-Lines: 17 Original-NNTP-Posting-Host: 24.18.253.35 Original-X-Complaints-To: abuse@comcast.net Original-X-Trace: attbi_s01 1085422648 24.18.253.35 (Mon, 24 May 2004 18:17:28 GMT) Original-NNTP-Posting-Date: Mon, 24 May 2004 18:17:28 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:123398 Original-To: help-gnu-emacs@gnu.org 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:18713 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18713 Rob Kramer writes: >Hi all, > >Is there some way to have emacs properly indent a XML file that consists of >just a single line (i.e. no breaks)? I tried PSGML 1.3.1, but can't figure >out if this sort of formatting is possible. > >Cheers, > > Rob You could break up the tags into one-line-each with (replace-regexp ">\\s-*<" ">\n<" nil (point-min) (point-max)) and then indent the buffer per psgml mode. -- Mike Slass