From: Alan Mackenzie <acm@muc.de>
To: Reuben Thomas <rrt@sc3d.org>, 2141@emacsbugs.donarmstrong.com
Cc: bug-emacs@gnu.org
Subject: bug#2141: C mode indentation problem
Date: Sat, 21 Feb 2009 16:35:17 +0000 [thread overview]
Message-ID: <20090221163517.GA3027@muc.de> (raw)
In-Reply-To: <alpine.DEB.2.00.0902011936050.14863@mord.config>
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.
It should be fixed now in the CVS at savannah.
CC Mode was lacking code to parse (compile-time) expressions as case
labels.
--
Alan Mackenzie (Nuremberg, Germany).
prev parent reply other threads:[~2009-02-21 16:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090221164448.GB3027@muc.de>
2009-02-01 19:38 ` bug#2141: C mode indentation problem Reuben Thomas
2009-02-01 21:23 ` Alan Mackenzie
2009-02-21 16:30 ` bug#2141: marked as done (C mode indentation problem) Emacs bug Tracking System
2009-02-21 16:35 ` Alan Mackenzie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090221163517.GA3027@muc.de \
--to=acm@muc.de \
--cc=2141@emacsbugs.donarmstrong.com \
--cc=bug-emacs@gnu.org \
--cc=rrt@sc3d.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.