From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.bugs Subject: bug#24431: 25.1.50; Wrong indentation in C++ mode when calling constructors with braces Date: Thu, 15 Sep 2016 14:09:24 +0200 Message-ID: <1473941364.1627.6.camel@gmail.com> References: <20160915084234.16623.qmail@mail.muc.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-pRq+ZpXLkrs3knqnnNzb" X-Trace: blaine.gmane.org 1473941432 1876 195.159.176.226 (15 Sep 2016 12:10:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2016 12:10:32 +0000 (UTC) Cc: 24431@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 14:10:26 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 1bkVUi-0007a7-Cj for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 14:10:20 +0200 Original-Received: from localhost ([::1]:34096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkVUg-0000jM-CL for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 08:10:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkVUU-0000gt-UU for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 08:10:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkVUQ-00029b-Mg for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 08:10:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkVUQ-00029T-KI; Thu, 15 Sep 2016 08:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkVUQ-00083a-Fl; Thu, 15 Sep 2016 08:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matthias Meulien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 15 Sep 2016 12:10: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.147394138630940 (code B ref 24431); Thu, 15 Sep 2016 12:10:02 +0000 Original-Received: (at 24431) by debbugs.gnu.org; 15 Sep 2016 12:09:46 +0000 Original-Received: from localhost ([127.0.0.1]:60085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkVU9-00082x-S8 for submit@debbugs.gnu.org; Thu, 15 Sep 2016 08:09:46 -0400 Original-Received: from mail-lf0-f42.google.com ([209.85.215.42]:34043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkVU7-00082l-Vs for 24431@debbugs.gnu.org; Thu, 15 Sep 2016 08:09:44 -0400 Original-Received: by mail-lf0-f42.google.com with SMTP id u14so32639947lfd.1 for <24431@debbugs.gnu.org>; Thu, 15 Sep 2016 05:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version; bh=oy8KSlMDOU91yKva0tYQDfvAczLjxA9N7Baf2KVGTqs=; b=hhZBbiFLexe50rw0nN5YSFsTMtLhu4+JD3zntPP/ocEvAC+SoMz8eq4ths3hjCD7tF Yf/aHND9rPily7sk8rbnXiDyvo8B2xbvbIvhFro1y9t0HacpI9s7Y6fiVqPqrYPKbufY HiiuLoZ2pxay6j/6gRWkPW9g6L+GsPKxvCyr2Vf2oSowRWzKiiKy5VXaFDLiMEFXRf4c yhn92NLOpBLfqqRsx1Wy2ViyuwgK/wOz83KcAzkYaxizglxIPALDKfhu8p9TPjNbiKVt qwmEQcvXK2jV74insFJ7l0IzseY1pE3YYwPWISKmwCg9yub8I7Z1vhTl3Yic6ZrLl5CC DPlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version; bh=oy8KSlMDOU91yKva0tYQDfvAczLjxA9N7Baf2KVGTqs=; b=jNjxh15WBQUROjgBk8zfhcWFSG132g4RSHT2tYUDc8UwpltNcq9v5PSzLqCAGVX9dg fMQW4hDCUhV/zWRs9osFYw5cEOxNu0hO61obSaeEuOPT4sS5WaF250G/WG+jfx1Is6SK CGjhoiNNHM4vT3Hpfzb+oa5Dp48e3m/VrlJcxhrjF6VImWR94uetwdM5L7X8iH419yqk 6O4uNDWSVkJllgQwG4LnbE/3HUkt3M8I2sfCv341B50xneE7sJ8r7IgRgkoNRbpFqI5/ 53H/1zL3bihaEk2YB1+sEmSDzd90Vvl1mBqj5wSlawPeMSfkq4H8u8058n4a5GLVZiLL inHg== X-Gm-Message-State: AE9vXwO9wVZ3pKR75VsRh+wtqj4qe9KUz0/ZI4Sjg9jKkOT+pzk2CK1sPwOOfZBdeNAOdA== X-Received: by 10.28.12.133 with SMTP id 127mr2563992wmm.119.1473941375863; Thu, 15 Sep 2016 05:09:35 -0700 (PDT) Original-Received: from carbon (eth-west-pareq2-46-193-0-50.wb.wifirst.net. [46.193.0.50]) by smtp.gmail.com with ESMTPSA id m5sm2556015wmd.1.2016.09.15.05.09.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Sep 2016 05:09:35 -0700 (PDT) In-Reply-To: <20160915084234.16623.qmail@mail.muc.de> X-Mailer: Evolution 3.20.5 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:123325 Archived-At: --=-pRq+ZpXLkrs3knqnnNzb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hi Alan, Sorry, my report lacks of precision. > > 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}, > >       point_t{0.2, 0.5}}); // wrong identation > > > What, exactly, is wrong about that indentation?  What would you like to see there, and why? I am expecting to see the same indentation whatever I'm using, brackets or parenthesis; That is: set_line(line_t{point_t{0.4, 0.2},                 point_t{0.2, 0.5}}); > --  Matthias --=-pRq+ZpXLkrs3knqnnNzb Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi Alan,

Sorry, my r= eport lacks of precision.

set_line(line_t(point_t(0.4, 0.2),
&n= bsp;            = ;   point_t(0.2, 0.5)));


set_line(line_t{point_t{0.4, 0.= 2},
      point_t{0.2, 0.5}}); // w= rong identation

What, exactly, is wro= ng about that indentation?  What would you like to see there, and= why?

I am expecting to see the same = indentation whatever I'm using, brackets or parenthesis; That is:

set_line(line_t{point_t{0.4, 0.2},
    =
            point_t{0.2, 0.5}});
-- 
Matthias=
--=-pRq+ZpXLkrs3knqnnNzb--