Subject: Re: bug#78221: 31.0.50; Improving *-change-functions notifications

From: Ihor Radchenko <[email-masked]>
Date: Sun, 04 May 2025 06:15:03 +0000

Stefan Monnier <[email-masked]> writes:

>> Org mode currently has to resort to (eq
>> org-fold-core--last-buffer-chars-modified-tick
>> (buffer-chars-modified-tick)) checks to filter out changes in
>> text properties.
>
> Interesting.  What made you do that?  IME, it's fairly rare for
> text-property changes to trigger such notifications.

Some parts of Org mode (org-agenda, org-sparse-tree) use text properties
and trigger the notifications; usually that happens across the whole
buffer. And when that does happen, expensive processing of buffer
changes makes things very slow.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>