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: Stefan Monnier
Subject: Re: How do I give an overlay a priority lower to that of hl-line-mode?
Date: Tue, 31 May 2016 22:29:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> - 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?

IIRC it was added for the overlay-based region-highlight, so it should
be in 24.4.

>> - use a negative priority.
> Does this just behave like positive priorities, in practice?

Yes.  But these priorities are always tricky to use (no matter what
priority you choose, they'll always end up wrong at some point), in
my experience.  So positive or negative, they tend to suck.


        Stefan




reply via email to

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