From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tadeus Prastowo Newsgroups: gmane.emacs.bugs Subject: bug#28623: 27.0.50; lisp/progmodes/cc-engine.el incorrect indentation of C++14 curly-brace initializer list Date: Thu, 12 Oct 2017 13:38:56 +0200 Message-ID: References: <20171004181552.GA15562@ACM> <20171011203221.GB7384@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1507808420 31616 195.159.176.226 (12 Oct 2017 11:40:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 11:40:20 +0000 (UTC) Cc: John Wiegley , 28623@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 12 13:40:16 2017 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 1e2bqQ-0006Wj-97 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 13:40:06 +0200 Original-Received: from localhost ([::1]:44885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2bqX-0000MJ-Oa for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 07:40:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2bqP-0000M2-Ht for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 07:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2bqM-00042q-Vp for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 07:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54487) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2bqM-00042j-R3; Thu, 12 Oct 2017 07:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2bqM-0004ZU-EL; Thu, 12 Oct 2017 07:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tadeus Prastowo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 12 Oct 2017 11:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28623 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 28623-submit@debbugs.gnu.org id=B28623.150780837617531 (code B ref 28623); Thu, 12 Oct 2017 11:40:02 +0000 Original-Received: (at 28623) by debbugs.gnu.org; 12 Oct 2017 11:39:36 +0000 Original-Received: from localhost ([127.0.0.1]:34935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2bpu-0004Yg-Qt for submit@debbugs.gnu.org; Thu, 12 Oct 2017 07:39:35 -0400 Original-Received: from mail-it0-f45.google.com ([209.85.214.45]:51851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2bps-0004YO-Lb for 28623@debbugs.gnu.org; Thu, 12 Oct 2017 07:39:33 -0400 Original-Received: by mail-it0-f45.google.com with SMTP id o135so6517675itb.0 for <28623@debbugs.gnu.org>; Thu, 12 Oct 2017 04:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unitn-it.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8zwcNnzHFDjOabB+6Mz3yXB4cQdU3hzeOw/u5UWV/GM=; b=uU3LAAyZQO2cxH56/IM7gqKScUvBkr+2Y7kDo9u3EW2RLjOos7bKoo6xv7f+o+kmNm WoDPOKOXuhgWiqqtHnO0y5lN3gRUddubomTiTbhf2oiZiOO0Rt0eLrB6W2etgK0FJuDT 0bJyYy45NxfGLDRYmonaJv2GEfY/P2HgmS+EnfaW/oC1qH5lxBq+Wo/nBqzPymJaK+EQ ivc20MTzSVxmo1BorTzTTRY0mt1gz27s8OwLqo+Mw9hU7k0F7zHI+SNx0PAuD7JXjl1T DmT/F5tohrq6Y6PUOXMeal55IxsxbvqbhfYJz2n7gRPfvTp3wcgnsRWrvkQnsXBd3kyt VPBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8zwcNnzHFDjOabB+6Mz3yXB4cQdU3hzeOw/u5UWV/GM=; b=pra+VvBp/p19LwEUHM/WTqO+rE4TbyiZFH7Ip23zhDqYWyc4riqwmJXHzlCGLR21aH 9As18DUDLXNw5Je/hzO11+MlOHpUyrUqzNxeenvZl7lV+qvmJD6kABhvfHmNmdOMfwdA Uv1IoOnM3EsC+ZnBqcIBuly4zwm1VfgaLYsLNx7es+I9hMQVsRORuviK061qMKufbh2R /+HeJyGyE60GtmR0/8u63h68m0sMw/OR/yVsehQdfjEQousTmhniIj7sSXTbd0krFhqw 41yNXOrx6nqiGXu9m4uc3YUpJQjvcYBLgdfsGv2VGCZ99KRYlcaXhLVaRq4NmgY0PZ0c Tz/A== X-Gm-Message-State: AMCzsaW0aIXp8drIu7Lqhf6PJz6fHWV4FXioVflC0qy9oSlCbrJJgDys 3omB5AtJpWeDgFwitkfMDegW+bXGChUuPfrukR8O X-Google-Smtp-Source: AOwi7QCdfQp+PhdAYv4/8SUVoNCevqoEfYXdTWWLkGql3STF/lok1QdJdQP3tTwEHhlG+G04NtM3Nj6+8p0xdIo6cMI= X-Received: by 10.36.246.76 with SMTP id u73mr2957082ith.55.1507808366723; Thu, 12 Oct 2017 04:39:26 -0700 (PDT) Original-Received: by 10.2.6.2 with HTTP; Thu, 12 Oct 2017 04:38:56 -0700 (PDT) In-Reply-To: <20171011203221.GB7384@ACM> 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:138262 Archived-At: Hi Alan! On Wed, Oct 11, 2017 at 10:32 PM, Alan Mackenzie wrote: > Hello, Tadeus. [...] > I'm sorry is been a week without any communication from me. The reason > is I've run into problems with other related cases. For example, in > > 1. auto bad4 = f <3> ( > 2. {3, 4}, > > L2 needs to be parsed as an arglist-intro and indented as shown. It's > actually being parsed as a brace-list-open with anchor point on "auto". > > What's confusing me is the confusion between a brace list being > recognised by its context (which is what > c-looking-at-or-maybe-in-bracelist mostly does) and by its content. The > {3, 4} above is a brace list by its content but not by its context. > However, it's being wrongly recognised as a by-context brace list, hence > is being parsed and indented wrongly. > > I'm not going to have much time to sort this out over the next week or > two, so please bear with me. I haven't forgotten about this. Thanks for sharing the problem with me. I will also look into the matter during this weekend. Hopefully I can come up with a good solution :) > -- > Alan Mackenzie (Nuremberg, Germany). -- Best regards, Tadeus