From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Zhongxing Xu" Newsgroups: gmane.emacs.help Subject: Re: How to turn off auto indent in C++ mode? Date: Sat, 7 Jun 2008 10:46:29 +0800 Message-ID: <4619993f0806061946p79390573i5246a17071cf8a9@mail.gmail.com> References: <4619993f0806050238r1d92d12bk276eebc9a71656e8@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16690_8109695.1212806789708" X-Trace: ger.gmane.org 1212821501 15568 80.91.229.12 (7 Jun 2008 06:51:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Jun 2008 06:51:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Eli Zaretskii" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 07 08:52:24 2008 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 1K4sHi-0000cK-Gr for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jun 2008 08:52:18 +0200 Original-Received: from localhost ([127.0.0.1]:37428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4sGv-000489-Ll for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jun 2008 02:51:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4oRt-0004N1-4r for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 22:46:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4oRr-0004Lg-R4 for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 22:46:32 -0400 Original-Received: from [199.232.76.173] (port=41498 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4oRr-0004LZ-Jc for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 22:46:31 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.251]:58998) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4oRr-0001yl-C0 for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 22:46:31 -0400 Original-Received: by an-out-0708.google.com with SMTP id c38so260414ana.84 for ; Fri, 06 Jun 2008 19:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=xfH4UMB0OKGRk4zfNsT4Eh/eNcJbv2Q90c2/v7jk0os=; b=gNQk3GVUU7dj/zE5EbkS1AQ69UqRLfLjfJth7ZE+Xyht6GIwGEQgcrCphY/XCsEKpY /lBLyP7nlCaBkJtrL5AR3L++4p8k20NcrPJMb4Ca0RiiJacgr7ZV0tKcBVNetPKbSqYU 8P/iOBPqWSxkYWZlNZf57hSwdufWsjP+kdn9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=q/bKKVLQh6pdGu6q+oGv3+OFyE0HoFgG8bzLqGJp/MHisk9dTGHqPE5y72/U1b9W8r osibPFRB6bqyCa856ijQEcRhloe8gMpibqnKRi1MZsBRN02o8EOe9860bumrh3iGUXNB 1i/lGjZePVlb6oy4C4xIEKJZiC+C/Bu6w+tmE= Original-Received: by 10.100.164.10 with SMTP id m10mr1086688ane.108.1212806789726; Fri, 06 Jun 2008 19:46:29 -0700 (PDT) Original-Received: by 10.101.1.19 with HTTP; Fri, 6 Jun 2008 19:46:29 -0700 (PDT) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 07 Jun 2008 02:51:11 -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:54572 Archived-At: ------=_Part_16690_8109695.1212806789708 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes! You are amazing! On Sat, Jun 7, 2008 at 12:26 AM, Eli Zaretskii wrote: > > Date: Thu, 5 Jun 2008 17:38:13 +0800 > > From: "Zhongxing Xu" > > > > When I am using c++ mode to edit c++ sources, emacs always auto indent > the > > class declarations inside a namespace. I don't want the auto indentation > > inside a namespace. How to turn off it? > > > > Code example: > > I want such style: > > > > namespace foo { > > class A { > > }; > > } > > > > emacs forces to: > > > > namespace foo { > > class A { > > }; > > } > > Does "C-c C-l" in the buffer where you edit C++ do what you want? > > > ------=_Part_16690_8109695.1212806789708 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes! You are amazing!

On Sat, Jun 7, 2008 at 12:26 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Thu, 5 Jun 2008 17:38:13 +0800
> From: "Zhongxing Xu" <mymlreader@gmail.com>
>
> When I am using c++ mode to edit c++ sources, emacs always auto indent the
> class declarations inside a namespace. I don't want the auto indentation
> inside a namespace. How to turn off it?
>
> Code example:
> I want such style:
>
> namespace foo {
> class A {
> };
> }
>
> emacs forces to:
>
> namespace foo {
>   class A {
>   };
> }

Does "C-c C-l" in the buffer where you edit C++ do what you want?



------=_Part_16690_8109695.1212806789708--