emacs-devel
[Top][All Lists]
Advanced

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

Re: How is text properties stored?


From: Eli Zaretskii
Subject: Re: How is text properties stored?
Date: Thu, 09 May 2019 08:41:23 +0300

> From: Yuan Fu <address@hidden>
> Date: Wed, 8 May 2019 21:41:45 -0400
> Cc: address@hidden
> 
> IIUC, position of a particular interval is calculated whenever needed; 

No, positions of intervals are continuously maintained as side effect
of editing commands that change buffer text.

> looking for the property in a particular position is done via binary search; 

Yes.  See find_interval.

> and when a user inserts text, only the interval under point is affected, 
> is that correct?

Not exactly, insertion also affects all the ancestors of the interval
at point.  See adjust_intervals_for_insertion.



reply via email to

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