diff src/macterm.c @ 71135:a40a279936e8

(mac_handle_visibility_change): Set buf.arg to Qnil. (XTread_socket): Remove obsolete comment.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Thu, 01 Jun 2006 09:37:08 +0000
parents 380e4a856f30
children d098ef877d70
line wrap: on
line diff
--- 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;