all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ralovich, Kristóf" <kristof.ralovich@gmail.com>
To: emacs-devel@gnu.org
Subject: Fwd: c-indent-command misindents?
Date: Wed, 18 Jun 2008 13:09:39 +0200	[thread overview]
Message-ID: <5712ce4f0806180409x522e5b21jee2dae55172319c0@mail.gmail.com> (raw)
In-Reply-To: <5712ce4f0805310813oea4c69bub98e6bc1f5877943@mail.gmail.com>

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

  reply	other threads:[~2008-06-18 11:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-31 15:13 bug#341: c-indent-command misindents? Ralovich, Kristóf 
2008-06-18 11:09 ` Ralovich, Kristóf [this message]
2015-12-29  0:48 ` 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=5712ce4f0806180409x522e5b21jee2dae55172319c0@mail.gmail.com \
    --to=kristof.ralovich@gmail.com \
    --cc=emacs-devel@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.