From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Withers Newsgroups: gmane.emacs.help Subject: Re: pretty-layout in html-mode Date: Tue, 12 May 2009 10:59:57 +0100 Message-ID: <4A09489D.2030304@simplistix.co.uk> References: <4A09414F.2010206@simplistix.co.uk> <4A094842.8090701@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242122462 10983 80.91.229.12 (12 May 2009 10:01:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 10:01:02 +0000 (UTC) Cc: Emacs Help To: gebser@mousecar.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 12 12:00:53 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 1M3on6-0004K6-8n for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2009 12:00:52 +0200 Original-Received: from localhost ([127.0.0.1]:49239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3on5-0007zF-JN for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2009 06:00:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3om7-0007fe-Rm for help-gnu-emacs@gnu.org; Tue, 12 May 2009 05:59:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3om6-0007eh-HQ for help-gnu-emacs@gnu.org; Tue, 12 May 2009 05:59:50 -0400 Original-Received: from [199.232.76.173] (port=55822 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3om5-0007eG-Pg for help-gnu-emacs@gnu.org; Tue, 12 May 2009 05:59:49 -0400 Original-Received: from server1.simplistix.co.uk ([89.151.125.140]:35527) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3om5-00047V-BN for help-gnu-emacs@gnu.org; Tue, 12 May 2009 05:59:49 -0400 Original-Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id 79B124F8076; Tue, 12 May 2009 10:59:48 +0100 (BST) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4A094842.8090701@mousecar.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:64368 Archived-At: ken wrote: > Using html-helper-mode, doing C-i properly indents the current line. So > in such files I start with the point on the first line, do C-i, then do > the same on the second line, and so on. This of course doesn't work if > all the html code is on one line. The tags and text you want to indent > properly must lie at the beginning of a new line (optionally with some > white space preceding it); that is, C-i won't insert newlines at proper > locations. ("Proper location" is not an objective determination > anyway.) But html-helper-mode does understand opening and closing tags > and (normally) indents these at the same level. Thanks, but I'm looking for something more like: - select region - M-x unsuck-html-layout Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk