From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#2141: C mode indentation problem Date: Sun, 1 Feb 2009 21:23:42 +0000 Message-ID: <20090201212342.GA4969__38458.3915620626$1233523717$gmane$org@muc.de> References: Reply-To: Alan Mackenzie , 2141@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233523637 27933 80.91.229.12 (1 Feb 2009 21:27:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2009 21:27:17 +0000 (UTC) Cc: bug-cc-mode@gnu.org, bug-emacs@gnu.org To: Reuben Thomas , 2141@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 22:28:29 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from mail-forward2.uio.no ([129.240.10.71]) by lo.gmane.org with esmtp (Exim 4.50) id 1LTjrZ-00048D-KZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 22:28:21 +0100 Original-Received: from exim by mail-out2.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1LTjqH-0000zf-Ec for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 22:27:01 +0100 Original-Received: from mail-mx2.uio.no ([129.240.10.30]) by mail-out2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1LTjqH-0000zc-Db for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 22:27:01 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx2.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LTjqG-0002E6-NI for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 22:27:01 +0100 Original-Received: from localhost ([127.0.0.1]:55600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTjn7-00081D-BR for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 16:23:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTjn0-0007xE-FD for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 16:23:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTjmw-0007sn-7z for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 16:23:35 -0500 Original-Received: from [199.232.76.173] (port=48364 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTjmv-0007sV-Tn for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 16:23:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59142) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTjmv-0000Ct-96 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 16:23:33 -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 n11LNV66028894; Sun, 1 Feb 2009 13:23:31 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n11LA3ke025341; Sun, 1 Feb 2009 13:10:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Alan Mackenzie Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 01 Feb 2009 21:10:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2141 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123352226923290 (code B ref -1); Sun, 01 Feb 2009 21:10:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 1 Feb 2009 21:04:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 n11L4P3m023282 for ; Sun, 1 Feb 2009 13:04:26 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTjUP-00026t-9z for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 16:04:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTjUN-00026e-RG for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 16:04:25 -0500 Original-Received: from [199.232.76.173] (port=35978 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTjUN-00026b-IK for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 16:04:23 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:33420) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LTjUN-0007GQ-9s for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 16:04:23 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:47836) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LTjSf-0002bl-Qg for bug-emacs@gnu.org; Sun, 01 Feb 2009 16:02:37 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LTjUK-0007Fx-1K for bug-emacs@gnu.org; Sun, 01 Feb 2009 16:04:22 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:4522 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTjUJ-0007FX-9k for bug-emacs@gnu.org; Sun, 01 Feb 2009 16:04:19 -0500 Original-Received: (qmail 82777 invoked by uid 3782); 1 Feb 2009 21:04:15 -0000 Original-Received: from acm.muc.de (pD9E23E45.dip.t-dialin.net [217.226.62.69]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sun, 01 Feb 2009 22:04:12 +0100 Original-Received: (qmail 6346 invoked by uid 1000); 1 Feb 2009 21:23:42 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Feb 2009 16:23:35 -0500 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 X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, autolearn=disabled, RCVD_IN_DNSWL_MED=-4, uiobl=NO, uiouri=NO) X-UiO-Scanned: C819F2E4DDC4336C90BE4881FC9AD98384F28944 X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 200 minaction 2 bait 0 mail/h: 5 total 88823 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.bugs:24801 Archived-At: Hi, Reuben, 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. This is indeed a bug. I'm looking into it now. Thanks for reporting it! -- Alan Mackenzie (Nuremberg, Germany).