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: Fri, 6 Oct 2017 04:59:55 +0200 Message-ID: References: <20171004181552.GA15562@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1507258879 30494 195.159.176.226 (6 Oct 2017 03:01:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2017 03:01:19 +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 Fri Oct 06 05:01:15 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 1e0Isy-0006Tg-Ce for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Oct 2017 05:01:12 +0200 Original-Received: from localhost ([::1]:42731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0Isz-0008TZ-Jc for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Oct 2017 23:01:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0Isu-0008SZ-0H for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 23:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0Ist-0006w4-82 for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 23:01:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43302) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0Isp-0006vB-CQ; Thu, 05 Oct 2017 23:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e0Iso-0003Z5-9v; Thu, 05 Oct 2017 23:01: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: Fri, 06 Oct 2017 03:01: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.150725883413657 (code B ref 28623); Fri, 06 Oct 2017 03:01:02 +0000 Original-Received: (at 28623) by debbugs.gnu.org; 6 Oct 2017 03:00:34 +0000 Original-Received: from localhost ([127.0.0.1]:51983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0IsM-0003YD-8n for submit@debbugs.gnu.org; Thu, 05 Oct 2017 23:00:34 -0400 Original-Received: from mail-it0-f44.google.com ([209.85.214.44]:47142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0IsJ-0003Xz-Bg for 28623@debbugs.gnu.org; Thu, 05 Oct 2017 23:00:32 -0400 Original-Received: by mail-it0-f44.google.com with SMTP id p138so3739452itp.2 for <28623@debbugs.gnu.org>; Thu, 05 Oct 2017 20:00:31 -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=q2461kmW9QMGU+SGzr4Y1+UM/BcmtR83BwLUGkhUDCY=; b=if3ra+ZkekQ5WzTSutsDKXYvQMztamryy54iqURvfO5sGSAn+iL+nv/r44dm9gLYjP CoAhN3qpAB/lXbTSQDxBbKcIiGzxIe8TloXR+URNy/AY0f2QOUmbKCu0iA4UFtpeu2qZ LLN5xNfDhYaEHVY684xo2j6yJePVJih2bwUnG1vS3R3Zp/GLqozywSmEx5FMKo5Rpwg0 XXx0le32qwxGIJFlOCHkwE/0Vp1ZK7pAtPr2LbiufB6PFQXGWdPUIuEb7BJRV6qtFQjU i6UpYMgbWcqmEy1aqJR02ULKjFJdgJFQvkEFgZ49RG6pD2mG96npRxb7YE5NUWWDhU5s ZRgg== 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=q2461kmW9QMGU+SGzr4Y1+UM/BcmtR83BwLUGkhUDCY=; b=d0r1kkB7N9sgvHxClm8ZjmfaxBWuEmzrww1J1Hft5NXxaZgFnlok3qZzrPYr7LLWVP KhmBHCTTaqKLtC70MFhpASqrmOL6rVaxwBZKeFjVGNkHeUyIoa6CmrlJH18Ng1YCtEyy c24mDDyFeLfkUuCUlx4dD5mAldkzibnji/JUQisgO3AYgkW5xLIuyGRPDX3iamMubcSQ VrYAqcI7jcllAwRXu04uF9px5DMJimnAdrPdqw4E/Tx9//lh7aynJzL9Z8QkBGER5NZ4 +7kLo3KWfLiwZ/1i6hVxiQfXPcHqAs+TDwr59d9Bw1jcSopf1C7curdHNc3vAEI1VHra RLuw== X-Gm-Message-State: AMCzsaXcTKxpH6Kh9YJzOCagDAoXBBnHv52Kjf5ACE/UZVKdfzu5sLKi w8XJxkMGRDkMgpgDEzh+S97dDUGrphpz8eiq7gHv X-Google-Smtp-Source: AOwi7QAyQGfPUC4tADIUNVOciktzqVtkM1+rysRTmw2ioxu92txjd5CAEA5pSqXwBucKAOumacpQRmQOaegVyVJKu7A= X-Received: by 10.36.120.142 with SMTP id p136mr769882itc.55.1507258825461; Thu, 05 Oct 2017 20:00:25 -0700 (PDT) Original-Received: by 10.2.6.2 with HTTP; Thu, 5 Oct 2017 19:59:55 -0700 (PDT) In-Reply-To: <20171004181552.GA15562@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:137994 Archived-At: On Wed, Oct 4, 2017 at 8:15 PM, Alan Mackenzie wrote: > Hello, Tadeus. Hi Alan! [...] >> Any better suggestion as to how to fix the problem? > > Hey, I just love it when people diagnose and fix their own bugs, > particularly in some of the more involved bits of CC Mode. :-) To make the maintainer's life easier :-) > Just one tiny, tiny, nitpick. in (looking-at ",\\s *"), isn't the "any > amount of space" bit redundant, since we don't use match-end to get the > precise position? In fact, I'm tending towards the simpler (eq > (char-after) ?,). That is surely better. Please go with that solution. > But, as I say, that's a tiny point in a great piece of debugging. I > will commit this (to the Emacs-26 branch of savannah) soon (from where > it will find its way to the master branch due to some public spirited > person who arranges these things). Thank you very much for your review. > Many thanks! No problem. I'm glad to help. -- Best regards, Tadeus