From: "Kevin Yu" <yujie052@gmail.com>
To: emacs-devel@gnu.org
Subject: C++-mode, wrong indentation
Date: Wed, 2 Jul 2008 12:59:36 +0800 [thread overview]
Message-ID: <42b562540807012159jc4c246bg1fcbe8e9e2ea2ac6@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
Hi,
====code====
if (x < 0 || y < 0 || x >= 9) {
// c++-mode will indent this line with
2*c-basic-offset when editing.
} // and this line with c-basic-offset
====code====
If you copy the above code into a c++-mode buffer, the indentation is right.
But when you reenter the ">=" of first line, the indentation goes wrong
again.
Best regards
Thanks.
[-- Attachment #2: Type: text/html, Size: 632 bytes --]
next reply other threads:[~2008-07-02 4:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 4:59 Kevin Yu [this message]
2008-07-02 9:57 ` C++-mode, wrong indentation Alan Mackenzie
2008-07-14 13:44 ` Alan Mackenzie
2010-02-04 21:24 ` 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=42b562540807012159jc4c246bg1fcbe8e9e2ea2ac6@mail.gmail.com \
--to=yujie052@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.