]> git.eshelyaron.com Git - emacs.git/commitdiff
Call the set_buffer_overlays_ setters
authorMatt Armstrong <matt@mdeb>
Thu, 4 Mar 2021 20:12:00 +0000 (21:12 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Mar 2021 20:12:00 +0000 (21:12 +0100)
* src/buffer.c (Fkill_buffer): Call set_buffer_overlays_before and
set_buffer_overlays_after instead of setting the fields directly
(bug#46914).

src/buffer.c

index 5bd9b37702f3f251e010bf2a4169ec402b857365..03c10cc7ae5bab1ae4638bb238705bd88e87d0a7 100644 (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