From: Alan Mackenzie <acm@muc.de>
To: Kevin Yu <yujie052@gmail.com>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org
Subject: Re: C++-mode, wrong indentation
Date: Mon, 14 Jul 2008 13:44:06 +0000 [thread overview]
Message-ID: <20080714134406.GD3445@muc.de> (raw)
In-Reply-To: <20080702095731.GA2594@muc.de>
Hello again, Kevin!
On Wed, Jul 02, 2008 at 09:57:31AM +0000, Alan Mackenzie wrote:
> Hi, Kevin!
> On Wed, Jul 02, 2008 at 12:59:36PM +0800, Kevin Yu wrote:
> > 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.
> Yes. This is a bug.
[ .... ]
> I can probably fix this quite easily.
Correction: I can probably fix this. ;-( It's a bit trickier than I
thought it would be. I'm working on it.
--
Alan Mackenzie (Nuremberg, Germany).
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
next prev parent reply other threads:[~2008-07-14 13:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 4:59 C++-mode, wrong indentation Kevin Yu
2008-07-02 9:57 ` Alan Mackenzie
2008-07-14 13:44 ` Alan Mackenzie [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080714134406.GD3445@muc.de \
--to=acm@muc.de \
--cc=bug-cc-mode@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=yujie052@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 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).