GNU bug report logs - #78221
31.0.50; Improving *-change-functions notifications

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Fri, 2 May 2025 21:49:02 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 78221 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>
Subject: bug#78221: 31.0.50; Improving *-change-functions notifications
Date: Sun, 04 May 2025 09:43:18 -0400
Ihor Radchenko [2025-05-04 13:08:05] wrote:
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> I see.  But then, why fix it on the side of your `*-change-functions`
>> rather than on using `inhibit-modification-hooks` (so it benefits all
>> the `*-change-functions`)?
> Because I cannot ignore possibility that some third-party config is
> making use of *-change-functions to detect Org putting properties.

Ah, so the same reason why we're also resisting the urge to just just
stop running those hooks for changes to text-properties.

I wonder if someone actually knows of a `*-change-function` which wants
to be triggered when text-properties are modified.  I'm not 100% sure
that I've never seen such a thing, but at least I can't remember seeing
(nor writing) such a thing.

Are these property-modifications spread all over the place or can you
point us to a few important places where they happen?

I'm curious to know as well how those deal with other related "usually
undesired" effects, such as modifying the `buffer-modified-p` flag,
stashing the property modifications into the `buffer-undo-list`, or
signaling errors when the buffer is read-only.

> Also, I cannot guarantee that all third-party packages do not use
> put-text-property outside inhibit-modification-hooks.

🙂


        Stefan





This bug report was last modified 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.