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: Sun, 26 Jan 2014 12:19:15 +0100 Message-ID: <52E4EF33.2050605__1754.87753372199$1390735236$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> <52E4019C.5080905@gmx.at> <83k3dnc3rl.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 1390735223 29838 80.91.229.3 (26 Jan 2014 11:20:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jan 2014 11:20: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 Sun Jan 26 12:20: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 1W7NlN-0007kG-6L for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jan 2014 12:20:29 +0100 Original-Received: from localhost ([::1]:54234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7NlM-0008G0-AG for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jan 2014 06:20:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7NlB-0008Ft-S7 for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2014 06:20:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7Nl4-0000Ra-Is for bug-gnu-emacs@gnu.org; Sun, 26 Jan 2014 06:20:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7Nkw-0000GX-N1; Sun, 26 Jan 2014 06:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7Nkw-0001u5-9M; Sun, 26 Jan 2014 06:20: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: Sun, 26 Jan 2014 11:20: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.13907351647266 (code B ref 16526); Sun, 26 Jan 2014 11:20:02 +0000 Original-Received: (at 16526) by debbugs.gnu.org; 26 Jan 2014 11:19:24 +0000 Original-Received: from localhost ([127.0.0.1]:36142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7NkK-0001t8-9e for submit@debbugs.gnu.org; Sun, 26 Jan 2014 06:19:24 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:49286) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7NkH-0001sy-3x for 16526@debbugs.gnu.org; Sun, 26 Jan 2014 06:19:22 -0500 Original-Received: from [62.47.61.69] ([62.47.61.69]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MD9q8-1W43HQ048y-00GXOi for <16526@debbugs.gnu.org>; Sun, 26 Jan 2014 12:19:20 +0100 In-Reply-To: <83k3dnc3rl.fsf@gnu.org> X-Provags-ID: V03:K0:5Vu3Rsbs2EL3jlLcTQB7NLHUlGVCPez6Zf9UWeTBMIhH82SRbww HYkiomh0+PHOoQ3BPrH/bL4h8DO9GGd6t1zoRX+/CvF0jg45Bu8VYXhmnHF2//oxVQCisFV CkLgr9iKodiLPU6wZZb/yJQ6dJtr/1qvRKczSBdu6LPpsAoL34DJBYT9VTZDKoY7st9aTRQ wORPzY72paHXoDRMToxWw== 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:84035 Archived-At: >> IIUC `beginning-of-buffer' does set_point_both. Does that move all the >> way back to the beginning? > > Of course not, it jumps there in one go. > >> > And yes, I know why: it's because scroll-conservatively causes >> > redisplay to examine buffer text around point, >> >> Where is `point' at that time? > > At EOB. But if `beginning-of-buffer' jumps to BOB in one go how comes that `point' at the time something "causes redisplay to examine buffer text around point" is still at EOB? >> But the `end-of-buffer' call terminates cleanly after a few seconds - >> that's what the `sit-for' proves in my code. > > Right, and that's when redisplay kicks in, which invokes JIT Lock. If I shorten my scenario to (progn (setq scroll-conservatively 101) (find-file (concat source-directory "src/xdisp.c")) (end-of-buffer) (sit-for 3)) it terminates here in a few seconds. When/where exactly does redisplay kick in in the original scenario? >> > No, going to BOB is instantaneous. The problem happens in redisplay >> > after going to EOB. >> >> EOB happens before my `sit-for'. > > See above. Redisplay is separate from command execution. So yes, we > are already at EOB, and then redisplay happens. And I see nothing bad happen until that redisplay finishes. >> >> And somehow a "current position" is still near the end of the buffer at >> >> that time. >> > >> > Yes, because Emacs is at EOB. >> >> Why? > > Because we moved there with end-of-buffer. And then `beginning-of-buffer' moves `point' to `point-min' and the trouble starts. We probably are miscommunicating but please check once more your claim that the problem is with redisplay after `end-of-buffer'. If I omit `beginning-of-buffer' from my code I can see no problems. martin