[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: outline-minor-mode: Did something change
|
From: |
T.V Raman |
|
Subject: |
Re: outline-minor-mode: Did something change |
|
Date: |
Wed, 10 Jan 2024 07:26:40 -0800 |
Thanks!
Using headers is the right idea an the regexp is a hack, but sadly
the entire Web is a hack that forgot the meaning of structure a long,
long time ago!
Juri Linkov writes:
> > Answering my own question after the previous message pointed out the
> > change in eww:
> >
> > Adding
> > (setq outline-level 'outline-level outline-search-function nil)
> >
> > Restored the behavior I lost
> > but I dont understand how that commit which adding the shr-specific
> > searcher broke it.
>
> The new function shr-outline-search doesn't use outline-regexp.
> It searches for the text property 'outline-level' that the function
> 'shr-heading' puts on HTML headers. Then it makes outline headings
> only on the lines with HTML headers. This is a more reliable way
> than using a regexp.
>
> However, if you want to make outlines with a specific regexp
> what you already did is the right way to do this.
--