[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ access label indentation.
From: |
Pascal J. Bourguignon |
Subject: |
Re: C++ access label indentation. |
Date: |
Sat, 23 Mar 2013 21:55:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Alessio Giovanni Baroni <alessiogiovanni.baroni@gmail.com> writes:
> If I set 'access-label to whatever, I indent only access labels. the
> 'topmost-intro remains indented as before
> (it's correct). If I indent 'inclass, the indentation is what I want
> in the classes, but in the structures I obtain
> double of indentation (I wrote (c-set-offset 'inclass '++)).
What about:
(c-set-offset 'inclass '++)
(c-set-offset 'access-label '-)
?
> I need only one thing: a way to express "set indentation of
> access-label/topmost-intro if I am within an inclass".
Otherwise, for such conditional (contextual) indenting, I guess you'll
need to write your own indenting function (using the langelem parameter,
or the c-syntactic-element variable).
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.