]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_echo_area): Use INHIBIT_GARBAGE_COLLECTION,
authorDave Love <fx@gnu.org>
Wed, 11 Jun 2003 11:46:24 +0000 (11:46 +0000)
committerDave Love <fx@gnu.org>
Wed, 11 Jun 2003 11:46:24 +0000 (11:46 +0000)
REENABLE_GARBAGE_COLLECTION.

src/xdisp.c

index 6517d07b2ed4a8b67bf65bffc6685afeb93cab47..04e60f07111e6bb63040e4e8357f3f63bc40ac3e 100644 (file)
@@ -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;
 }