changeset 52018:76a99003b377

(Finsert_file_contents): Use delete_all_overlays.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 22 Jul 2003 19:07:20 +0000
parents cfe412cda900
children 53afb4da1859
files src/fileio.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Tue Jul 22 19:06:48 2003 +0000
+++ b/src/fileio.c	Tue Jul 22 19:07:20 2003 +0000
@@ -3840,12 +3840,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);
 		  Ferase_buffer ();