emacs-devel
[Top][All Lists]
Advanced

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

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


From: Martin Stjernholm
Subject: Re: Change of C indentation style ('{')
Date: Sat, 25 Oct 2003 16:40:29 +0200
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/20.7 (gnu/linux)

Richard Stallman <address@hidden> wrote:

>     I'm not sure what to do about it.
>
> You could perhaps undo the change.

That would also undo this improvement:

    ** Statements are recognized in a more robust way.
    Statements are recognized most of the time even when they occur in an
    "invalid" context, e.g. in a function argument.  In practice that can
    happen when macros are involved.

As an example, it fixes better indentation in this case:

    void f() {
      SOME_MACRO (
        if (successful)
          fprintf (stderr, "ok\n");
        else
          abort();
      );
    }

The reason these two cases are related is because the above has been
accomplished by changing the order between checks in
c-guess-basic-syntax.




reply via email to

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