From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joachim Nilsson Newsgroups: gmane.emacs.bugs 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 Message-ID: <47F65B9B.6050001@vmlinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010304030106020708000900" X-Trace: ger.gmane.org 1207327699 6202 80.91.229.12 (4 Apr 2008 16:48:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 16:48:19 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 04 18:48:48 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jhp5s-0002l7-1h for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 18:48:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jhp5F-00049q-EI for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 12:48:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jhp55-000479-Dg for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 12:47:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jhp53-00046F-Sq for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 12:47:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jhp53-000469-Jf for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 12:47:57 -0400 Original-Received: from vmlinux.org ([193.41.214.66]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jhp53-0006Sr-9F for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 12:47:57 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by vmlinux.org (Postfix) with ESMTP id 878F917592 for ; Fri, 4 Apr 2008 18:47:52 +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 32234-06 for ; Fri, 4 Apr 2008 18:47:33 +0200 (CEST) Original-Received: from [192.168.77.101] (90-224-116-242-no111.tbcn.telia.com [90.224.116.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vmlinux.org (Postfix) with ESMTP id 7FFBD6B3 for ; Fri, 4 Apr 2008 18:47:33 +0200 (CEST) User-Agent: Thunderbird 2.0.0.12 (X11/20080227) 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-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17799 Archived-At: This is a multi-part message in MIME format. --------------010304030106020708000900 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit 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 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 --------------010304030106020708000900 Content-Type: text/x-vcard; charset=utf-8; name="joachim_nilsson.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="joachim_nilsson.vcf" begin:vcard fn:Joachim Nilsson n:Nilsson;Joachim email;internet:joachim.nilsson@vmlinux.org x-mozilla-html:TRUE url:http://vmlinux.org/joachim/ version:2.1 end:vcard --------------010304030106020708000900--