From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45628: 28.0.50; Scrolling on echo area with pixel-scroll-mode enabled locks up Emacs Date: Sat, 09 Jan 2021 11:22:35 +0200 Message-ID: <834kjqihwk.fsf@gnu.org> References: <87zh1qc80k.fsf@gnu.org> <83ble6c4hy.fsf@gnu.org> <245408FF-2A90-4AA2-9301-4E2C7C1C9980@misasa.okayama-u.ac.jp> <83turwbulo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26797"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45628-done@debbugs.gnu.org, bandali@gnu.org To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 09 10:23:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyASx-0006sE-3x for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 10:23:23 +0100 Original-Received: from localhost ([::1]:45766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyASu-0001Op-Bg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 04:23:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyASc-0001Mf-Jg for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 04:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39669) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyASc-0003bZ-13 for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 04:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyASb-0005P7-R5 for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 04:23:01 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2021 09:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 45628 X-GNU-PR-Package: emacs Mail-Followup-To: 45628@debbugs.gnu.org, eliz@gnu.org, bandali@gnu.org Original-Received: via spool by 45628-done@debbugs.gnu.org id=D45628.161018416420734 (code D ref 45628); Sat, 09 Jan 2021 09:23:01 +0000 Original-Received: (at 45628-done) by debbugs.gnu.org; 9 Jan 2021 09:22:44 +0000 Original-Received: from localhost ([127.0.0.1]:51214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyASK-0005OL-5u for submit@debbugs.gnu.org; Sat, 09 Jan 2021 04:22:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyASI-0005O4-Lh for 45628-done@debbugs.gnu.org; Sat, 09 Jan 2021 04:22:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57407) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyAS9-0003M3-G0; Sat, 09 Jan 2021 04:22:33 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4230 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kyAS8-0006FD-D6; Sat, 09 Jan 2021 04:22:32 -0500 In-Reply-To: (message from Tak Kunihiro on Wed, 6 Jan 2021 09:47:26 +0900) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197539 Archived-At: > From: Tak Kunihiro > Date: Wed, 6 Jan 2021 09:47:26 +0900 > Cc: 国広卓也 , > Amin Bandali , > 45628@debbugs.gnu.org > > > How about a normal while loop with catch before it and throw inside? > > > > + (while (and (pixel-point-at-top-p amt) ; prevent too late (multi tries) > > + (equal (vertical-motion 1) 1))) ; move point downward > > > > + (while (and (pixel-point-at-bottom-p amt) ; prevent too late (multi tries) > > + (equal (vertical-motion -1) -1))) ; move point upward > > > > I think equality to 1 or -1 is too stringent. vertical-motion could > > move more if you have overlay strings or display strings at point that > > include embedded newlines. So I think you should test >= 1 and <= -1 > > respectively. > > I revised the patch and is attached on this message. > > > > Also, I believe this problem exists on the emacs-27 branch as well, > > right? Then we should install there first. > > Yes. Can you install the patch with the commit message to emacs-27 branch? Thanks, I installed this on the emacs-27 branch, and I'm closing this bug report.