[Top][All Lists]

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

Re: outline-minor-mode-highlight really weird

From: Eli Zaretskii
Subject: Re: outline-minor-mode-highlight really weird
Date: Thu, 15 Jul 2021 10:32:53 +0300

> From:
> Date: Thu, 15 Jul 2021 09:27:38 +0200 (CEST)
> > How can headings  conflict with major modes, I ask.  
> >Since many major modes use font-lock to highlight parts of the buffer
> >text, outline-minor-mode-highlight could conflict with that if it
> >changes those highlighted parts.
> If there is a mode with a function that highlights some matching lines, what
> conflict can you get?

If the same region of text is highlighted both by the major mode and
by outline-minor-mode, the resulting colors will be different from
what you might expect, because Emacs will merge the two faces.

> For instance if I make my own `outline-regexp` how 
> can it conflict with the major made?

By highlighting the same parts of the buffer text.  You basically tell
Emacs to use two different faces for the same text, so the result will
be the merge of the two faces.

reply via email to

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