[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lisp/progmodes/cc-styles.el indentation broken in ellemtel mode
From: |
Andrew W. Nosenko |
Subject: |
Re: lisp/progmodes/cc-styles.el indentation broken in ellemtel mode |
Date: |
Wed, 16 Jul 2008 18:25:55 +0300 |
On Tue, Jul 15, 2008 at 3:44 PM, Joachim Nilsson <address@hidden> wrote:
> Hi!
>
> The Ellemtel C/C++ indentation engine has been broken on trunk since
> around March[1]. This is a followup notice.
>
> It fails to indent function arguments that are on a new line. Like this:
>
> printf ("foo %d\n",
> arg);
>
> instead of lining them up under the first argument, like this:
>
> printf ("foo %d\n",
> arg);
>
> The attached patch solves the problem and I have, since March, not found
> any other problems with using this patch.
>
> Regards
> /Jocke
>
> [1] - http://lists.gnu.org/archive/html/emacs-devel/2008-03/msg02332.html
>
Beside removing
(arglist-cont-nonempty)
from the c-offsets-alist, you need add it to the
c-hanging-braces-alist, just like it done for all other styles. IMHO,
current difference of "ellemtel" from an other styles was just a typo.
--
Andrew W. Nosenko <address@hidden>