From: Reuben Thomas <rrt@sc3d.org>
To: bug-emacs@gnu.org
Subject: bug#2141: C mode indentation problem
Date: Sun, 1 Feb 2009 19:38:54 +0000 (GMT) [thread overview]
Message-ID: <alpine.DEB.2.00.0902011936050.14863@mord.config> (raw)
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
next reply other threads:[~2009-02-01 19:38 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 ` Reuben Thomas [this message]
2009-02-01 21:23 ` bug#2141: C mode indentation problem 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 ` bug#2141: C mode indentation problem Alan Mackenzie
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=alpine.DEB.2.00.0902011936050.14863@mord.config \
--to=rrt@sc3d.org \
--cc=2141@emacsbugs.donarmstrong.com \
--cc=bug-emacs@gnu.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.