From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thomas Ruschival Newsgroups: gmane.emacs.help Subject: code beautification Date: Thu, 2 Dec 2004 16:32:47 +0100 Organization: disorganized Message-ID: <20041202163247.62977e4a@Woody> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1102001745 1854 80.91.229.6 (2 Dec 2004 15:35:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2004 15:35:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 02 16:35:36 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CZszX-0003KS-00 for ; Thu, 02 Dec 2004 16:35:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CZt96-0002tH-0T for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Dec 2004 10:45:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: individual.net TrAjcBC8u16HZN52focwBQVPHQq9nQZSFAe73l4Ri6d6I/LHk= X-Newsreader: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-pc-linux-gnu) Original-Xref: shelby.stanford.edu gnu.emacs.help:127095 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:22510 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22510 I got a lot of old code that was produced by some IDE. the IDE used this indentation style if(1>2) { printf("Hello World!"); } I personally prefer the K&R c-style over this and furthermore I have the habit of putting curly braces after each if,for,while,do I don't like code like if (2<3) printf("hello world"); My problem is now I don't know how to build a regexp that works over several lines with backrefs. The "missing" Curly Braces are not important but changing the syle would be nice. Anyone an idea how to reformat code in that way? Thomas