GNU bug report logs - #65451
30.0.50; `after-change-functions' are not triggered in the same order the changes are made

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Tue, 22 Aug 2023 09:31:01 UTC

Severity: normal

Found in version 30.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: acm <at> muc.de, yantar92 <at> posteo.net, 65451 <at> debbugs.gnu.org
Subject: bug#65451: 30.0.50; `after-change-functions' are not triggered in the same order the changes are made
Date: Sat, 30 Mar 2024 23:04:51 -0400
>> `*-change-functions` should not modify the buffer
> That's not what happened in the case described in that bug, AFAIR.

No, indeed.

>> so the only cases I can think of where "a function that changes a
>> buffer can be called from another function which changes the same
>> buffer" is when both of those functions are in our C code and we
>> should have enough control to fix those cases.
> You forget the various hooks, other than buffer modification hooks.

If we have to run them some time between `before-c-f` and `after-c-f`,
then they should not modify the buffer, just like the
`*-change-functions` hooks, 

>> Alan did convince me that we should treat them as bugs and that we
>> should try and fix them.
> He didn't convince me.

🙂


        Stefan





This bug report was last modified 1 year and 104 days ago.

Previous Next


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