changeset 52016:95dd8ee86d65

(run_pre_post_conversion_on_str): Use delete_all_overlays.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 22 Jul 2003 19:06:12 +0000
parents 61f03c9c44c3
children cfe412cda900
files src/coding.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Jul 22 19:05:18 2003 +0000
+++ b/src/coding.c	Tue Jul 22 19:06:12 2003 +0000
@@ -5998,12 +5998,13 @@
   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