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

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

outline-minor-mode-highlight really weird


From: lisa-asket
Subject: outline-minor-mode-highlight really weird
Date: Thu, 15 Jul 2021 09:52:12 +0200 (CEST)

From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: outline-minor-mode-highlight really weird
Date: 15/07/2021 09:32:53 Europe/Paris

> From: lisa-asket@perso.be
> 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.



If I make headings starting with comment label, the command 

(setq outline-minor-mode-highlight t) does not highlight the levels.


Is that a conflict?








reply via email to

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