From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.bugs Subject: bug#29325: 26.0.90: Info scrolling stuck Date: Wed, 22 Nov 2017 19:56:31 +0100 Message-ID: References: <83fu9ehuog.fsf@gnu.org> <83d14hidlk.fsf@gnu.org> <83r2sudwgv.fsf@gnu.org> <83r2ssd7eq.fsf@gnu.org> <837eujcta4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1511376976 4592 195.159.176.226 (22 Nov 2017 18:56:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2017 18:56:16 +0000 (UTC) Cc: 29325@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 22 19:56:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHaBs-0000c2-0n for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Nov 2017 19:56:08 +0100 Original-Received: from localhost ([::1]:40923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHaBz-0003qh-4J for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Nov 2017 13:56:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHaBo-0003pM-PY for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2017 13:56:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHaBm-0002Xb-4U for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2017 13:56:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44392) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHaBl-0002XM-Vk for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2017 13:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eHaBl-00063M-LT for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2017 13:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Nov 2017 18:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29325 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29325-submit@debbugs.gnu.org id=B29325.151137694223239 (code B ref 29325); Wed, 22 Nov 2017 18:56:01 +0000 Original-Received: (at 29325) by debbugs.gnu.org; 22 Nov 2017 18:55:42 +0000 Original-Received: from localhost ([127.0.0.1]:53073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHaBS-00062l-3u for submit@debbugs.gnu.org; Wed, 22 Nov 2017 13:55:42 -0500 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:50647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHaBP-00062U-8k for 29325@debbugs.gnu.org; Wed, 22 Nov 2017 13:55:40 -0500 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 1F179225CF for <29325@debbugs.gnu.org>; Wed, 22 Nov 2017 18:48:17 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= references:subject:subject:in-reply-to:to:from:from:message-id :date:date; s=dkim; t=1511376495; x=1512240496; bh=Fh5ztIAv8UxMu FQSkp2m3l8RS9F/u7PXgAWJn2RSEjA=; b=aeXC3FjwgDGbBgkA5+VQof0vaoUNs ypZXgWHds/xIOiyZ5L85y0UfteBGwv0BJmHgcQKU3hG+qRRo+rv0Ilqi5Pax2L6/ BcBN3jPds+pA5xTnRK0907AwcKbvX8efm5ZWEq0wpxHhoKfav0tNgEV+lTLjCfE0 RBLkf93CrBIulE= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id j8jVpp1QFbXC for <29325@debbugs.gnu.org>; Wed, 22 Nov 2017 18:48:15 +0000 (UTC) Original-Received: from gray (125.85.192.178.dynamic.wline.res.cust.swisscom.ch [178.192.85.125]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 021AE225B7; Wed, 22 Nov 2017 18:48:11 +0000 (UTC) In-reply-to: <837eujcta4.fsf@gnu.org> (message from Eli Zaretskii on Tue, 21 Nov 2017 21:42:59 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:140246 Archived-At: > Date: Tue, 21 Nov 2017 21:42:59 +0200 > From: Eli Zaretskii > > > Date: Tue, 21 Nov 2017 20:24:05 +0100 > > From: charles@aurox.ch (Charles A. Roelli) > > CC: 29325@debbugs.gnu.org > > > > > Then I'd expect the same behavior to happen if you do "M-5 M-v" > > > instead of turning the wheel. Does it? > > > > It does. > > Then let's abandon the wheel, and continue only with "M-5 M-v" from > now on. Ok. > > redisplay_internal 0 <= START FIRST SCROLL > > 0x1360330 (*info*): forced window start > > redisplay_preserve_echo_area (8) > > redisplay_internal 0 > > redisplay_preserve_echo_area (8) > > redisplay_internal 0 > > redisplay_internal 0 > > redisplay_internal 0 <= START SECOND SCROLL > > 0x1360330 (*info*): forced window start > > redisplay_preserve_echo_area (8) > > redisplay_internal 0 > > redisplay_preserve_echo_area (8) > > redisplay_internal 0 > > redisplay_internal 0 <= START THIRD SCROLL (BROKEN) > > redisplay_internal 0 > > 0x1360330 (*info*): recenter > > redisplay_preserve_echo_area (8) > > redisplay_internal 0 > > redisplay_preserve_echo_area (8) > > redisplay_internal 0 > > redisplay_internal 0 > > > > The third scroll should have reached the start of the buffer, but > > recenters instead of doing so. > > Were you typing "M-5 M-v" or were you turning the mouse wheel? This was with the wheel. But the output when using "M-5 M-v" three times in a row is equal, modulo some "redisplay_internal 0" lines. > > When causing the problematic behavior, redisplay_window reaches > > try_to_scroll via this if statement: > > > > if (!cursor_row_fully_visible_p (w, false, false)) > > { > > /* Point does appear, but on a line partly visible at end of window. > > Move it back to a fully-visible line. */ > > new_vpos = window_box_height (w); > > /* But if window_box_height suggests a Y coordinate that is > > not less than we already have, that line will clearly not > > be fully visible, so give up and scroll the display. > > This can happen when the default face uses a font whose > > dimensions are different from the frame's default > > font. */ > > if (new_vpos >= w->cursor.y) > > { > > w->cursor.vpos = -1; > > clear_glyph_matrix (w->desired_matrix); > > goto try_to_scroll; > > } > > } > > > > That is, (!cursor_row_fully_visible_p (w, false, false)) and > > (new_vpos >= w->cursor.y) evaluate to true. > > And what are the values of new_vpos and w->cursor.y in this case? And > what is w->cursor.vpos? Before the last line here is executed: > if (new_vpos >= w->cursor.y) > { > w->cursor.vpos = -1; we have, (gdb) p new_vpos $1 = 561 (gdb) p w->cursor.y $2 = 557 (gdb) p w->cursor.vpos $3 = 27