From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#13100: 24.2; c-guess-basic-syntax of cc-engine returned wrong syntactic context if init list of C++ class constructor is too long Date: Mon, 30 Sep 2019 18:42:47 +0000 Message-ID: <20190930184247.GB4761@ACM> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="178946"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Yangyingchao , 13100@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 30 20:43:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iF0dd-000kPY-Dw for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 20:43:13 +0200 Original-Received: from localhost ([::1]:56104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iF0db-0004TB-Fg for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 14:43:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33100) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iF0dT-0004Sq-RK for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 14:43:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iF0dS-0005A6-Mi for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 14:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iF0dS-00059l-JK; Mon, 30 Sep 2019 14:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iF0dS-0002cB-F7; Mon, 30 Sep 2019 14: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: Mon, 30 Sep 2019 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13100 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 13100-submit@debbugs.gnu.org id=B13100.156986897410031 (code B ref 13100); Mon, 30 Sep 2019 18:43:02 +0000 Original-Received: (at 13100) by debbugs.gnu.org; 30 Sep 2019 18:42:54 +0000 Original-Received: from localhost ([127.0.0.1]:60502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iF0dK-0002bj-9a for submit@debbugs.gnu.org; Mon, 30 Sep 2019 14:42:54 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:27096 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iF0dI-0002ba-Mk for 13100@debbugs.gnu.org; Mon, 30 Sep 2019 14:42:53 -0400 Original-Received: (qmail 59342 invoked by uid 3782); 30 Sep 2019 18:42:50 -0000 Original-Received: from acm.muc.de (p4FE15E39.dip0.t-ipconnect.de [79.225.94.57]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 30 Sep 2019 20:42:47 +0200 Original-Received: (qmail 4824 invoked by uid 1000); 30 Sep 2019 18:42:47 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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: 209.51.188.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:167939 Archived-At: Hello, Stefan. On Mon, Sep 30, 2019 at 18:45:54 +0200, Stefan Kangas wrote: > Yangyingchao writes: > > I'm a c++ programer, and sometimes I need to initialize lots of > > member fields during in a constructor. Sometimes when the init list > > is too long, cc mode will treat some member-init-cont as > > topmost-init-cont, and then gives a wrong indention. > > After some debuging, I found this change: > > http://lists.gnu.org/archive/html/emacs-diffs/2012-03/msg00152.html. > > In this change, In CASE 5B, search limit is restricted to 500. This, > > sometimes, is not enough. > > Best Regards > > Tubo > That was almost 7 years ago. Is this still an issue? No. This was solved in response to another bug report by commit 3d1c39faa4744f87838ecd07fdf01787d5235186 Tue Apr 30 16:19:14 2013 +0000 Handle arbitrarily long C++ member initialisation lists. Please feel free to close this bug report. > Best regards, > Stefan Kangas -- Alan Mackenzie (Nuremberg, Germany).