# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1149154628 0 # Node ID a40a279936e898d3405ed38baff3f03fad04b79f # Parent 01f0740963b0ff7f8d4650dd9cf5d44b8a3b7a31 (mac_handle_visibility_change): Set buf.arg to Qnil. (XTread_socket): Remove obsolete comment. diff -r 01f0740963b0 -r a40a279936e8 src/macterm.c --- a/src/macterm.c Thu Jun 01 08:57:37 2006 +0000 +++ b/src/macterm.c Thu Jun 01 09:37:08 2006 +0000 @@ -6134,6 +6134,7 @@ EVENT_INIT (buf); buf.kind = DEICONIFY_EVENT; XSETFRAME (buf.frame_or_window, f); + buf.arg = Qnil; kbd_buffer_store_event (&buf); } else if (! NILP (Vframe_list) && ! NILP (XCDR (Vframe_list))) @@ -6147,6 +6148,7 @@ EVENT_INIT (buf); buf.kind = ICONIFY_EVENT; XSETFRAME (buf.frame_or_window, f); + buf.arg = Qnil; kbd_buffer_store_event (&buf); } @@ -8338,9 +8340,10 @@ } #if USE_MAC_FONT_PANEL -/* The first call to font panel functions (FPIsFontPanelVisible, - SetFontInfoForSelection) is slow. This variable is used for - deferring such a call as much as possible. */ +/* Whether Font Panel has been shown before. The first call to font + panel functions (FPIsFontPanelVisible, SetFontInfoForSelection) is + slow. This variable is used for deferring such a call as much as + possible. */ static int font_panel_shown_p = 0; int @@ -9866,10 +9869,6 @@ struct frame *f; unsigned long timestamp; - /* It is necessary to set this (additional) argument slot of an - event to nil because keyboard.c protects incompletely - processed event from being garbage collected by placing them - in the kbd_buffer_gcpro vector. */ EVENT_INIT (inev); inev.kind = NO_EVENT; inev.arg = Qnil;