From: "Ralovich, Kristóf " <kristof.ralovich@gmail.com>
To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org
Subject: bug#341: c-indent-command misindents?
Date: Sat, 31 May 2008 17:13:49 +0200 [thread overview]
Message-ID: <5712ce4f0805310813oea4c69bub98e6bc1f5877943@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 645 bytes --]
Hi,
I hope this letter ends up at the right maintainers!
My problem is when running c-indent-command (by pressing TAB or
calling it directly) on the 4th line of the following small snippet
(same as attached file):
1: #ifdef A
2: int foo(int a, int b)
3: #else
4: int bar(int a, int b)
5: #endif
6: {
7: return a+b;
8: }
the line is getting indented falsely:
1: #ifdef A
2: int foo(int a, int b)
3: #else
4: int bar(int a, int b)
5: #endif
6: {
7: return a+b;
8: }
I think, it should not get indented, please correct me if I am wrong!
I am using emacs 22.2 with it's default cc-mode.
Looking forward to hearing from you!
Kristóf
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: cc-mode-bug.c --]
[-- Type: text/x-csrc; name=cc-mode-bug.c, Size: 84 bytes --]
#ifdef A
int foo(int a, int b)
#else
int bar(int a, int b)
#endif
{
return a+b;
}
next reply other threads:[~2008-05-31 15:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-31 15:13 Ralovich, Kristóf [this message]
2008-06-18 11:09 ` Fwd: c-indent-command misindents? Ralovich, Kristóf
2015-12-29 0:48 ` bug#341: " Andrew Hyatt
2015-12-29 20:33 ` Alan Mackenzie
2015-12-29 20:38 ` Andrew Hyatt
2016-01-11 3:12 ` Andrew Hyatt
2016-01-11 13:35 ` 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=5712ce4f0805310813oea4c69bub98e6bc1f5877943@mail.gmail.com \
--to=kristof.ralovich@gmail.com \
--cc=341@emacsbugs.donarmstrong.com \
--cc=bug-cc-mode@gnu.org \
--cc=bug-gnu-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.