emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++-mode, wrong indentation


From: Alan Mackenzie
Subject: Re: C++-mode, wrong indentation
Date: Mon, 14 Jul 2008 13:44:06 +0000
User-agent: Mutt/1.5.9i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]