bug#81632: 31.0.91; outline-view-change-hook is marked obsolete, without an adequate replacement

Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Stefan Monnier <[email protected]> writes:

> I see it's used in a few other packages as well, but it's almost always
> ill-adapted to the needs because it doesn't say what's changed, so the
> clients end up refreshing the whole buffer every time even when we're
> just (un)folding a particular node.

True, this is an obvious fla. I use it like this in Elfeed for instance.

> So, I'm in favor of introducing an alternative API
> `outline-view-change-functions` which receives some useful info such as
> a BEG..END range.

Fully agree. Please re-interpret my bug report as a feature request for
an alternative API, but for the time being outline-view-change-hook is
useful as is.

> === Stefan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.