[Top][All Lists]

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

Re: Overlays as an AA-tree

From: Eli Zaretskii
Subject: Re: Overlays as an AA-tree
Date: Wed, 21 Sep 2016 18:58:55 +0300

> From: Stefan Monnier <address@hidden>
> Date: Wed, 21 Sep 2016 10:52:23 -0400
> > Speaking of which, is the byte position stored in a marker of any
> > significance in an overlay?  Otherwise I could at least get rid of
> > those.
> AFAIK, the byte-position of markers is used, but the byte-position of
> overlays isn't, so you should be able to get rid of them.

Why bother?  Using markers, you get the way overlays move when text is
inserted and deleted for free, and having to update the byte position
is easy if needed.

reply via email to

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