From: Alan Mackenzie <acm@muc.de>
To: Reuben Thomas <rrt@sc3d.org>, 2141@emacsbugs.donarmstrong.com
Cc: bug-cc-mode@gnu.org, bug-emacs@gnu.org
Subject: bug#2141: C mode indentation problem
Date: Sun, 1 Feb 2009 21:23:42 +0000 [thread overview]
Message-ID: <20090201212342.GA4969__38458.3915620626$1233523717$gmane$org@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.
This is indeed a bug. I'm looking into it now.
Thanks for reporting it!
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2009-02-01 21:23 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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='20090201212342.GA4969__38458.3915620626$1233523717$gmane$org@muc.de' \
--to=acm@muc.de \
--cc=2141@emacsbugs.donarmstrong.com \
--cc=bug-cc-mode@gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).