From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Marc_D=FCrner?= Newsgroups: gmane.emacs.help Subject: C++ Indentation and access-labels Date: Mon, 14 Sep 2009 16:27:11 +0200 Message-ID: <52a7da0f0909140727i24f47eaem8a36684ef10502f9@mail.gmail.com> Reply-To: marc.duerner@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174c35481cb4e904738a7642 X-Trace: ger.gmane.org 1253076708 32140 80.91.229.12 (16 Sep 2009 04:51:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 04:51:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 16 06:51:41 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 1MnmUW-0004mj-Of for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 06:51:41 +0200 Original-Received: from localhost ([127.0.0.1]:36956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnmUW-0001UB-5S for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 00:51:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnCWU-0000Qf-VS for help-gnu-emacs@gnu.org; Mon, 14 Sep 2009 10:27:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnCWR-0000HS-1H for help-gnu-emacs@gnu.org; Mon, 14 Sep 2009 10:27:18 -0400 Original-Received: from [199.232.76.173] (port=46617 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnCWQ-0000HB-ON for help-gnu-emacs@gnu.org; Mon, 14 Sep 2009 10:27:14 -0400 Original-Received: from mail-fx0-f226.google.com ([209.85.220.226]:52068) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnCWQ-000290-Do for help-gnu-emacs@gnu.org; Mon, 14 Sep 2009 10:27:14 -0400 Original-Received: by fxm26 with SMTP id 26so2245576fxm.42 for ; Mon, 14 Sep 2009 07:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:content-type; bh=WLtD+6T5jrnKp//hfmbHLJ7NUvhytQDQxoT9W1Zd+mw=; b=j+YEQeW5RJs0KoBL4lSPHaaqy3YAJlcTQyId8b9+aYfwRVdO848R6xAgJTcvNrGk9O stq0evCLu8Fx0EC3HJLTBXadjRwuS1k1oVe8Qpb1amzId01Rb06JvMUWIe8Wuu9oHaNT 4VzF0bCCrikxjZJ1kWEczGL6nggtMS6aBmz68= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; b=KmM3K5OP8HgEuXcDA49Ata+MH8RkobcCnqH0LDtHqvfY2RYwi07cQ90EWmAt6R6jXA aSylkD2EcWQctf9Hu8qRTXg62rFU5djO35evKSPXeUjo7f0k/psuCz8bV8XR3aMn36w7 c2uHMnmbYc5P1H0aI63+/Btj/9xx0Jalg3TQE= Original-Received: by 10.204.8.21 with SMTP id f21mr5213486bkf.129.1252938431116; Mon, 14 Sep 2009 07:27:11 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 16 Sep 2009 00:44:03 -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:68181 Archived-At: --0015174c35481cb4e904738a7642 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am trying to set up semantic indentation for C++ and can't find a way to configure the following indentation rule: class A { friend class X; int x; public: A(); ~A(); }; struct B { int n; bool b; char c; }; I want to have class members and friend declarations indented by one level is no access-label is present. If an acces-label is present it should be indented and the class members that follow that access-label should be indented further. It seems the is no way to handle class memers differently if they are following an access-label. In the example above 'x' and 'A();' are both classified as inclass/topmost-intro. Is there a way to configure this? regards, Marc --0015174c35481cb4e904738a7642 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I am trying to set up semantic indentation for C++ and can= 9;t find a way to configure the following indentation rule:

class A<= br>{
=A0=A0=A0 friend class X;

=A0=A0=A0 int x;

=A0=A0=A0 = public:
=A0=A0=A0=A0=A0=A0=A0 A();
=A0=A0=A0=A0=A0=A0=A0 ~A();
};

struct B
{
=A0=A0=A0 int n;<= br>=A0=A0=A0 bool b;
=A0=A0=A0 char c;
};

I want to have class= members and friend declarations indented by one level is no access-label i= s present. If an acces-label is present it should be indented and the class= members that follow that access-label should be indented further. It seems= the is no way to handle class memers differently if they are following an = access-label. In the example above 'x' and 'A();' are both = classified as inclass/topmost-intro.

Is there a way to configure this?

regards,
Marc


--0015174c35481cb4e904738a7642--