From c5c6d57c7cd3ba5b008c5b51a950a998510dab61 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Sun, 12 Apr 1998 18:08:02 +0000 Subject: [PATCH] (temp_output_buffer_setup): Clear out overlays, visited file, undo list, etc. --- src/print.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/print.c b/src/print.c index 30e9ff74af1..dc6272d2f82 100644 --- a/src/print.c +++ b/src/print.c @@ -634,6 +634,12 @@ temp_output_buffer_setup (bufname) current_buffer->directory = old->directory; current_buffer->read_only = Qnil; + current_buffer->filename = Qnil; + current_buffer->undo_list = Qt; + current_buffer->overlays_before = Qnil; + current_buffer->overlays_after = Qnil; + current_buffer->enable_multibyte_characters + = buffer_defaults.enable_multibyte_characters; Ferase_buffer (); XSETBUFFER (buf, current_buffer); -- 2.39.2