[Top][All Lists]

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

Re: Change of C indentation style ('{')

From: Kenichi Handa
Subject: Re: Change of C indentation style ('{')
Date: Fri, 24 Oct 2003 10:25:44 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Martin Stjernholm <address@hidden> writes:

> Kenichi Handa <address@hidden> wrote:
>>  I've just found that, in HEAD, the default indentation style
>>  of '{' in C was changed in the case that it was placed on
>>  the next line of macros such as FOR_EACH_FRAME.

> That's because CC Mode analyzes the braces differently now. It marks
> them as defun-open and defun-close instead of substatement-open and
> substatement-close. That is because FOR_EACH_FRAME isn't recognized as
> a substatement introducing keyword, and barring macro oddities
> everything else has to be function definitions.

I see.

> I'm not sure what to do about it. There are other cases when this new
> heuristic is useful, e.g. for functions in macro arguments or gcc
> nested functions.

Aren't there any way to make Emacs recognize the regular
expression, say "[A-Z_]+", as an additional substatement
introducing keyword?

Ken'ichi HANDA

reply via email to

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