bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#25592: Feature request: sorting overlays


From: Clément Pit--Claudel
Subject: bug#25592: Feature request: sorting overlays
Date: Sun, 5 Feb 2017 14:10:40 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 2017-02-05 13:28, Eli Zaretskii wrote:
> What will happen if you have 2 overlays like this:
> 
>                +------------- OV2 -------+
>    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>    +------- OV1 ---------+
> 
> and OV2 has a higher priority than OV1?

The two overlays get sorted as (OV1 OV2).  Then my code applies OV1's 
properties to the range covered by OV1, and OV2's properties to the range 
covered by OV2, which override those of OV1 in the overlapping range (except in 
the case of face properties, which get appended instead of overriding).

Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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