bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#341: c-indent-command misindents?


From: Andrew Hyatt
Subject: bug#341: c-indent-command misindents?
Date: Mon, 28 Dec 2015 19:48:22 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin)

I've reproduced this bug in emacs 25.

It seems like a real problem, thanks (belatedly) for reporting!

"Ralovich, "Kristóf\"" <kristof.ralovich@gmail.com> writes:

> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]