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#16526: 24.3.50; scroll-conservatively & c-mode regression Date: Sun, 02 Feb 2014 20:07:25 +0200 Message-ID: <837g9d4cde.fsf@gnu.org> References: <52E4EF61.3050404@gmx.at> <831tzubqxw.fsf@gnu.org> <20140126204310.GA3937@acm.acm> <52E61704.6050807@gmx.at> <20140129223626.GD3092@acm.acm> <52EA0124.4000809@gmx.at> <52EA57D6.5080403@gmx.at> <83txcl75nj.fsf@gnu.org> <52EAA0C9.1090000@gmx.at> <834n4j5d3k.fsf@gnu.org> <20140202174050.GA5365@acm.acm> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1391365072 8103 80.91.229.3 (2 Feb 2014 18:17:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Feb 2014 18:17:52 +0000 (UTC) Cc: 16526@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 02 19:17:58 2014 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 1WA1cD-0003Ur-9N for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Feb 2014 19:17:57 +0100 Original-Received: from localhost ([::1]:42281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA1cC-0006n5-SQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Feb 2014 13:17:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA1c4-0006TR-4R for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2014 13:17:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WA1T7-0008K4-7y for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2014 13:09:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA1Sc-0008Em-Dd; Sun, 02 Feb 2014 13:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WA1Sc-0001aR-0v; Sun, 02 Feb 2014 13:08:02 -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: Sun, 02 Feb 2014 18:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16526 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 16526-submit@debbugs.gnu.org id=B16526.13913644646072 (code B ref 16526); Sun, 02 Feb 2014 18:08:01 +0000 Original-Received: (at 16526) by debbugs.gnu.org; 2 Feb 2014 18:07:44 +0000 Original-Received: from localhost ([127.0.0.1]:46585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WA1SJ-0001Zr-3s for submit@debbugs.gnu.org; Sun, 02 Feb 2014 13:07:43 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:45516) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WA1SG-0001Zf-Bi for 16526@debbugs.gnu.org; Sun, 02 Feb 2014 13:07:41 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0N0D00800RD83F00@mtaout26.012.net.il> for 16526@debbugs.gnu.org; Sun, 02 Feb 2014 20:06:36 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0D009MQRN01900@mtaout26.012.net.il>; Sun, 02 Feb 2014 20:06:36 +0200 (IST) In-reply-to: <20140202174050.GA5365@acm.acm> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:84455 Archived-At: > Date: Sun, 2 Feb 2014 17:40:50 +0000 > Cc: martin rudalics , 16526@debbugs.gnu.org > From: Alan Mackenzie > > > Perhaps Alan could explain why the CC Mode fontification takes such a > > long time for buffer position 948757. > > No, sorry I can't explain it. Except that CC Mode will be scanning > forward through the entire buffer once (hopefully only once) to get the > "parse state" near EOB. Why can't it start from a position outside any function instead? > On a normally optimised 24.3 build, M-x goto-char 948757 is taking me a > little over a second. This is in a GUI frame in X Windows, maximised by > clicking on the maximise button at the top right of the frame. > > On my non-optimised 24.3.50 build with tracing built in, the same action, > M-x goto-char 948757 takes 9 seconds. In a non-maximised frame it takes > 8 seconds. In this build, M-> takes ~2 seconds regardless of whether the > frame is maximised or not. I can't explain this difference. These times are consistent with what I see. > I've committed my patch. I hope it clears up the bug (which I haven't > yet closed) more or less satisfactorally. Thanks.