emacs-devel
[Top][All Lists]
Advanced

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

C++-mode, wrong indentation


From: Kevin Yu
Subject: C++-mode, wrong indentation
Date: Wed, 2 Jul 2008 12:59:36 +0800

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.

reply via email to

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