From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#5091: indentation in c++-mode Date: Sat, 5 Dec 2009 11:33:07 +0000 Message-ID: <20091205113307.GC2399@muc.de> References: <1259678138.22343.7.camel@imagina04.e-onsoftware.com> Reply-To: bug-cc-mode@gnu.org, 5091@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260015139 16215 80.91.229.12 (5 Dec 2009 12:12:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 12:12:19 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: voddou@e-onsoftware.com, 5091@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 13:12:11 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NGtUg-00018J-4q for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 13:12:11 +0100 Original-Received: from localhost ([127.0.0.1]:46585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGtUf-0008GN-CQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 07:12:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGt6u-0005WV-95 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 06:47:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGt6o-0005UY-6S for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 06:47:34 -0500 Original-Received: from [199.232.76.173] (port=49857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGt6n-0005US-U3 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 06:47:29 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33520) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGt6n-0008Pp-6S for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 06:47:29 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5BlPp9008258; Sat, 5 Dec 2009 03:47:25 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB5BZ5iq007286; Sat, 5 Dec 2009 03:35:05 -0800 Resent-Date: Sat, 5 Dec 2009 03:35:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Alan Mackenzie Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com 2Resent-Date: Sat, 05 Dec 2009 11:35:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5091 X-Emacs-PR-Package: emacs,cc-mode X-Emacs-PR-Keywords: Original-Received: via spool by 5091-submit@emacsbugs.donarmstrong.com id=B5091.12600124626809 (code B ref 5091); Sat, 05 Dec 2009 11:35:05 +0000 Original-Received: (at 5091) by emacsbugs.donarmstrong.com; 5 Dec 2009 11:27:42 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.muc.de (qmailr@colin.muc.de [193.149.48.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5BRelg006806 for <5091@emacsbugs.donarmstrong.com>; Sat, 5 Dec 2009 03:27:41 -0800 Original-Received: (qmail 9741 invoked by uid 3782); 5 Dec 2009 11:27:39 -0000 Original-Received: from acm.muc.de (pD9E53057.dip.t-dialin.net [217.229.48.87]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 05 Dec 2009 12:27:38 +0100 Original-Received: (qmail 5509 invoked by uid 1000); 5 Dec 2009 11:33:07 -0000 Content-Disposition: inline In-Reply-To: <1259678138.22343.7.camel@imagina04.e-onsoftware.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: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 05 Dec 2009 06:47:34 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33247 Archived-At: [Reply-To: set] Hi, Vivien, On Tue, Dec 01, 2009 at 03:35:38PM +0100, Vivien Oddou wrote: > in this code: > namespace n > { > int a = func float>(); // C-c C-s gives ((template-args-cont)) > } > void f() > { > int a = func float>(); // C-C Cs : ((defun-block-intro)) > int b = func< > int, // here too, refering to f() opening brace > float>(); > } > this is not normal. > emacs 23.1.1 Thanks for reporting this bug, and thanks for making it crisp and easy to follow. The two scenarios above aren't quite identical - the first one, in the namespace, is treated as being at "top level". The second one is inside a function, and hasn't been handled up to now. Give me a few days, and I should be able to fix it. -- Alan Mackenzie (Nuremberg, Germany).