]> git.eshelyaron.com Git - emacs.git/commit
(report_overlay_modification): Fix bug#65929
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Sep 2023 22:49:55 +0000 (18:49 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Sep 2023 22:49:55 +0000 (18:49 -0400)
commit0065621d0d36112922792d7c46085230e999cba3
treec6dc5182920d8475120a53ac3ee630c860b7115f
parent6cc6455e931913e42ef844c4a7d6ddcd0bf53788
(report_overlay_modification): Fix bug#65929

Somehow the new overlay code in Emacs-29 changed slightly
the test to decide when to run the `modification-hooks` of overlays,
with the consequence that these hook functions end up being executed
also when text is deleted right after an empty overlay, which is
contrary to Emacs-28 behavior as well as contrary to the Texinfo doc.

* src/buffer.c (report_overlay_modification): Better reproduce the
Emacs-28 code.

* test/src/buffer-tests.el (overlay-modification-hooks):
Add corresponding test.
src/buffer.c
test/src/buffer-tests.el