Need to remove debug code.
Also need to add w32notify.c.
{
/* Make an event (file-notify (DESCRIPTOR ACTION FILE) CALLBACK). */
obj = Fcons (Qfile_notify,
- list2 (list3 (event->code,
+ list2 (list3 (make_number (event->code),
XCAR (event->arg),
- CAR_SAFE (XCDR (event->arg))),
+ XCDR (event->arg)),
event->frame_or_window));
kbd_fetch_ptr = event + 1;
}
initial_define_lispy_key (Vspecial_event_map, "language-change",
"ignore");
initial_define_lispy_key (Vspecial_event_map, "file-notify",
- "w32notify-handlde-event");
+ "w32notify-handle-event");
#endif
}
while ((w32_unicode_gui ? GetMessageW : GetMessageA) (&msg, NULL, 0, 0))
{
+ if (msg.message == WM_EMACS_FILENOTIFY)
+ DebPrint (("w32_msg_pump: File notification, hwnd = 0x%p\n", msg.hwnd));
if (msg.hwnd == NULL)
{
switch (msg.message)
return retval;
}
+ case WM_EMACS_FILENOTIFY:
+ DebPrint (("w32_wnd_proc: File notification arrived, posting\n"));
+ my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
+ return 1;
default:
/* Check for messages registered at runtime. */
break;
case WM_EMACS_FILENOTIFY:
+ DebPrint (("w32_read_socket: File notification arrived\n"));
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
if (f)
queue_notifications (&inev, &msg, f, &count);