diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-11-05 17:22:37 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-11-05 17:22:37 -0400 |
commit | 6e5ec085510ccf52ac6cb07c3a1a2778324a1d89 (patch) | |
tree | 0ad67bf3aa5a7a6c9eb9e01754e5f57da19dd4b6 /test/src/buffer-tests.el | |
parent | 5c9895fffe4e34b7a31b0a8e4bce0b59a4bc0326 (diff) | |
download | emacs-6e5ec085510ccf52ac6cb07c3a1a2778324a1d89.tar.gz emacs-6e5ec085510ccf52ac6cb07c3a1a2778324a1d89.tar.bz2 emacs-6e5ec085510ccf52ac6cb07c3a1a2778324a1d89.zip |
buffer.c: evaporate overlays in all indirect buffers
This fixes bug#58928. The patch works by moving the
`evaporate_overlays` check closer to `itree_delete_gap`.
* src/buffer.c (adjust_overlays_for_delete_in_buffer): New function,
integrating the functionality of `evaporate_overlays`.
(adjust_overlays_for_delete): Use it.
(evaporate_overlays): Delete function.
* src/buffer.h (evaporate_overlays): Delete declaration.
* src/insdel.c (adjust_markers_for_replace): Minor optimization.
(adjust_after_replace, replace_range, replace_range_2, del_range_2):
Don't call `evaporate_overlays`.
* test/src/buffer-tests.el (buffer-tests--overlays-indirect-evaporate):
Remove the `:expected-result :failed` attribute.
Diffstat (limited to 'test/src/buffer-tests.el')
-rw-r--r-- | test/src/buffer-tests.el | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/src/buffer-tests.el b/test/src/buffer-tests.el index 3c371760952..b11243e021f 100644 --- a/test/src/buffer-tests.el +++ b/test/src/buffer-tests.el @@ -301,7 +301,6 @@ with parameters from the *Messages* buffer modification." Deleting characters from either a base or an indirect buffer should evaporate overlays in both." - :expected-result :failed ;; Loop twice, erasing from the base buffer the first time and the ;; indirect buffer the second. (dolist (erase-where '(base indirect)) |