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#66216: 28.2; scroll-up-line doesn't work if there is a before-string overlay with newline Date: Fri, 29 Sep 2023 18:28:12 +0300 Message-ID: <834jjdyp6b.fsf@gnu.org> References: <83zg15z0a8.fsf@gnu.org> <99a86a00-20d8-446f-336a-1f405e07d59f@gmail.com> 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="18929"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66216@debbugs.gnu.org To: Herman =?UTF-8?Q?G=C3=A9za?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 29 17:29:32 2023 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 1qmFQp-0004dC-Ok for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Sep 2023 17:29:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmFQA-000817-By; Fri, 29 Sep 2023 11:28:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmFQ9-00080m-59 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 11:28:49 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qmFQ8-0003vV-TR for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 11:28:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmFQM-0004SB-8K for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2023 15:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66216 X-GNU-PR-Package: emacs Original-Received: via spool by 66216-submit@debbugs.gnu.org id=B66216.169600133917109 (code B ref 66216); Fri, 29 Sep 2023 15:29:02 +0000 Original-Received: (at 66216) by debbugs.gnu.org; 29 Sep 2023 15:28:59 +0000 Original-Received: from localhost ([127.0.0.1]:56945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmFQI-0004Rs-S4 for submit@debbugs.gnu.org; Fri, 29 Sep 2023 11:28:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmFQD-0004RY-Fc for 66216@debbugs.gnu.org; Fri, 29 Sep 2023 11:28:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmFPt-0003oq-1o; Fri, 29 Sep 2023 11:28:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=9WKXDajV/n511oaj9Eh/E0z3icGNKK5ixKlociC9A8U=; b=HWWULRQRFK+vA31yt3sE 6l+kk8XQBraLI80uXtvUSv+NDhuZl9c+dO/SSt/m7N1nQVSJzHoMgCiT6rYR3v/bKMEbxB2Uqt9I1 EpWWt5M8uotmITKggBvISLCZqRMPbqkxkkPQC0BmgB/m0eYIc4rZs8I/8u5Cx83xWtnLRNdXbCahf u0nB/HWtP7WEzjIeh6Grls8Y6JWJqEjNOLYy37KAixp/aVAg9DY+JfrFkcp6sS8W3Lkx1Cd4AocwR ARJjLw8c6yOw4yqbmOTfsBSSn6MC/8YOIxi/QA33wBuTSU3swvHBFj3TSEAK/loTvDTnpbvI15y+K qDgF3DT3y2uSzQ==; In-Reply-To: <99a86a00-20d8-446f-336a-1f405e07d59f@gmail.com> (message from Herman, =?UTF-8?Q?G=C3=A9za?= on Fri, 29 Sep 2023 13:53:04 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271500 Archived-At: > Date: Fri, 29 Sep 2023 13:53:04 +0200 > Cc: 66216@debbugs.gnu.org > From: Herman, Géza > > I have scroll-up/down-line mapped to a key. I'd like to see that if I > press and hold these keys, Emacs can scroll continuously. It doesn't > matter too much if at some position, it jumps 2 (or more) visible lines. > Using prefix arguments is not a good solution for this case, because if > I have a buffer with a lot of such overlays (like magit's blame buffer), > it's very inconvenient that emacs stops very frequently, and then I have > to nag it with a prefix argument to "please scroll further". But of > course I can try to write some elisp function to work around this > limitation. I explained why catering only to this preference will bring us other problems. One solution is for you to write a simple function that scrolls by more than 1 line if the basic scroll didn't change window-start position. And if this is a problem with Magit, then I would suggest that Magit has its own scrolling function to overcome the problems. I tried to explain many times that using overlays and display properties in Magit buffers was a bad idea, and the Magit developer even agreed with me at some point. > As scroll-down-line jumps over overlays, so it already scrolls 2 visible > lines in the mentioned case, it would make sense that scroll-up-line > behaves the same as well. The current behavior is not consistent. I'd > expect that if scroll-down-line moves window start somewhere, then > scroll-up-line will undo this. But in this case scroll-down-line will > move 2 lines, then scroll-up-line doesn't do anything. The situation with scroll-down and scroll-up is not symmetric.