GNU bug report logs -
#41513
`compute-motion' can miscount buffer positions in the presence of 'before-string/'after-string overlays
Previous Next
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
View this message in rfc822 format
> From: Stephen Bach <sjbach <at> sjbach.com>
> Date: Sun, 24 May 2020 15:55:09 -0400
> Cc: 41513 <at> debbugs.gnu.org
>
> > There are other functions that can do the same job. If you describe
> > what you need to do, I could try suggesting some alternatives that
> > will work.
>
> Thanks Eli. Specifically, I'm measuring the jagged contour of a buffer's
> layout within a particular window, i.e. relating the final column of
> each visual row (as displayed within the window) to concrete buffer
> positions. This is notionally straightforward but complicated in
> practice, as you will know -- e.g. line continuation/truncation,
> `word-wrap', `visual-line-mode', `adaptive-wrap-prefix-mode',
> multi-columnar glyphs. Text properties or overlays using 'display, and
> so on.
Please tell more. What exactly would you like to measure? Is it the
width of each screen line? or just the maximum width of the longest
line among those shown in the window? or something else?
This bug report was last modified 4 years and 330 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.