[Top][All Lists]

[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 10:32:36 +0200 (CEST)

For me,  'append should not exist, but handled by (setq 
outline-minor-mode-highlight t)

Then, if you want outline-minor-mode to force its highlight on the major mode, 

(setq outline-minor-mode-highlight 'override).  

outline-minor-mode could call it (setq outline-minor-mode-highlight 'force) if 
that is more


Is there the possibility to use headings and keep the highlight of the major 

But for the others use that from outline-minor-mode.

At another level, how about having the possibility of using multiple 

and for each be able to decide whether to override or not.  Currently there is 
only one 

highlighting setting for all regexp. 

What should be tackled first?


From: Eli Zaretskii <>
Subject: Re: outline-minor-mode-highlight really weird
Date: 15/07/2021 09:32:53 Europe/Paris

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