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: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
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: Sun, 31 Mar 2024 09:06:44 +0300
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Ihor Radchenko <yantar92 <at> posteo.net>,  65451 <at> debbugs.gnu.org,  Alan
>  Mackenzie <acm <at> muc.de>
> Date: Sat, 30 Mar 2024 23:02:14 -0400
> 
> > I suspect the best option in the above case is to inhibit the inner
> > calls to before/after (assuming we're sure they change only the "new
> > text"), so we'd be down to:
> >
> >     ⛔ Warning (emacs): Before: 1278 1281
> >     ⛔ Warning (emacs): After: 1278 1288 delta: 7
> 
> A simpler option is the patch below.

Doesn't that miss the changes done by upcase-region?

Also, what about point not being after the inserted replacement at
that place?




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.