From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#2141: C mode indentation problem Date: Sun, 1 Feb 2009 19:38:54 +0000 (GMT) Message-ID: Reply-To: Reuben Thomas , 2141@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1233518632 13587 80.91.229.12 (1 Feb 2009 20:03:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2009 20:03:52 +0000 (UTC) To: bug-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 21:05:03 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 1LTiYx-0003i6-22 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 21:05:03 +0100 Original-Received: from localhost ([127.0.0.1]:49727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTiXe-0001yo-4W for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2009 15:03:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTiXZ-0001x9-5v for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 15:03:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTiXX-0001vp-US for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 15:03:36 -0500 Original-Received: from [199.232.76.173] (port=44390 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTiXX-0001ve-Ol for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 15:03:35 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59155) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTiXW-0002Y3-US for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 15:03:35 -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 n11K3VoN007041; Sun, 1 Feb 2009 12:03:31 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n11Jj2iv002392; Sun, 1 Feb 2009 11:45:02 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Reuben Thomas Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 01 Feb 2009 19:45:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2141 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12335171511154 (code B ref -1); Sun, 01 Feb 2009 19:45:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 1 Feb 2009 19:39:11 +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 n11Jd3Qp001148 for ; Sun, 1 Feb 2009 11:39:04 -0800 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-Received: by ewy13 with SMTP id 13so1492474ewy.17 for ; Sun, 01 Feb 2009 11:38:55 -0800 (PST) Original-Received: by 10.67.115.15 with SMTP id s15mr1138689ugm.56.1233517135404; Sun, 01 Feb 2009 11:38:55 -0800 (PST) Original-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) User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) 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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Feb 2009 15:03:36 -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 Xref: news.gmane.org gmane.emacs.bugs:24800 Archived-At: 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