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#29374: patch for lisp/pixel-scroll Date: Fri, 01 Dec 2017 10:58:12 +0200 Message-ID: <83h8ta3jvf.fsf@gnu.org> References: <20171121.133507.1594356869079427384.tkk@misasa.okayama-u.ac.jp> <83k1yjd4h0.fsf@gnu.org> <20171122.080817.1272652886334028034.tkk@misasa.okayama-u.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1512118758 8778 195.159.176.226 (1 Dec 2017 08:59:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2017 08:59:18 +0000 (UTC) Cc: 29374-done@debbugs.gnu.org To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 01 09:59:08 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 1eKhA3-0001fY-7Q for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Dec 2017 09:59:07 +0100 Original-Received: from localhost ([::1]:51297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKhAA-0008JH-Ip for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Dec 2017 03:59:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKhA1-0008DZ-FI for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 03:59:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKh9y-0004xg-Dx for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 03:59:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKh9y-0004xY-A0 for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 03:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eKh9y-0004ma-3A for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 03:59:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Dec 2017 08:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 29374 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 29374@debbugs.gnu.org, eliz@gnu.org, tkk@misasa.okayama-u.ac.jp Original-Received: via spool by 29374-done@debbugs.gnu.org id=D29374.151211872518357 (code D ref 29374); Fri, 01 Dec 2017 08:59:01 +0000 Original-Received: (at 29374-done) by debbugs.gnu.org; 1 Dec 2017 08:58:45 +0000 Original-Received: from localhost ([127.0.0.1]:38978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKh9h-0004m0-Af for submit@debbugs.gnu.org; Fri, 01 Dec 2017 03:58:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKh9f-0004ln-0V for 29374-done@debbugs.gnu.org; Fri, 01 Dec 2017 03:58:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKh9V-0004aB-7K for 29374-done@debbugs.gnu.org; Fri, 01 Dec 2017 03:58:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKh9V-0004a4-2t; Fri, 01 Dec 2017 03:58:33 -0500 Original-Received: from [176.228.60.248] (port=1840 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eKh9U-0005kR-CX; Fri, 01 Dec 2017 03:58:32 -0500 In-reply-to: <20171122.080817.1272652886334028034.tkk@misasa.okayama-u.ac.jp> (message from Tak Kunihiro on Wed, 22 Nov 2017 08:08:17 +0900 (JST)) 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:140576 Archived-At: > Date: Wed, 22 Nov 2017 08:08:17 +0900 (JST) > Cc: 29374@debbugs.gnu.org, tkk@misasa.okayama-u.ac.jp > From: Tak Kunihiro > > >> Date: Tue, 21 Nov 2017 13:35:07 +0900 (JST) > >> From: Tak Kunihiro > >> Cc: tkk@misasa.okayama-u.ac.jp > >> > >> I'm sending a patch for lisp/pixel-scroll.el. > >> > >> This patch fixes movement of cursor to stay away from the top of the > >> line and the end of the line on a screen. > > > > Thanks, but please tell more about the problem, and perhaps show a > > recipe to reproduce it. > > First of all, expression of my previous message was not correct. > Let me rephrase as below. > > This patch fixes movement of cursor to stay away from the top and > the bottom of a screen. > > Before fix, sudden scope-jump happened on certain cases. Let's > consider a case with cursor is located at the bottom and about to > scroll down (move scope up). > > There is a condition where > bob is shown on the top of screen > and window-vscroll is non-zero. > > On this condition, (scroll-up 1) would be called without > (vertical-motion -1). As a consequence screen jumps. > > After the fix, cursor will be moved by vertical-motion before calling > scroll-down or pixel-scroll-pixel-down. Thanks, I pushed your changes.