[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: howw does work c-special-indent-hook, from cc-engine?

From: Alan Mackenzie
Subject: Re: howw does work c-special-indent-hook, from cc-engine?
Date: Wed, 18 May 2005 15:08:53 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

na frederic <address@hidden> wrote on Tue, 17 May 2005 13:49:20
+0200 (CEST):
> is anyone have a sample of code using c-special-indent-hook to
> customize indentation of a derived C-mode.

CC Mode itself does.  In "gnu" style, the function on
c-special-indent-hook (that's c-gnu-impose-minimum) checks that certain
lines of code are indented _at least_ one space.  c-gnu-impose-minimum is
in cc-align.el, and the setting of the hook is in cc-styles.el.

Is there anything in particular which is causing problems?

Alan Mackenzie (Munich, Germany)
Email: address@hidden; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

reply via email to

[Prev in Thread] Current Thread [Next in Thread]