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

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

cc-mode in Emacs CVS head: Ellemtel indent broken or (arglist-cont-nonem


From: Joachim Nilsson
Subject: cc-mode in Emacs CVS head: Ellemtel indent broken or (arglist-cont-nonempty) recently changed?
Date: Fri, 04 Apr 2008 18:47:23 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080227)

Hi!

The bug still exists on CVS HEAD.  I'm making another plead,
this time including a patch to fix the problem (described in
detail below).  Please note that this fix only affects the
Ellemtel style of cc-mode, so it is quite safe to apply.

--- lisp/progmodes/cc-styles.el 24 Feb 2008 10:08:50 -0000      1.49
+++ lisp/progmodes/cc-styles.el 4 Apr 2008 16:42:09 -0000
@@ -171,8 +171,7 @@
                          (case-label           . +)
                          (access-label         . -)
                          (inclass              . ++)
-                        (inline-open          . 0)
-                        (arglist-cont-nonempty))))
+                         (inline-open          . 0))))
 
     ("linux"
      (c-basic-offset  . 8)

Regards
 /Jocke

-------- Original Message --------

Subject:        

cc-mode in Emacs CVS head: Ellemtel indent broken or (arglist-cont-nonempty) 
recently changed?

Date:   

Wed, 26 Mar 2008 09:05:42 +0100

From:   

Joachim Nilsson <joachim.nilsson@vmlinux.org>

To:     

bug-gnu-emacs@gnu.org


Hi,

I have found that the cc-mode Ellemtel indentation has become broken in recent 
CVS head builds.

It gives:

        printf ("foo %d\n",
        arg);

instead of:

        printf ("foo %d\n",
                arg);

Either cc-mode has changed or (arglist-cont-nonempty) in Emacs has.  I found 
that if I remove (arglist-cont-nonempty)
from the definition of ellemtel in lisp/progmodes/cc-styles.el it works again.

Regards
 /Jocke



Attachment: joachim_nilsson.vcf
Description: Vcard


reply via email to

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