all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrew Hyatt <ahyatt@gmail.com>
To: Ralovich@debbugs.gnu.org, Kristóf <kristof.ralovich@gmail.com>
Cc: 341@debbugs.gnu.org
Subject: bug#341: c-indent-command misindents?
Date: Mon, 28 Dec 2015 19:48:22 -0500	[thread overview]
Message-ID: <m28u4em65l.fsf@gmail.com> (raw)
In-Reply-To: <5712ce4f0805310813oea4c69bub98e6bc1f5877943@mail.gmail.com> (Ralovich's message of "Sat, 31 May 2008 17:13:49 +0200")


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





  parent reply	other threads:[~2015-12-29  0:48 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 ` Fwd: " Ralovich, Kristóf
2015-12-29  0:48 ` Andrew Hyatt [this message]
2015-12-29 20:33   ` bug#341: " 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=m28u4em65l.fsf@gmail.com \
    --to=ahyatt@gmail.com \
    --cc=341@debbugs.gnu.org \
    --cc=Ralovich@debbugs.gnu.org \
    --cc=kristof.ralovich@gmail.com \
    /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.