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#72323: 31.0.50; line-move unconditionally resets vscroll to 0 Date: Sun, 18 Aug 2024 21:21:42 +0300 Message-ID: <86wmkdy9mx.fsf@gnu.org> References: <87zfq2hg4n.fsf@stebalien.com> <86ikwq1z92.fsf@gnu.org> <87v80qha04.fsf@stebalien.com> <86cymy15n2.fsf@gnu.org> <877cd59t76.fsf@stebalien.com> <86jzh4zc2w.fsf@gnu.org> <877ccd3f56.fsf@stebalien.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25009"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 72323@debbugs.gnu.org, storm@cua.dk To: Steven Allen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 18 20:22:45 2024 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 1sfkY9-0006Nv-QZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Aug 2024 20:22:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfkXo-0005m9-2i; Sun, 18 Aug 2024 14:22:24 -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 1sfkXm-0005fN-6e for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 14:22:22 -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 1sfkXl-0001eU-TK for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 14:22:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=UGbMnlkTWq45R8BG1VfaXcndO4XZXxidPDlyVjwcmBI=; b=i4MPz9twa/qxYmlTv5MqCgVZlCKNTWTtfbjARC2uyl5tDHIoD3ZSX8K2MXgg7q1/JAQ1/84omEbL/R4MXoJ6kbuHsfYcJ3BI8mSYKTp0RpLrAWwdjXV0zGdQ6qUCDuKNInzXwQ7IZqwIhoeS7DCDPpTFPUR/nwH71IbnE/j7gpam5uRusDKeOTmCQdjNCy9bFpV1w3KahDToADX7bIx5rFrOcEoaE3DpQKo4CP1m8gWxAGvD8WsIufEMniyqOOrT6kCZtij0YyVRvkt7k04pSfwptj5+BUOuVhgH/wOTqa0h/bVgwrcg8FLSIzETuI04I0cEEqdSD9Gk0NThhiGS9w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfkYP-0006XD-Tb for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 14:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Aug 2024 18:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72323 X-GNU-PR-Package: emacs Original-Received: via spool by 72323-submit@debbugs.gnu.org id=B72323.172400537425103 (code B ref 72323); Sun, 18 Aug 2024 18:23:01 +0000 Original-Received: (at 72323) by debbugs.gnu.org; 18 Aug 2024 18:22:54 +0000 Original-Received: from localhost ([127.0.0.1]:56789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfkYH-0006Wp-Gy for submit@debbugs.gnu.org; Sun, 18 Aug 2024 14:22:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfkYF-0006WZ-Lk for 72323@debbugs.gnu.org; Sun, 18 Aug 2024 14:22:52 -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 1sfkXT-0001de-Oj; Sun, 18 Aug 2024 14:22:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UGbMnlkTWq45R8BG1VfaXcndO4XZXxidPDlyVjwcmBI=; b=oRWDU6P7qofK Y3TvtEMpUIHQfYmugHna/HfyH9XZABmd50Cr6dMxKXClpRCCSaQuEC3m91JGyi5BXgujdoD3D8xQf 4ZUeVDodS7RTKnD+fkjD7LNEXmAIWO2eibwtI7dDnLRs9S5fxzH6YCX+aqNmqPedSuDUlHTJhUEYw fNclJUV0wzjGHq4u4nJ9mcMKMFNBCWsqxGW+QIvnUQGl4sWxk1mBkfCENOvXr/ghEYbj00UNHHa8l 4/7WBcNdzN5CLcj50WQdH6qBVF4PtyenZTl2YX/UOHdQ37AFyBluOOpq/QIDlK5+NfysOalpXuRFm 2AV8wFiJGog6dcNkgjnvfQ==; In-Reply-To: <877ccd3f56.fsf@stebalien.com> (message from Steven Allen on Sun, 18 Aug 2024 10:38:29 -0700) 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:290346 Archived-At: > From: Steven Allen > Cc: luangruo@yahoo.com, 72323@debbugs.gnu.org, storm@cua.dk > Date: Sun, 18 Aug 2024 10:38:29 -0700 > > Eli Zaretskii writes: > > > Once again: the vscroll value is pertinent only for the screen line > > for which it was computed, because the way it is computed uses the > > metrics of that line. Once you move to another line, the value is no > > longer pertinent. > > Let's be precise about "move to another line": > > - When window-start changes, vscroll becomes invalid because the lines at > the top of the screen (to which vscroll applies) has changed. I agree > that it must be reset in this case. > - When point is moved up and down in such a way that window-start isn't > changed, vscroll is still perfectly valid as the top line in the > window hasn't changed. I disagree. When point moves to another screen line without moving window-start, vscroll may or may not be valid. Whether it is depends on the details of what is on display. > vscroll is relative to the top line, not point. No, vscroll is global for the entire window. It affects the Y coordinate of every screen line, not just that of the first screen line. > > Emacs supports smooth scrolling only within a single screen line, and > > that uses vscroll. That's the original design intent of vscroll. > > Smooth scrolling between lines is not really supported. > > pixel-scrolling attempts to solve that, and does it well, but it does > > have some problematic corners. Those corners need to be solved inside > > pixel-scroll code. > > Honestly, scrolling between lines is working perfectly. It's a kludge that is very fragile, and sometimes breaks.