From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas 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:45:54 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="216265"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Alan Mackenzie , 13100@debbugs.gnu.org To: Yangyingchao Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 30 18:47:54 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 1iEyq2-000u8C-2d for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 18:47:54 +0200 Original-Received: from localhost ([::1]:55048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEyq0-00024L-Gn for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 12:47:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44024) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEypE-000230-Rz for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 12:47:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEypD-0001Zq-Rx for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 12:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51573) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEypC-0001Yz-BI; Mon, 30 Sep 2019 12:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEypC-0003i4-82; Mon, 30 Sep 2019 12:47:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 30 Sep 2019 16:47: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.156986197611962 (code B ref 13100); Mon, 30 Sep 2019 16:47:02 +0000 Original-Received: (at 13100) by debbugs.gnu.org; 30 Sep 2019 16:46:16 +0000 Original-Received: from localhost ([127.0.0.1]:60392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEyoQ-000357-BA for submit@debbugs.gnu.org; Mon, 30 Sep 2019 12:46:15 -0400 Original-Received: from mail-pf1-f182.google.com ([209.85.210.182]:46035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEyoO-0002yP-5u for 13100@debbugs.gnu.org; Mon, 30 Sep 2019 12:46:13 -0400 Original-Received: by mail-pf1-f182.google.com with SMTP id y72so5913723pfb.12 for <13100@debbugs.gnu.org>; Mon, 30 Sep 2019 09:46:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=rcHAc9CgL/ibXJDZwfN64q3NHOqWS1OkiLcCR3JPlKI=; b=c23uhAHM+6dw1ydAnLqv4VQnJ584PR5HQwdLsR2IiKIBkKwOHzZkOInCBuD0SUme6W vgp22b7jZ3nSF2jEANiebcN5hf4MAhI9ssHk0xgpqDlDj7MiTfOrX3TdPLRkI5KRGoOT lZZvH0QV9ohbL5ptc4HCmCNsVA03wmgslvTzVteIXOS/1I6IdA5d2DZfcTPFPhvdv7Jm cHbxeu/U9INSmNaxgBKiRPgQQcrY1tg06zUdqjiY/23Tq7YfjQy4pbplWIhBSFBqWSzo 5kesYYLr7Ezmb5oexfDXVTmO050cyBF+Pe35DrBNXAmAwSFrdBPG9Yaik0WfcQ5qzfkY 0n/A== X-Gm-Message-State: APjAAAUyLq+xSUDU891w5kC/rzRx/xecaxwRYC/0aki76JSAvQPK4XNB YxgzARJB9zQNVbSTELif6f+3qUPiYjwWjqgvcDU= X-Google-Smtp-Source: APXvYqzYnz5q2yLE/r3S/20nvB9B8y0IseZZYbYpTCJbxJMqBKeT7ISIAWqxC1kM/6NAzWVIF7eL6OYWUm9a4ESsKjA= X-Received: by 2002:a63:1310:: with SMTP id i16mr23450739pgl.200.1569861966456; Mon, 30 Sep 2019 09:46:06 -0700 (PDT) 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:167930 Archived-At: 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? Best regards, Stefan Kangas