From: Eli Zaretskii <eliz@gnu.org>
To: Stephen Bach <sjbach@sjbach.com>
Cc: 41513@debbugs.gnu.org
Subject: bug#41513: `compute-motion' can miscount buffer positions in the presence of 'before-string/'after-string overlays
Date: Sun, 24 May 2020 22:09:19 +0300 [thread overview]
Message-ID: <83lflhw3og.fsf@gnu.org> (raw)
In-Reply-To: <CAB5Eu-Pbd1xTYA3kynzjaryMBD_p3TbDF7VEJq1+fp24tMeX+A@mail.gmail.com> (message from Stephen Bach on Sun, 24 May 2020 14:30:13 -0400)
> From: Stephen Bach <sjbach@sjbach.com>
> Date: Sun, 24 May 2020 14:30:13 -0400
>
> The miscounting appears to exist at least as far back as Emacs 24. Might there be a mitigation/workaround?
> I like `compute-motion' despite its complicated signature and complicated return value (and despite its
> apparently rare use in the extended ecosystem) - it's fast and it involves no cursor movement to perform its
> measurements.
Don't use compute-motion. It is a remnant of the old pre-Emacs 21
display engine, and almost certainly doesn't support tricky display
features.
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.
next prev parent reply other threads:[~2020-05-24 19:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-24 18:30 bug#41513: `compute-motion' can miscount buffer positions in the presence of 'before-string/'after-string overlays Stephen Bach
2020-05-24 19:09 ` Eli Zaretskii [this message]
2020-05-24 19:55 ` Stephen Bach
2020-05-25 15:23 ` Eli Zaretskii
2020-05-25 20:16 ` Stephen Bach
2020-05-26 16:21 ` Eli Zaretskii
2020-05-26 18:12 ` Stephen Bach
2020-05-26 19:09 ` Eli Zaretskii
2020-08-24 0:26 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83lflhw3og.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=41513@debbugs.gnu.org \
--cc=sjbach@sjbach.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.