From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.bugs Subject: bug#29374: patch for lisp/pixel-scroll Date: Wed, 22 Nov 2017 08:08:17 +0900 (JST) Message-ID: <20171122.080817.1272652886334028034.tkk@misasa.okayama-u.ac.jp> References: <20171121.133507.1594356869079427384.tkk@misasa.okayama-u.ac.jp> <83k1yjd4h0.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1511305756 25508 195.159.176.226 (21 Nov 2017 23:09:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Nov 2017 23:09:16 +0000 (UTC) Cc: tkk@misasa.okayama-u.ac.jp, 29374@debbugs.gnu.org To: eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 22 00:09:09 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 1eHHf5-0005rr-Tp for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Nov 2017 00:09:04 +0100 Original-Received: from localhost ([::1]:37019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHHfD-0005gn-76 for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Nov 2017 18:09:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHHf6-0005gi-LO for bug-gnu-emacs@gnu.org; Tue, 21 Nov 2017 18:09:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHHf4-0005qB-06 for bug-gnu-emacs@gnu.org; Tue, 21 Nov 2017 18:09:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHHf3-0005q7-ST for bug-gnu-emacs@gnu.org; Tue, 21 Nov 2017 18:09:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eHHf3-00013T-Ka for bug-gnu-emacs@gnu.org; Tue, 21 Nov 2017 18:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tak Kunihiro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Nov 2017 23:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29374 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29374-submit@debbugs.gnu.org id=B29374.15113057264034 (code B ref 29374); Tue, 21 Nov 2017 23:09:01 +0000 Original-Received: (at 29374) by debbugs.gnu.org; 21 Nov 2017 23:08:46 +0000 Original-Received: from localhost ([127.0.0.1]:51586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHHeo-000130-HE for submit@debbugs.gnu.org; Tue, 21 Nov 2017 18:08:46 -0500 Original-Received: from mxl069v64.mxlogic.net ([208.81.69.64]:26270 helo=s18p02o141.mxlogic.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHHel-00012r-U9 for 29374@debbugs.gnu.org; Tue, 21 Nov 2017 18:08:45 -0500 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o141.mxlogic.net(mxl_mta-8.5.0-1920) over TLS secured channel with ESMTP id ce1b41a5.0.219600.00-365.433465.s18p02o141.mxlogic.net (envelope-from ); Tue, 21 Nov 2017 16:08:36 -0700 (MST) X-MXL-Hash: 5a14b1f4516e7b5d-cf5885fa207cbc097ddfafed3e175149c99a573c Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 775b_186a_4eab6cd6_3435_47e2_b3b5_c412b5c9ec9d; Wed, 22 Nov 2017 08:08:21 +0900 Original-Received: from localhost (vesta.misasa.okayama-u.ac.jp [150.46.48.154]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id 164B24C0976; Wed, 22 Nov 2017 08:08:22 +0900 (JST) In-Reply-To: <83k1yjd4h0.fsf@gnu.org> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 4 Rules triggered EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV6163=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6163> : inlines <6181> : streams <1770969> : uri <2538049> X-AnalysisOut: [v=2.2 cv=a/dAzQaF c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=kj9zAlcOel0A:10 a=sC3] X-AnalysisOut: [jslCIGhcA:10 a=XT6wmhreCTQi7TgIA68A:9 a=CjuIK1q_8ugA:10] X-Spam: [F=0.5200000000; CM=0.500; MH=0.520(2017112110); S=0.206(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [42.127.236.175] 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:140220 Archived-At: >> 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.