From fd531951965710b4d6a036926cb773a398e7b62b Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 22 Jul 2003 19:06:48 +0000 Subject: [PATCH] (temp_output_buffer_setup): Use delete_all_overlays. --- src/print.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/print.c b/src/print.c index 5eb79aebdf9..286d5f98139 100644 --- a/src/print.c +++ b/src/print.c @@ -592,12 +592,13 @@ temp_output_buffer_setup (bufname) Fset_buffer (Fget_buffer_create (build_string (bufname))); Fkill_all_local_variables (); + delete_all_overlays (current_buffer); current_buffer->directory = old->directory; current_buffer->read_only = Qnil; current_buffer->filename = Qnil; current_buffer->undo_list = Qt; - current_buffer->overlays_before = NULL; - current_buffer->overlays_after = NULL; + eassert (current_buffer->overlays_before = NULL); + eassert (current_buffer->overlays_after = NULL); current_buffer->enable_multibyte_characters = buffer_defaults.enable_multibyte_characters; Ferase_buffer (); -- 2.39.2