emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overlay boundaries and undo


From: Karthik Chikmagalur
Subject: Re: Overlay boundaries and undo
Date: Sat, 09 Nov 2024 16:37:16 -0800

> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]