From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: C++ access label indentation.
Date: Sat, 23 Mar 2013 21:55:41 +0100 [thread overview]
Message-ID: <878v5domya.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: CANDuHTKkXWsD1pJBN_1pUrXVsPYNKawa7i9_W7CMnjZCN-doww@mail.gmail.com
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 {}.
prev parent reply other threads:[~2013-03-23 20:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 13:50 C++ access label indentation Alessio Giovanni Baroni
2013-03-21 21:14 ` Pascal J. Bourguignon
2013-03-23 19:03 ` Alessio Giovanni Baroni
2013-03-23 20:55 ` Pascal J. Bourguignon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878v5domya.fsf@kuiper.lan.informatimago.com \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.