emacs-devel
[Top][All Lists]
Advanced

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

Re: outline-minor-mode: Did something change


From: Juri Linkov
Subject: Re: outline-minor-mode: Did something change
Date: Fri, 12 Jan 2024 09:29:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

>>>> 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!
>>>
>>> Only think to add: could we have a half-way house solution that at least
>>> for a while uses both ie outline-level and outline-regexp?
>>
>> outline-regexp is too unreliable: in eww need not to mismatch HTML headers,
>> in emacs-lisp-mode not to match the open parenthesis in the docstring, etc.
>> For the same reason tree-sitter is preferable to regexp-based font-lock.
>
> I' not disagreeing with you; what I was pointing out is that the HTML
> Web rejected all notions of structured markup a long time ago, so hoping
> that structure alone will give us something useful remains  a dream --
> one  that I too dremt  a long time ago

Alas, the idea of the Semantic Web has failed, so to get useful information
from a Web page the remaining way is to resort to Web scraping using regexps.



reply via email to

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