From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2141: marked as done (C mode indentation problem) Date: Sat, 21 Feb 2009 16:30:03 +0000 Message-ID: References: <20090221164448.GB3027@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1235233803-18436-0" X-Trace: ger.gmane.org 1235234633 17559 80.91.229.12 (21 Feb 2009 16:43:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Feb 2009 16:43:53 +0000 (UTC) To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 21 17:45:09 2009 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 1LauyR-0004hc-UW for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Feb 2009 17:45:08 +0100 Original-Received: from localhost ([127.0.0.1]:47924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Laux7-0007pW-H2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Feb 2009 11:43:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Laux2-0007p8-EJ for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2009 11:43:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Laux1-0007on-QL for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2009 11:43:40 -0500 Original-Received: from [199.232.76.173] (port=51038 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Laux1-0007oh-EH for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2009 11:43:39 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51621) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Laux0-00056R-Mo for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2009 11:43:39 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1LGhaSX022019; Sat, 21 Feb 2009 08:43:36 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1LGU3Sc018528; Sat, 21 Feb 2009 08:30:03 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2141 X-Emacs-PR-Package: emacs,cc-mode X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:25555 Archived-At: This is a multi-part message in MIME format... ------------=_1235233803-18436-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 21 Feb 2009 16:44:48 +0000 with message-id <20090221164448.GB3027@muc.de> and subject line Re: bug#2141: C mode indentation problem has caused the Emacs bug report #2141, regarding C mode indentation problem to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 2141: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D2141 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1235233803-18436-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 1 Feb 2009 19:39:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n11Jd3Qp001148 for ; Sun, 1 Feb 2009 11:39:04 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTi9m-0001d2-Nf for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 14:39:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTi9l-0001ba-D8 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 14:39:01 -0500 Received: from [199.232.76.173] (port=48451 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTi9k-0001bJ-J1 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 14:39:00 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:47525) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LTi9k-0000ZF-3j for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 14:39:00 -0500 Received: from mx10.gnu.org ([199.232.76.166]:45573) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LTi83-0000iH-90 for bug-emacs@gnu.org; Sun, 01 Feb 2009 14:37:15 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LTi9i-0000Z5-Qm for bug-emacs@gnu.org; Sun, 01 Feb 2009 14:38:59 -0500 Received: from exprod7og110.obsmtp.com ([64.18.2.173]:35652) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LTi9i-0000Yt-C3 for bug-emacs@gnu.org; Sun, 01 Feb 2009 14:38:58 -0500 Received: from source ([209.85.219.20]) by exprod7ob110.postini.com ([64.18.6.12]) with SMTP ID DSNKSYX6UDtvfAmYw8olsqEsonhpHp0CL6th@postini.com; Sun, 01 Feb 2009 11:38:58 PST Received: by ewy13 with SMTP id 13so1492474ewy.17 for ; Sun, 01 Feb 2009 11:38:55 -0800 (PST) Received: by 10.67.115.15 with SMTP id s15mr1138689ugm.56.1233517135404; Sun, 01 Feb 2009 11:38:55 -0800 (PST) Received: from mord.config (78-105-4-25.zone3.bethere.co.uk [78.105.4.25]) by mx.google.com with ESMTPS id 34sm2955323ugh.10.2009.02.01.11.38.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 01 Feb 2009 11:38:55 -0800 (PST) Date: Sun, 1 Feb 2009 19:38:54 +0000 (GMT) From: Reuben Thomas To: bug-emacs@gnu.org Subject: C mode indentation problem Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Running Emacs from CVS head as "./emacs -Q foo.c" to create a new buffer foo.c in C mode, if I enter the following text, indenting as I go: ----cut here---- int main (void) { int foo; switch (foo) { case BLAH | 'a': bar = 0; break; ---cut here---- it is indented as above, which I believe is wrong, as the "break" should be indented to the same column as the previous line. If I change the case line to simply "case BLAH:" then this does indeed happen. -- http://rrt.sc3d.org/ | That's about as useful as a paper wok ------------=_1235233803-18436-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2141-done) by emacsbugs.donarmstrong.com; 21 Feb 2009 16:23:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.muc.de (qmailr@colin.muc.de [193.149.48.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1LGNAwm017165 for <2141-done@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 08:23:11 -0800 Received: (qmail 11679 invoked by uid 3782); 21 Feb 2009 16:23:09 -0000 Received: from acm.muc.de (pD9E52826.dip.t-dialin.net [217.229.40.38]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 21 Feb 2009 17:23:08 +0100 Received: (qmail 10403 invoked by uid 1000); 21 Feb 2009 16:44:48 -0000 Date: Sat, 21 Feb 2009 16:44:48 +0000 To: 2141-done@emacsbugs.donarmstrong.com Subject: Re: bug#2141: C mode indentation problem Message-ID: <20090221164448.GB3027@muc.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Alan Mackenzie X-Primary-Address: acm@muc.de On Sun, Feb 01, 2009 at 07:38:54PM +0000, Reuben Thomas wrote: > Running Emacs from CVS head as "./emacs -Q foo.c" to create a new buffer > foo.c in C mode, if I enter the following text, indenting as I go: > ----cut here---- > int main (void) > { > int foo; > switch (foo) > { > case BLAH | 'a': > bar = 0; > break; > ---cut here---- > it is indented as above, which I believe is wrong, as the "break" should be > indented to the same column as the previous line. If I change the case line > to simply "case BLAH:" then this does indeed happen. Fixed by enhancing c-beginning-of-statement-1 to handle (compile-time) expressions as case labels. -- Alan Mackenzie (Nuremberg, Germany). ------------=_1235233803-18436-0--