Subject: Re: bug#41513: `compute-motion' can miscount buffer positions in the presence of 'before-string/'after-string overlays

From: Eli Zaretskii <[email-masked]>
Date: Tue, 26 May 2020 19:21:05 +0300

> From: Stephen Bach <[email-masked]>
> Date: Mon, 25 May 2020 16:16:08 -0400
> Cc: [email-masked]
> 
> Is `vertical-motion' a more reliable analogue to `compute-motion'? I see
> it can take a (COLS . LINES) argument, so it appears similar.

Depending on what exactly do you need to do, I can suggest the
following APIs:

  vertical-motion
  posn-at-point
  pos-visible-in-window-p
  window-text-pixel-size

Let me know if these don't cover the functionalities that you need.