From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: C++-mode, wrong indentation Date: Thu, 4 Feb 2010 21:24:52 +0000 Message-ID: <20100204212452.GA12955@muc.de> References: <42b562540807012159jc4c246bg1fcbe8e9e2ea2ac6@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265318291 32049 80.91.229.12 (4 Feb 2010 21:18:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2010 21:18:11 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org To: Kevin Yu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 04 22:18:09 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nd95U-0001hA-BF for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 22:18:08 +0100 Original-Received: from localhost ([127.0.0.1]:58078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd95T-00064A-PA for ged-emacs-devel@m.gmane.org; Thu, 04 Feb 2010 16:18:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nd95N-00061c-2G for emacs-devel@gnu.org; Thu, 04 Feb 2010 16:18:01 -0500 Original-Received: from [199.232.76.173] (port=36455 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd95M-00060N-AC for emacs-devel@gnu.org; Thu, 04 Feb 2010 16:18:00 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nd95K-00041F-Md for emacs-devel@gnu.org; Thu, 04 Feb 2010 16:18:00 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:3588 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nd95K-00040U-5N for emacs-devel@gnu.org; Thu, 04 Feb 2010 16:17:58 -0500 Original-Received: (qmail 32285 invoked by uid 3782); 4 Feb 2010 21:17:54 -0000 Original-Received: from acm.muc.de (pD9E516B4.dip.t-dialin.net [217.229.22.180]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 04 Feb 2010 22:17:53 +0100 Original-Received: (qmail 13040 invoked by uid 1000); 4 Feb 2010 21:24:52 -0000 Content-Disposition: inline In-Reply-To: <42b562540807012159jc4c246bg1fcbe8e9e2ea2ac6@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120920 Archived-At: Hi, Keven, 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. I've just committed a fix to this into the Emacs bzr repository. Also into the CC Mode cvs repository at SourceForge. Don't tell me you forgot about this? ;-) > Best regards > Thanks. Sincerely, -- Alan Mackenzie (Nuremberg, Germany).