[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#66769: 30.0.50; pixel-scroll-precision-mode and scroll-margin regres
From: |
Eli Zaretskii |
Subject: |
bug#66769: 30.0.50; pixel-scroll-precision-mode and scroll-margin regression |
Date: |
Thu, 02 Nov 2023 08:28:05 +0200 |
> Cc: 66769@debbugs.gnu.org
> From: Aaron Jensen <aaronjensen@gmail.com>
> Date: Wed, 1 Nov 2023 22:49:40 -0700
>
> Is there a fast way to compute the position that is scroll-margin lines away
> from the window start
Try something like
(save-excursion
(goto-char (window-start))
(vertical-motion scroll-margin)
(point))
Caveat: I have no idea if this is "fast enough" for the purposes of
pixel-scroll-precision-mode.