GNU bug report logs - #41513
`compute-motion' can miscount buffer positions in the presence of 'before-string/'after-string overlays

Previous Next

Package: emacs;

Reported by: Stephen Bach <sjbach <at> sjbach.com>

Date: Sun, 24 May 2020 18:45:01 UTC

Severity: normal

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 41513 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stephen Bach <sjbach <at> sjbach.com>
Cc: 41513 <at> debbugs.gnu.org
Subject: Re: bug#41513: `compute-motion' can miscount buffer positions in the
 presence of 'before-string/'after-string overlays
Date: Tue, 26 May 2020 19:21:05 +0300
> From: Stephen Bach <sjbach <at> sjbach.com>
> Date: Mon, 25 May 2020 16:16:08 -0400
> Cc: 41513 <at> debbugs.gnu.org
> 
> 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.




This bug report was last modified 4 years and 329 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.