From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16526: 24.3.50; scroll-conservatively & c-mode regression Date: Sat, 25 Jan 2014 19:25:32 +0100 Message-ID: <52E4019C.5080905__11897.0975200229$1390674395$gmane$org@gmx.at> References: <52E38286.1050306@gmx.at> <838uu4cq11.fsf@gnu.org> <52E3D131.2090705@gmx.at> <83r47wausm.fsf@gnu.org> <52E3EAC2.2040100@gmx.at> <83lhy4as2l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1390674383 9264 80.91.229.3 (25 Jan 2014 18:26:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jan 2014 18:26:23 +0000 (UTC) Cc: acm@muc.de, 16526@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 25 19:26:29 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 1W77w4-0005Cq-Iu for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jan 2014 19:26:28 +0100 Original-Received: from localhost ([::1]:52131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W77w4-0001C1-6W for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jan 2014 13:26:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W77vt-00015a-OY for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 13:26:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W77vm-0004uv-Ea for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 13:26:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W77ve-0004u6-RZ; Sat, 25 Jan 2014 13:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W77ve-0005Yd-KF; Sat, 25 Jan 2014 13:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 25 Jan 2014 18:26: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-submit@debbugs.gnu.org id=B16526.139067434421305 (code B ref 16526); Sat, 25 Jan 2014 18:26:02 +0000 Original-Received: (at 16526) by debbugs.gnu.org; 25 Jan 2014 18:25:44 +0000 Original-Received: from localhost ([127.0.0.1]:35869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W77vJ-0005XV-Ep for submit@debbugs.gnu.org; Sat, 25 Jan 2014 13:25:42 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:57744) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W77vF-0005XK-JY for 16526@debbugs.gnu.org; Sat, 25 Jan 2014 13:25:39 -0500 Original-Received: from [62.47.61.211] ([62.47.61.211]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MLfH9-1W7x8V01Ol-000rEz for <16526@debbugs.gnu.org>; Sat, 25 Jan 2014 19:25:36 +0100 In-Reply-To: <83lhy4as2l.fsf@gnu.org> X-Provags-ID: V03:K0:3GdQTjp/WzLdYsyHaDLvs7EfD9WSDl4/1Wz6NjhohK3oyJ2jlGE dAGJnYLDOFmR1n1zZebvu3po2qFCGPhNQnmesthwIQCxU9N+40arxoVfxW7lf7rDQntrIac 5T2yFBFN+iRR5SMqcMImNAF0VDwGhcA8Co30ZCWXRZ8vCjn/zld36g7pCIkNzbvfLhddYSD dmN5jomnXY2EQK/WdXrKg== 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:84007 Archived-At: >> Well ... so you know why it calls back_comment around the END of the >> buffer? > > It starts at the end of the buffer, but then moves all the way back > to the beginning. IIUC `beginning-of-buffer' does set_point_both. Does that move all the way back to the beginning? > And yes, I know why: it's because scroll-conservatively causes > redisplay to examine buffer text around point, Where is `point' at that time? > when it decides where > to place window-start. This is triggered by redisplay after the move > to the end of the buffer. But the `end-of-buffer' call terminates cleanly after a few seconds - that's what the `sit-for' proves in my code. >> > What I see is that find_defun_start is called many times, >> >> ... 530 times as I mentioned earlier ... >> >> > with its >> > first argument moving from _end_ of the buffer backwards. >> >> Not monotonously. Sometimes it's called from the same position (for >> example 948653 is at least three times on my list) again. > > True. But I'm not sure this is relevant to the slow redisplay. It hints at some really bad code embedded in really bad code. >> > This >> > happens when Emacs needs to redisplay the last portion of the buffer, >> > immediately after the call to end-of-buffer. >> >> Hmm ... but the problem is when going to BOB. > > No, going to BOB is instantaneous. The problem happens in redisplay > after going to EOB. EOB happens before my `sit-for'. >> > JIT Lock is triggered also when font-lock is turned on after the move >> > to end of the buffer. But the difference seems to come from the fact >> > that under scroll-conservatively, we examine the buffer a little bit >> > above/below the window, when we decide where to put window-start. >> >> And somehow a "current position" is still near the end of the buffer at >> that time. > > Yes, because Emacs is at EOB. Why? martin