From 6ed0af6782b3a881aef5bff1faa5ddd302d27d92 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 22 Jul 2003 19:06:12 +0000 Subject: [PATCH] (run_pre_post_conversion_on_str): Use delete_all_overlays. --- src/coding.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/coding.c b/src/coding.c index ced7a24e1f4..b06bf79a4bf 100644 --- a/src/coding.c +++ b/src/coding.c @@ -5998,12 +5998,13 @@ run_pre_post_conversion_on_str (str, coding, encodep) buffer = Fget_buffer_create (build_string (" *code-converting-work*")); buf = XBUFFER (buffer); + delete_all_overlays (buf); buf->directory = current_buffer->directory; buf->read_only = Qnil; buf->filename = Qnil; buf->undo_list = Qt; - buf->overlays_before = NULL; - buf->overlays_after = NULL; + eassert (buf->overlays_before == NULL); + eassert (buf->overlays_after == NULL); set_buffer_internal (buf); /* We must insert the contents of STR as is without -- 2.11.4.GIT