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#16081: Subject: c++-mode indentation "*wedging*" Date: Mon, 30 Sep 2019 15:31:08 +0200 Message-ID: References: <1386355775.96448.YahooMailNeo@web161505.mail.bf1.yahoo.com> 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="152703"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 16081-done@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 30 15:32:47 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 1iEvn8-000dRL-5N for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 15:32:42 +0200 Original-Received: from localhost ([::1]:52492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEvn6-0001rJ-7r for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 09:32:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44641) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEvmY-0001i5-5K for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 09:32:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEvmX-0002Zm-0G for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 09:32:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEvmU-0002Yq-S5; Mon, 30 Sep 2019 09:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEvmU-0007lV-O7; Mon, 30 Sep 2019 09:32:02 -0400 In-Reply-To: <1386355775.96448.YahooMailNeo@web161505.mail.bf1.yahoo.com> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 30 Sep 2019 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 16081 X-GNU-PR-Package: emacs,cc-mode Mail-Followup-To: 16081@debbugs.gnu.org, stefan@marxist.se, craigrsteury@yahoo.com Original-Received: via spool by 16081-done@debbugs.gnu.org id=D16081.156985028829803 (code D ref 16081); Mon, 30 Sep 2019 13:32:02 +0000 Original-Received: (at 16081-done) by debbugs.gnu.org; 30 Sep 2019 13:31:28 +0000 Original-Received: from localhost ([127.0.0.1]:57069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEvlw-0007kd-1x for submit@debbugs.gnu.org; Mon, 30 Sep 2019 09:31:28 -0400 Original-Received: from mail-pf1-f178.google.com ([209.85.210.178]:43765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEvlt-0007kO-E3 for 16081-done@debbugs.gnu.org; Mon, 30 Sep 2019 09:31:26 -0400 Original-Received: by mail-pf1-f178.google.com with SMTP id a2so5618768pfo.10 for <16081-done@debbugs.gnu.org>; Mon, 30 Sep 2019 06:31:25 -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=c8rHxnj2UD97F9/rAgSqq8iJwWkhfrm3BgM/jnKZCuc=; b=jwYBm+ENtSgm8q4J2GuVuwd8sxykiW5lv/nbzJaog9BbHqQnlD0S8di3zDqth8R1YG 5hFCs8repkpvCs63C4ww9212j1RJoMiZtQGEbM1z9ENNvRqXB46YtrEAP1xe0i4owQvZ 42MZj5fUd+mEYzIPZ+4GxiRqsKQfj/aQEHrQNI2MtDPhFJDZEqVLvglLDfB7shXGREiu EXajUy0AVYJdemXfbZPmybp4+yZ4PGO8nmtHQdWIIr3n2VYp6Hjb1s5vNqTPXFULS4Sl diDayaE1F504HLYCdpP8rQa9GHKFOMuzed5+o2KOMY2fS3+zp1U1dehh46/jNxPwpSO9 bGeA== X-Gm-Message-State: APjAAAW1y5mSYSDGeUkCdknY8DO7bWd/RVuiz65zfdd2Pg2mYhM5xspr Xe3PljEQW20/epxoGjQ9GeYL0T3H3gH1ebgxHotqk70xk08= X-Google-Smtp-Source: APXvYqx6pfDfp7fc1dHdCd0t59FdrP6HWCdZtEb8dDCGdvL0eVXKR3nvWLgeIdFRiJES6Ne2N1PmNov4uI6PiQ24Fhs= X-Received: by 2002:a17:90b:8d1:: with SMTP id ds17mr27223484pjb.106.1569850279452; Mon, 30 Sep 2019 06:31:19 -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:167870 Archived-At: Alan Mackenzie writes: > Craig Steury wrote: >> Hello, this is bug-report is concerned with indentation in >> c++-mode. The symptoms are after some unspecified amount of time/work >> indentation becomes "wedged". [...] > Unfortunately, the first line of the first entry ("c-parse-state > inconsistency at L....") has been lost here. Could it be that this > wasn't the first inconsistency, but the *Messages* buffer has overflowed? > In this case it can be helpful to set the variable `message-log-max' to t. > Only the first report of inconsistency is really useful, since it indicates > the point where an internal cache may have become corrupted. > > To use this debug information, I need the C++ source file. Is there any > chance you could post this? (Or alternatively, send it to me privately.) > The debug output suggests this file may be quite small. Also, please > report explicitly whether or not you were changing the buffer at the time > the inconsistency was reported, and if so, how. > > There's just one thing I'll ask you to try first: there's a known bug > triggered by having an open parenthesis/brace/bracket at column 0 inside a > comment. Would you please check your code for this, and if you find such > a paren/br/br try removing it to see if the bug then goes away. > > So, quick summary: please check for that open p/b/b in column 0. If not > found then post (or mail to me) the source file and the very first two > "inconsistency" reports, together with details on whether the buffer was > being changed. More information was requested, but none was given within 6 years, so I'm closing this bug report. If this is still an issue, please re-open the bug report. Best regards, Stefan Kangas