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 17:48:02 +0100 Message-ID: <52E3EAC2.2040100@gmx.at> References: <52E38286.1050306@gmx.at> <838uu4cq11.fsf@gnu.org> <52E3D131.2090705@gmx.at> <83r47wausm.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 1390668567 9844 80.91.229.3 (25 Jan 2014 16:49:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jan 2014 16:49:27 +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 17:49: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 1W76QC-0006j5-Bc for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jan 2014 17:49:28 +0100 Original-Received: from localhost ([::1]:51793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W76QC-0001n4-2M for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jan 2014 11:49:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W76Q2-0001gZ-7d for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 11:49:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W76Pu-0004Ht-Tn for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 11:49:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W76Pn-0004HG-3r; Sat, 25 Jan 2014 11:49:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W76Pm-0000zR-Sz; Sat, 25 Jan 2014 11:49:03 -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 16:49: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.13906684883640 (code B ref 16526); Sat, 25 Jan 2014 16:49:02 +0000 Original-Received: (at 16526) by debbugs.gnu.org; 25 Jan 2014 16:48:08 +0000 Original-Received: from localhost ([127.0.0.1]:35842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W76Ou-0000we-BS for submit@debbugs.gnu.org; Sat, 25 Jan 2014 11:48:08 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:62866) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W76Ot-0000wX-8T for 16526@debbugs.gnu.org; Sat, 25 Jan 2014 11:48:07 -0500 Original-Received: from [62.47.61.211] ([62.47.61.211]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LwaMR-1VE9Ri46Gd-018Mij for <16526@debbugs.gnu.org>; Sat, 25 Jan 2014 17:48:06 +0100 In-Reply-To: <83r47wausm.fsf@gnu.org> X-Provags-ID: V03:K0:vRHewipaaFJ7Qa3a5ffrRgpjZZpZ7dwgneifSMdj6wNiqnh9NRj p4pfzmtRxfyrGB2wMlp+B3ucjbnbhkE0jMh/Pasjm7W6YpcpKBuUehtI9K4uElGj1TaZ8Np Gn2ORrIHuh/B3qgzLvvn4XjZioo+QNq5rDjn73OSdamkYQ4xOU2Drkmv/07Nfx2ScFqojCz Su606cb5imOKk9iMRmMhA== 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:84003 Archived-At: >> How should I know? I suppose redisplay_window eventually winds up >> calling the fontification function and sooner or later the c-code calls >> back_comment. > > Yes, that's what happens. And it cannot be avoided, AFAICS, when > scroll-conservatively is on. Well ... so you know why it calls back_comment around the END of the buffer? > 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. > 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. > 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. martin