From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#16526: 24.3.50; scroll-conservatively & c-mode regression Date: Sun, 2 Feb 2014 19:20:07 +0000 Message-ID: <20140202192007.GB5365@acm.acm> References: <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> <837g9d4cde.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1391369054 17995 80.91.229.3 (2 Feb 2014 19:24:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Feb 2014 19:24:14 +0000 (UTC) Cc: 16526@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 02 20:24:20 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 1WA2eS-0005WT-4v for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Feb 2014 20:24:20 +0100 Original-Received: from localhost ([::1]:42457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA2eR-0000sc-JM for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Feb 2014 14:24:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA2eJ-0000sS-Vj for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2014 14:24:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WA2eF-0003ty-9N for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2014 14:24:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WA2eA-0003sm-6U; Sun, 02 Feb 2014 14:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WA2e9-0003SB-VN; Sun, 02 Feb 2014 14:24:02 -0500 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: Sun, 02 Feb 2014 19:24: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.139136901113231 (code B ref 16526); Sun, 02 Feb 2014 19:24:01 +0000 Original-Received: (at 16526) by debbugs.gnu.org; 2 Feb 2014 19:23:31 +0000 Original-Received: from localhost ([127.0.0.1]:46619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WA2de-0003RK-Pf for submit@debbugs.gnu.org; Sun, 02 Feb 2014 14:23:31 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:19299 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WA2dY-0003R3-SG for 16526@debbugs.gnu.org; Sun, 02 Feb 2014 14:23:25 -0500 Original-Received: (qmail 48367 invoked by uid 3782); 2 Feb 2014 19:23:23 -0000 Original-Received: from acm.muc.de (p5492C63E.dip0.t-ipconnect.de [84.146.198.62]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 02 Feb 2014 20:23:22 +0100 Original-Received: (qmail 6374 invoked by uid 1000); 2 Feb 2014 19:20:07 -0000 Content-Disposition: inline In-Reply-To: <837g9d4cde.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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.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:84460 Archived-At: Hi, Eli. On Sun, Feb 02, 2014 at 08:07:25PM +0200, Eli Zaretskii wrote: > > 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? It used to do this, but this was leading to errors, particularly in C++ where, for example, people frequently write "namespace {" rather than putting the "{" on the next line in column 0. Even on xdisp.c, over 30,000 and almost 1Mb, the scan doesn't take that long - a little over a second on my 4 yo machine. -- Alan Mackenzie (Nuremberg, Germany).