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#18134: 24.3; Doxygen comments trigger anomalous C++ major mode behavior Date: Mon, 7 Oct 2019 18:51:35 +0000 Message-ID: <20191007185135.GA5606@ACM> References: <87ppgpiraa.fsf@octopus.email-scan.com> 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="101114"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 18134@debbugs.gnu.org, Sam Varshavchik To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 07 20:52:18 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 1iHY7E-000Ptr-OQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2019 20:52:16 +0200 Original-Received: from localhost ([::1]:48956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHY77-0005TV-Pe for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2019 14:52:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53309) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHY71-0005TK-JK for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 14:52:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHY70-00022s-JE for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 14:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHY70-00022m-G1; Mon, 07 Oct 2019 14:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iHY70-0008Qy-De; Mon, 07 Oct 2019 14:52: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, 07 Oct 2019 18:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18134 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 18134-submit@debbugs.gnu.org id=B18134.157047430232391 (code B ref 18134); Mon, 07 Oct 2019 18:52:02 +0000 Original-Received: (at 18134) by debbugs.gnu.org; 7 Oct 2019 18:51:42 +0000 Original-Received: from localhost ([127.0.0.1]:49113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHY6f-0008QL-OU for submit@debbugs.gnu.org; Mon, 07 Oct 2019 14:51:42 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:36202 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iHY6d-0008QC-QP for 18134@debbugs.gnu.org; Mon, 07 Oct 2019 14:51:40 -0400 Original-Received: (qmail 80670 invoked by uid 3782); 7 Oct 2019 18:51:37 -0000 Original-Received: from acm.muc.de (p4FE15C71.dip0.t-ipconnect.de [79.225.92.113]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 07 Oct 2019 20:51:35 +0200 Original-Received: (qmail 6285 invoked by uid 1000); 7 Oct 2019 18:51:35 -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:168573 Archived-At: Hello, Stefan. On Mon, Oct 07, 2019 at 00:42:46 +0200, Stefan Kangas wrote: > found 27.0.50 > thanks > Sam Varshavchik writes: > > I am seeing anomalous behavior in C++ major mode that's triggered by > > long, but not excessively long -- only a few hundred lines -- Doxygen-style > > comments. > > Cursor navigation at the end of the Doxygen comment block in the > > following file (just before the first typedef), and trying to add some > > additional text there, results in 3-5 seconds' worth of delays for > > nearly typed character. > > Highlighting the entire Doxygen comment block: M-x indent-region takes > > several minutes (!) with emacs consuming 100% CPU. > [Snipped a long C++ example file here.] > I can reproduce both issues on current master using the provided example > file. > 1. Editing is very slow after the Doxygen comment block. > 2. Opening the example file under "emacs -Q", pressing C-x h TAB takes > several minutes and sees the emacs process consume 100 % CPU (on one > core at least). I will be looking at this in the coming days. It is likely to take several (or even many) days to resolve, not hours. [ .... ] > Best regards, > Stefan Kangas -- Alan Mackenzie (Nuremberg, Germany).