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

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

bug#51016: 28.0.50; 'diff-font-lock-prettify' breaks display of outline


From: Juri Linkov
Subject: bug#51016: 28.0.50; 'diff-font-lock-prettify' breaks display of outline headers
Date: Wed, 15 Dec 2021 19:08:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>>> which argues for your second suggestion, changing
>>> `outline-font-lock-keywords'.
>>
>> Yup.  Juri, please go ahead and make the change -- it seems like the
>> correct fix ere.
>
> So now pushed to master.

This change has such effect that now page delimiters are highlighted
as well.  For an unknown reason, the default value of outline-regexp
includes the page delimiter ^L: "[*^L]+".  So now outline-font-lock-keywords
fontifies them too with the `outline-1' face.  But this highlighting
is not visible, because by default it's overridden by the hardcoded face
`escape-glyph' on ^L.

This begs the question: why outline-regexp includes ‘^L’?
With it the collapsed outlines take twice more space with empty lines,
and without it the outline overview is more compact:

PNG image


reply via email to

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