unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Fwd: c-indent-command misindents?
       [not found] <5712ce4f0805310813oea4c69bub98e6bc1f5877943@mail.gmail.com>
@ 2008-06-18 11:09 ` Ralovich, Kristóf
  0 siblings, 0 replies; only message in thread
From: Ralovich, Kristóf @ 2008-06-18 11:09 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

Hi,

a few weeks ago I have submitted a bug report, now at:
http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=341

Would someone please have a look at it?

Thanks,
Kristof


---------- Forwarded message ----------
From: Ralovich, Kristóf <kristof.ralovich@gmail.com>
Date: Sat, May 31, 2008 at 5:13 PM
Subject: c-indent-command misindents?
To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org


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] only message in thread

only message in thread, other threads:[~2008-06-18 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <5712ce4f0805310813oea4c69bub98e6bc1f5877943@mail.gmail.com>
2008-06-18 11:09 ` Fwd: c-indent-command misindents? Ralovich, Kristóf

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).