From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25792: 26.0.50; Scroll-margin working incorrectly when scrolling down if show-trailing-whitespace is t Date: Sun, 19 Feb 2017 22:56:15 +0200 Message-ID: <83fuj9q4r4.fsf@gnu.org> References: <93bc26e9-7026-65da-0738-57854568c106@web.de> <8760k6jevp.fsf@users.sourceforge.net> <83h93qp05z.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1487537771 30926 195.159.176.226 (19 Feb 2017 20:56:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Feb 2017 20:56:11 +0000 (UTC) Cc: alexanderm@web.de, 25792@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 19 21:56:07 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 1cfYWb-0007SS-GQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Feb 2017 21:56:05 +0100 Original-Received: from localhost ([::1]:35060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfYWh-0003iq-AX for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Feb 2017 15:56:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfYWb-0003hm-R3 for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 15:56:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfYWX-0000xK-UO for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 15:56:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48339) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfYWX-0000xC-QI for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 15:56:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cfYWX-0008ET-Jk for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2017 15:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Feb 2017 20:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 25792-submit@debbugs.gnu.org id=B25792.148753775331618 (code B ref 25792); Sun, 19 Feb 2017 20:56:01 +0000 Original-Received: (at 25792) by debbugs.gnu.org; 19 Feb 2017 20:55:53 +0000 Original-Received: from localhost ([127.0.0.1]:46535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfYWP-0008Du-8d for submit@debbugs.gnu.org; Sun, 19 Feb 2017 15:55:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfYWN-0008Dh-63 for 25792@debbugs.gnu.org; Sun, 19 Feb 2017 15:55:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfYWE-0000kh-19 for 25792@debbugs.gnu.org; Sun, 19 Feb 2017 15:55:45 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfYWD-0000kT-Rj; Sun, 19 Feb 2017 15:55:41 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4293 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cfYWC-00088D-VK; Sun, 19 Feb 2017 15:55:41 -0500 In-reply-to: <83h93qp05z.fsf@gnu.org> (message from Eli Zaretskii on Sun, 19 Feb 2017 19:20:40 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:129552 Archived-At: > Date: Sun, 19 Feb 2017 19:20:40 +0200 > From: Eli Zaretskii > Cc: alexanderm@web.de, 25792@debbugs.gnu.org > > > From: npostavs@users.sourceforge.net > > Date: Sun, 19 Feb 2017 11:59:22 -0500 > > Cc: 25792@debbugs.gnu.org > > > > > Only scrolling down is affected. The issue first appeared when I > > > recompiled emacs roughly 1 week ago and has persisted over multiple > > > recompilations on 2 different laptops (both running Antergos & Xfce), so > > > my guess is that it's an issue in the current emacs master. > > > > This seems to be caused by [1: b9be4c14e8], it only happens when the > > window has partial lines (i.e., (zerop (cadr (cl-floor > > (window-screen-lines)))) is non-nil). Not sure how > > show-trailing-whitespace affects this, but it does. > > My guess would be that show-trailing-whitespace causes an additional > redisplay cycle, due to its post-command-hook. If you invoke trace-redisplay and then run the recipe, you will see that there are two kinds of redisplay cycles: one that calls try_scrolling, the other that doesn't. So there are 2 different paths through redisplay, and they don't behave the same under these conditions. HTH