emacs-devel
[Top][All Lists]
Advanced

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

Re: How do I give an overlay a priority lower to that of hl-line-mode?


From: Clément Pit--Claudel
Subject: Re: How do I give an overlay a priority lower to that of hl-line-mode?
Date: Tue, 31 May 2016 16:46:29 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

On 2016-05-31 16:28, Stefan Monnier wrote:
>> What alternatives do I have? (In fact, do I have any?)
> 
> Alternatives:

Thanks Stefan!

> - use text-properties instead of overlays.

Could work, indeed. Though adding and removing faces in text properties is 
trickier.

> - undocumented and tentatively added in recentish Emacsen you can use
>   a priority of the form (nil . -100).  Which means: normal priority nil
>   in general, but priority -100 when the normal priority rules (which
>   look at the relative size of overlays) don't have a preference
>   use -100.

Oh, neat :) Do you know in which version this was introduced?

> - use a negative priority.

Does this just behave like positive priorities, in practice?

Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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