From 7da7bf95d234c22e2abe0fec77aa9aaedb6b60cd Mon Sep 17 00:00:00 2001 From: Dave Love Date: Wed, 11 Jun 2003 11:46:24 +0000 Subject: [PATCH] (display_echo_area): Use INHIBIT_GARBAGE_COLLECTION, REENABLE_GARBAGE_COLLECTION. --- src/xdisp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 6517d07b2ed..04e60f07111 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -7001,14 +7001,14 @@ static int display_echo_area (w) struct window *w; { - int i, no_message_p, window_height_changed_p, count; + int i, no_message_p, window_height_changed_p; /* Temporarily disable garbage collections while displaying the echo area. This is done because a GC can print a message itself. That message would modify the echo area buffer's contents while a redisplay of the buffer is going on, and seriously confuse redisplay. */ - count = inhibit_garbage_collection (); + INHIBIT_GARBAGE_COLLECTION; /* If there is no message, we must call display_echo_area_1 nevertheless because it resizes the window. But we will have to @@ -7025,7 +7025,7 @@ display_echo_area (w) if (no_message_p) echo_area_buffer[i] = Qnil; - unbind_to (count, Qnil); + REENABLE_GARBAGE_COLLECTION; return window_height_changed_p; } -- 2.39.5