Mercurial > emacs
changeset 52017:cfe412cda900
(temp_output_buffer_setup): Use delete_all_overlays.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 22 Jul 2003 19:06:48 +0000 |
parents | 95dd8ee86d65 |
children | 76a99003b377 |
files | src/print.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/print.c Tue Jul 22 19:06:12 2003 +0000 +++ b/src/print.c Tue Jul 22 19:06:48 2003 +0000 @@ -592,12 +592,13 @@ 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 ();