help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: cc-mode indentation puzzle


From: Stefan Monnier
Subject: Re: cc-mode indentation puzzle
Date: Tue, 01 Feb 2011 11:46:18 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> You should want and get:

>  a = b + c +
>      d + e + f(1,
>                2, 3);

> instead.

Oh, yes.  But there's no arguing with corporate guidelines, I'm sure :-(
BTW, in some modes you may even get indentation like:

  a = b + c +
      d + e + f(1,
                2, 3) *
              4;

GNU coding style, would of course recommend to put the operators at the
beginning of line:
              
  a = b + c
      + d + e + f(1,
                  2, 3)
                * 4;

-- Stefan


reply via email to

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