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: Fri, 27 Jun 2014 20:34:16 +0000 Message-ID: <20140627203416.GA4395@acm.acm> References: <834n4j5d3k.fsf@gnu.org> <20140202174050.GA5365@acm.acm> <837g9d4cde.fsf@gnu.org> <20140202192007.GB5365@acm.acm> <831tzl44ox.fsf@gnu.org> <20140205230001.GB3381@acm.acm> <8338jw230j.fsf@gnu.org> <83wqc8sxd2.fsf@gnu.org> <20140625213206.GA3604@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1403901579 22679 80.91.229.3 (27 Jun 2014 20:39:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Jun 2014 20:39:39 +0000 (UTC) Cc: 16526-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 27 22:39:32 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 1X0cvj-0006d8-Kw for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jun 2014 22:39:31 +0200 Original-Received: from localhost ([::1]:52469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0cvj-0000wl-6D for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jun 2014 16:39:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0cvY-0000uZ-Mt for bug-gnu-emacs@gnu.org; Fri, 27 Jun 2014 16:39:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0cvR-0003sY-70 for bug-gnu-emacs@gnu.org; Fri, 27 Jun 2014 16:39:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0cvH-0003pO-Bz; Fri, 27 Jun 2014 16:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X0cvG-0002oo-Vx; Fri, 27 Jun 2014 16:39:03 -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: Fri, 27 Jun 2014 20:39:02 +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-done@debbugs.gnu.org id=D16526.140390153210814 (code D ref 16526); Fri, 27 Jun 2014 20:39:02 +0000 Original-Received: (at 16526-done) by debbugs.gnu.org; 27 Jun 2014 20:38:52 +0000 Original-Received: from localhost ([127.0.0.1]:35360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X0cv6-0002oL-7o for submit@debbugs.gnu.org; Fri, 27 Jun 2014 16:38:52 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:33613 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X0cv2-0002o9-EV for 16526-done@debbugs.gnu.org; Fri, 27 Jun 2014 16:38:49 -0400 Original-Received: (qmail 82841 invoked by uid 3782); 27 Jun 2014 20:38:46 -0000 Original-Received: from acm.muc.de (pD9518726.dip0.t-ipconnect.de [217.81.135.38]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 27 Jun 2014 22:38:45 +0200 Original-Received: (qmail 4819 invoked by uid 1000); 27 Jun 2014 20:34:16 -0000 Content-Disposition: inline In-Reply-To: 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:90917 Archived-At: Hi, Stefan. Thanks for the reply. On Wed, Jun 25, 2014 at 10:51:24PM -0400, Stefan Monnier wrote: > > How can this one single scan-lists called from CC Mode be so slow, yet > > the identical call from the minibuffer be 50 times as fast? > Do the two return the same position? They do, yes. > The time taken by scan-lists is proportional to the "distance", so a > 50x slowdown would not be surprising if it goes 50x further. This is surely not the problem. 50x further would have taken point well outside the bounds of the file to a negative offset. Besides, I printed out the end position (in both cases) with `message'. That position was of the opening brace of syms_of_xdisp. > > My understanding is that scan-lists is a primitive operation, > > unaffected by virtually any context (apart from specific things like > > parse-sexp-ignore-comments and syntax-table text properties which are > > meant to affect it). > Another influence could be parse-sexp-lookup-properties, tho it > definitely shouldn't account for more than a few percents. parse-sexp-lookup-properties was set in both cases. (CC Mode sets it buffer locally in its initialisation.) Could CC Mode's use of category text properties be causing this delay, somehow? Could scan-lists be exhausting some sort of resource in this particular invocation which needs ~0.7s to replenish? Or something like that? > Stefan -- Alan Mackenzie (Nuremberg, Germany).