all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#341: c-indent-command misindents?
@ 2008-05-31 15:13 Ralovich, Kristóf 
  2008-06-18 11:09 ` Fwd: " Ralovich, Kristóf
  2015-12-29  0:48 ` bug#341: " Andrew Hyatt
  0 siblings, 2 replies; 7+ messages in thread
From: Ralovich, Kristóf  @ 2008-05-31 15:13 UTC (permalink / raw)
  To: bug-gnu-emacs, bug-cc-mode

[-- 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;
}

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-01-11 13:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-31 15:13 bug#341: c-indent-command misindents? Ralovich, Kristóf 
2008-06-18 11:09 ` Fwd: " 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

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.