Subject: Re: bug#66769: 30.0.50; pixel-scroll-precision-mode and scroll-margin regression

From: Eli Zaretskii <[email-masked]>
Date: Thu, 02 Nov 2023 08:28:05 +0200

> Cc: [email-masked]
> From: Aaron Jensen <[email-masked]>
> 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.