From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Andrew W. Nosenko" Newsgroups: gmane.emacs.devel Subject: Re: lisp/progmodes/cc-styles.el indentation broken in ellemtel mode Date: Wed, 16 Jul 2008 18:25:55 +0300 Message-ID: <6161f3180807160825t7014be0au266dfb38ca929313@mail.gmail.com> References: <20080715124409.GA6211@vmlinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216221994 7489 80.91.229.12 (16 Jul 2008 15:26:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 15:26:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Joachim Nilsson" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 16 17:27:22 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 1KJ8uA-0006vp-6O for ged-emacs-devel@m.gmane.org; Wed, 16 Jul 2008 17:26:58 +0200 Original-Received: from localhost ([127.0.0.1]:55938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ8tH-0008Ey-Ff for ged-emacs-devel@m.gmane.org; Wed, 16 Jul 2008 11:26:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJ8tC-0008EQ-IX for emacs-devel@gnu.org; Wed, 16 Jul 2008 11:25:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJ8tC-0008E9-4V for emacs-devel@gnu.org; Wed, 16 Jul 2008 11:25:58 -0400 Original-Received: from [199.232.76.173] (port=58250 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJ8tC-0008E5-1A for emacs-devel@gnu.org; Wed, 16 Jul 2008 11:25:58 -0400 Original-Received: from yx-out-1718.google.com ([74.125.44.158]:15263) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJ8tB-0001qV-R1 for emacs-devel@gnu.org; Wed, 16 Jul 2008 11:25:57 -0400 Original-Received: by yx-out-1718.google.com with SMTP id 34so1626104yxf.66 for ; Wed, 16 Jul 2008 08:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=a1Gnk9s/fVl9hXGa2yKEH/dIsjFkn13BXeGJRClMufQ=; b=gqE39Bi4cISWgIYP+PXMQxXGXd7pAQhvciWpjahoElyY/Nq7cW1wkA1kVeFkOIl480 +hI5mkAPZ/+hKNaIv2H0jvQ1gHoEekEW2Bg4Aa17149UUnSreQ51/tdbnNkPL+rem6pP M2G6lj+lsiwnl0kum3Nn127kvMARXG0TFsrwY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=JGCRIqG/X+jPQbuTst0zsmGexxEKn4lfge8Wxn03sVM2ZWj7RCU4HL+iBtsAYqvgui eCyfnn1RKL9UrjY6qoRlMMprIR/c33eJRnl9CHOhUVzkjTPNt3NwjeWjKCj/nQ7DfWGC 76bLbqRbxamUyMK5e28Kp9QVRgORXywoePqbc= Original-Received: by 10.140.200.16 with SMTP id x16mr210700rvf.120.1216221955831; Wed, 16 Jul 2008 08:25:55 -0700 (PDT) Original-Received: by 10.141.162.7 with HTTP; Wed, 16 Jul 2008 08:25:55 -0700 (PDT) In-Reply-To: <20080715124409.GA6211@vmlinux.org> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:100814 Archived-At: On Tue, Jul 15, 2008 at 3:44 PM, Joachim Nilsson 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