From: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Overlay boundaries and undo
Date: Sat, 09 Nov 2024 16:37:16 -0800 [thread overview]
Message-ID: <87ttcfncub.fsf@gmail.com> (raw)
In-Reply-To: <86h68ip4uq.fsf@gnu.org>
> In what version of Emacs do you see this? The implementation of
> overlays was fundamentally changed in Emacs 29, and one of the aspects
> of that change was that overlays are not based on markers anymore.
This is Emacs 29.4, on Linux, built with the Lucid toolkit.
I wasn't aware that overlays don't use markers anymore. Then it makes
sense that undo doesn't restore overlay boundaries.
>> 2. The manual seems to suggest that when undoing, markers are moved back
>> to their original positions if the adjustments are compatible with the
>> corresponding text:
>>
>> If the marker's location is consistent with the (TEXT . POSITION)
>> element preceding it in the undo list, then undoing this element
>> moves MARKER − ADJUSTMENT characters.
>>
>> However this doesn't seem to happen. Is there some way to restore
>> overlay boundaries when undoing text deletions?
>
> Please show a reproducible recipe for investigating the issue you are
> describing, and please do that in a bug report submitted via
> "M-x report-emacs-bug" (which will collect important data about your
> build and OS).
I see that James filed one already (bug#74276), so I'll add more
supporting details to it.
Karthik
prev parent reply other threads:[~2024-11-10 0:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-07 22:48 Overlay boundaries and undo Karthik Chikmagalur
2024-11-08 4:23 ` James Thomas
2024-11-08 7:22 ` Eli Zaretskii
2024-11-09 5:45 ` James Thomas
2024-11-09 6:48 ` James Thomas
2024-11-09 8:14 ` Eli Zaretskii
2024-11-10 0:37 ` Karthik Chikmagalur [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttcfncub.fsf@gmail.com \
--to=karthikchikmagalur@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).