From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#24431: 25.1.50; Wrong indentation in C++ mode when calling constructors with braces Date: 15 Sep 2016 08:42:34 -0000 Organization: muc.de e.V. Message-ID: <20160915084234.16623.qmail@mail.muc.de> References: <1473801016.1281.17.camel@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473929024 27467 195.159.176.226 (15 Sep 2016 08:43:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2016 08:43:44 +0000 (UTC) User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.3-RELEASE-p7 (amd64)) Cc: 24431@debbugs.gnu.org To: Matthias Meulien Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 10:43:39 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkSGP-0004Ud-73 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 10:43:21 +0200 Original-Received: from localhost ([::1]:60994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkSGN-0008RC-8x for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 04:43:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkSGC-0008O9-1j for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 04:43:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkSG6-0004a2-RK for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 04:43:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkSG6-0004Zw-OV; Thu, 15 Sep 2016 04:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkSG6-0001U4-Gq; Thu, 15 Sep 2016 04:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 15 Sep 2016 08:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24431 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 24431-submit@debbugs.gnu.org id=B24431.14739289585664 (code B ref 24431); Thu, 15 Sep 2016 08:43:02 +0000 Original-Received: (at 24431) by debbugs.gnu.org; 15 Sep 2016 08:42:38 +0000 Original-Received: from localhost ([127.0.0.1]:60006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkSFh-0001TI-Uf for submit@debbugs.gnu.org; Thu, 15 Sep 2016 04:42:38 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:48803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkSFg-0001T7-FO for 24431@debbugs.gnu.org; Thu, 15 Sep 2016 04:42:37 -0400 Original-Received: (qmail 16624 invoked by uid 3782); 15 Sep 2016 08:42:34 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123322 Archived-At: Hello, Matthias In article you wrot= e: > Just type the following lines in a buffer with c++-mode enabled: > struct line_t; > struct point_t; > void set_line(line_t); > set_line(line_t(point_t(0.4, 0.2), > point_t(0.2, 0.5))); > set_line(line_t{point_t{0.4, 0.2}, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0point_t{0.2, 0.5}}); // wrong ident= ation What, exactly, is wrong about that indentation? What would you like to see there, and why? When I do C-c C-s on that last line, I get: Syntactic analysis: ((arglist-cont-nonempty 130 138) (defun-block-int= ro 130) (statement-cont 130)) , which seems to be incorrect, since neither of the anchor points in the last two of the three elements point at locations within the internal C++ constructs. Amongst other things. > In GNU Emacs 25.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9) > =C2=A0of 2016-08-27 built on carbon > Repository revision: 1c7166a3ba399efbefc65feb8a6a41ef0dfa33a4 > Windowing system distributor 'The X.Org Foundation', version > 11.0.11804000 > System Description: Arch Linux [ .... ] --=20 Alan Mackenzie (Nuremberg, Germany).