From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22884: 25.0.92; C/l mode editing takes waaaayy too long Date: Thu, 03 Mar 2016 22:40:42 +0200 Message-ID: <83si07z451.fsf@gnu.org> References: <56D72C35.4090708@cs.ucla.edu> <20160303124910.GA2852@acm.fritz.box> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1457037695 32364 80.91.229.3 (3 Mar 2016 20:41:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2016 20:41:35 +0000 (UTC) Cc: eggert@cs.ucla.edu, 22884@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 03 21:41:20 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aba3j-0005bg-6l for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2016 21:41:19 +0100 Original-Received: from localhost ([::1]:37277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aba3d-0001UC-Op for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2016 15:41:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aba3X-0001Sx-3Z for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 15:41:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aba3T-0006ER-2n for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 15:41:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aba3R-0006E6-Qm; Thu, 03 Mar 2016 15:41:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aba3R-0001gH-Mh; Thu, 03 Mar 2016 15:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 03 Mar 2016 20:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22884 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 22884-submit@debbugs.gnu.org id=B22884.14570376566443 (code B ref 22884); Thu, 03 Mar 2016 20:41:01 +0000 Original-Received: (at 22884) by debbugs.gnu.org; 3 Mar 2016 20:40:56 +0000 Original-Received: from localhost ([127.0.0.1]:60519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aba3M-0001fr-4W for submit@debbugs.gnu.org; Thu, 03 Mar 2016 15:40:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52627) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aba3L-0001fe-1a for 22884@debbugs.gnu.org; Thu, 03 Mar 2016 15:40:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aba3C-0006B2-St for 22884@debbugs.gnu.org; Thu, 03 Mar 2016 15:40:50 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aba3C-0006Ay-M0; Thu, 03 Mar 2016 15:40:46 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1480 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aba3C-0008Sg-0J; Thu, 03 Mar 2016 15:40:46 -0500 In-reply-to: <20160303124910.GA2852@acm.fritz.box> (message from Alan Mackenzie on Thu, 3 Mar 2016 12:49:10 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114362 Archived-At: > Date: Thu, 3 Mar 2016 12:49:10 +0000 > From: Alan Mackenzie > Cc: 22884@debbugs.gnu.org > > > emacs -Q config.h > > M-x goto-line RET 1661 RET / / > > > On my six-year-old desktop the second '/' takes about 10 seconds to > > echo. This sort of thing makes Emacs effectively unusable for editing > > config.h. > > The problem is in config.h. At line 14, inside a comment, appears the > following string: > "(at your option) any later version." > . The open paren is at column zero, so the fancy code in syntax.c then > fails to recognise the comment as a comment. I think we should change syntax.c to fix this. (Alternatively, CC mode could stop depending on it, but I doubt this is a viable alternative.) We cannot really tell people we don't support such files, as they are valid C code.