Call the set_buffer_overlays_ setters

* src/buffer.c (Fkill_buffer): Call set_buffer_overlays_before and
set_buffer_overlays_after instead of setting the fields directly
(bug#46914).
This commit is contained in:
Matt Armstrong 2021-03-04 21:12:00 +01:00 committed by Lars Ingebrigtsen
parent 9e94509267
commit 6ff90ef0bb

View file

@ -1942,8 +1942,8 @@ cleaning up all windows currently displaying the buffer to be killed. */)
}
/* Since we've unlinked the markers, the overlays can't be here any more
either. */
b->overlays_before = NULL;
b->overlays_after = NULL;
set_buffer_overlays_before (b, NULL);
set_buffer_overlays_after (b, NULL);
/* Reset the local variables, so that this buffer's local values
won't be protected from GC. They would be protected