From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: crash@vmlinux.org (Joachim Nilsson) Newsgroups: gmane.emacs.devel Subject: lisp/progmodes/cc-styles.el indentation broken in ellemtel mode Date: Tue, 15 Jul 2008 14:44:09 +0200 Message-ID: <20080715124409.GA6211@vmlinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="UugvWAfsgieZRqgk" X-Trace: ger.gmane.org 1216178156 26571 80.91.229.12 (16 Jul 2008 03:15:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 03:15:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 16 05:16:35 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KIxVK-0005q0-4B for ged-emacs-devel@m.gmane.org; Wed, 16 Jul 2008 05:16:34 +0200 Original-Received: from localhost ([127.0.0.1]:52979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIxUR-0008CR-Jx for ged-emacs-devel@m.gmane.org; Tue, 15 Jul 2008 23:15:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIjtW-000064-6c for emacs-devel@gnu.org; Tue, 15 Jul 2008 08:44:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIjtV-0008Vo-CR for emacs-devel@gnu.org; Tue, 15 Jul 2008 08:44:37 -0400 Original-Received: from [199.232.76.173] (port=56647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIjtV-0008VV-3p for emacs-devel@gnu.org; Tue, 15 Jul 2008 08:44:37 -0400 Original-Received: from vmlinux.org ([193.41.214.66]:52207) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIjtU-0006iq-L3 for emacs-devel@gnu.org; Tue, 15 Jul 2008 08:44:36 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by vmlinux.org (Postfix) with ESMTP id E6F46261F for ; Tue, 15 Jul 2008 14:44:33 +0200 (CEST) Original-Received: from vmlinux.org ([127.0.0.1]) by localhost (vmlinux [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05823-09 for ; Tue, 15 Jul 2008 14:44:09 +0200 (CEST) Original-Received: by vmlinux.org (Postfix, from userid 1000) id 1C43B48F64; Tue, 15 Jul 2008 14:44:09 +0200 (CEST) Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at vmlinux.org X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-Mailman-Approved-At: Tue, 15 Jul 2008 23:15:35 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100772 Archived-At: --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 -- Joachim Nilsson :: +46(0)21-123348 :: --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="cc-styles.diff" Index: lisp/progmodes/cc-styles.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/progmodes/cc-styles.el,v retrieving revision 1.51 diff -u -r1.51 cc-styles.el --- lisp/progmodes/cc-styles.el 6 May 2008 07:18:15 -0000 1.51 +++ lisp/progmodes/cc-styles.el 12 Jul 2008 18:04:23 -0000 @@ -169,8 +169,7 @@ (case-label . +) (access-label . -) (inclass . ++) - (inline-open . 0) - (arglist-cont-nonempty)))) + (inline-open . 0)))) ("linux" (c-basic-offset . 8) --UugvWAfsgieZRqgk--