From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: C++ indentation question Date: Thu, 10 Jan 2013 12:38:38 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9828E2DC56@DAKIYA1.pegasus.local> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1357821432 19493 80.91.229.3 (10 Jan 2013 12:37:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2013 12:37:12 +0000 (UTC) To: Shashank Khanvilkar , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 10 13:37:29 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TtHNx-0000ve-0L for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2013 13:37:29 +0100 Original-Received: from localhost ([::1]:44393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtHNg-0002Mf-Os for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2013 07:37:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtHNb-0002MF-0E for help-gnu-emacs@gnu.org; Thu, 10 Jan 2013 07:37:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtHNZ-0004EA-Jr for help-gnu-emacs@gnu.org; Thu, 10 Jan 2013 07:37:06 -0500 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:44436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtHNZ-0004Dx-GZ for help-gnu-emacs@gnu.org; Thu, 10 Jan 2013 07:37:05 -0500 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.01.0339.001; Thu, 10 Jan 2013 07:38:40 -0500 Thread-Topic: C++ indentation question Thread-Index: AQHN7vU23PEMOXlDkUGG/74vBbcrf5hCf8Xg In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88552 Archived-At: I don't think emacs will just change styles for you. You could use `query-r= eplace' M-%. GNU's indent(1) command might be a better way to go. ,Douglas Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 When I do good, I feel good. When I do bad, I feel bad and that's my religi= on. - Abraham Lincoln > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On > Behalf Of Shashank Khanvilkar > Sent: Thursday, 2013 January 10 00:38 > To: help-gnu-emacs@gnu.org > Subject: C++ indentation question >=20 > I have existing code that looks like: > --SNIP-- > void foo() { > int a; > doSomething(); > } > --SNIP-- > I need to change this to: > --SNI-- > void foo() > { > int a; > doSomething(); > } > --SNIP-- >=20 > How can i do this?