From: Dave Love Date: Wed, 11 Jun 2003 11:46:24 +0000 (+0000) Subject: (display_echo_area): Use INHIBIT_GARBAGE_COLLECTION, X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7da7bf95d234c22e2abe0fec77aa9aaedb6b60cd;p=emacs.git (display_echo_area): Use INHIBIT_GARBAGE_COLLECTION, REENABLE_GARBAGE_COLLECTION. --- 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; }