Changeset 3017
- Timestamp:
- 02/26/03 07:18:02 (6 years ago)
- Files:
-
- work/cvs2svn/src/ChangeLog.Meadow (modified) (1 diff)
- work/cvs2svn/src/emacs.c (modified) (2 diffs)
- work/cvs2svn/src/keyboard.c (modified) (2 diffs)
- work/cvs2svn/src/makefile.meadow.w32-in (modified) (1 diff)
- work/cvs2svn/src/makefile.nt (modified) (1 diff)
- work/cvs2svn/src/mw32mci.c (added)
- work/cvs2svn/src/mw32mci.h (added)
- work/cvs2svn/src/mw32term.c (modified) (4 diffs)
- work/cvs2svn/src/termhooks.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
work/cvs2svn/src/ChangeLog.Meadow
r3016 r3017 1 2003-02-26 MIYOSHI Masanori <miyoshi@boreas.dti.ne.jp> 2 3 * termhooks.h (enum event_kind): Add mw32_mci_event. 4 5 * mw32term.c (mw32_message_loop): Generate a Emacs event when 6 MM_MCINOTIFY is notified. 7 8 * mw32mci.h: New file. 9 10 * mw32mci.c (Fmw32_mci_send_string): New function. 11 (Fmw32_mci_get_error_string): Ditto. 12 (syms_of_mw32mci): Ditto. 13 (init_mw32mci): Ditto. 14 15 * makefile.meadow.w32-in (FULL_LINK_FLAGS): Append mw32mci.c. 16 17 * makefile.nt (LINK_FLAGS): Ditto. 18 19 * keyboard.c (make_lispy_event): Convert mw32_mci_event to a list 20 object. 21 22 * emacs.c (main): Add initialization of mw32mci. 23 1 24 2003-02-24 MIYOSHI Masanori <miyoshi@boreas.dti.ne.jp> 2 25 work/cvs2svn/src/emacs.c
r2942 r3017 1483 1483 syms_of_mw32menu (); 1484 1484 syms_of_mw32reg (); 1485 syms_of_mw32mci (); 1485 1486 syms_of_fontset (); 1486 1487 #else … … 1581 1582 init_mw32fns (); 1582 1583 init_mw32reg (); 1584 init_mw32mci (); 1583 1585 #endif 1584 1586 init_fns (); work/cvs2svn/src/keyboard.c
r2646 r3017 42 42 #include <shellapi.h> 43 43 #include "mw32sync.h" 44 #include "mw32mci.h" 44 45 #include "coding.h" 45 46 #endif … … 5457 5458 case meadow_private_event: 5458 5459 return Qnil; 5460 5461 case mw32_mci_event: 5462 { 5463 Lisp_Object event_type, device_id, arg; 5464 5465 switch (event->code) 5466 { 5467 case MW32_MCI_NOTIFY_ABORTED: 5468 event_type = Qmw32_mci_notify_aborted; 5469 arg = Qnil; 5470 break; 5471 case MW32_MCI_NOTIFY_FAILURE: 5472 event_type = Qmw32_mci_notify_failure; 5473 arg = Qnil; 5474 break; 5475 case MW32_MCI_NOTIFY_SUCCESSFUL: 5476 event_type = Qmw32_mci_notify_successful; 5477 arg = Qnil; 5478 break; 5479 case MW32_MCI_NOTIFY_SUPERSEDED: 5480 event_type = Qmw32_mci_notify_superseded; 5481 arg = Qnil; 5482 break; 5483 default: 5484 abort (); 5485 } 5486 device_id = event->arg; 5487 5488 return Fcons (Qmw32_mci, 5489 Fcons (event_type, 5490 Fcons (device_id, 5491 Fcons (arg, Qnil)))); 5492 } 5459 5493 #endif 5460 5494 work/cvs2svn/src/makefile.meadow.w32-in
r2968 r3017 138 138 $(BLD)/mw32dl.$(O) \ 139 139 $(BLD)/mw32mem.$(O) \ 140 $(BLD)/mw32mci.$(O) \ 140 141 $(BLD)/xfaces.$(O) 141 142 ifdef MW32_BDF work/cvs2svn/src/makefile.nt
r2968 r3017 210 210 $(BLD)\mw32reg.obj \ 211 211 $(BLD)\mw32dl.obj \ 212 $(BLD)\mw32mci.obj \ 212 213 $(BLD)\xfaces.obj 213 214 work/cvs2svn/src/mw32term.c
r2996 r3017 45 45 #include <shellapi.h> 46 46 #include "mw32term.h" 47 #include "mw32mci.h" 47 48 48 49 #include "systty.h" … … 72 73 #include <limits.h> 73 74 #endif /* __MINGW32__ */ 75 #include <mmsystem.h> 74 76 75 77 #define mw32_any_window_to_frame mw32_any_window_to_frame … … 8745 8747 break; 8746 8748 #endif 8749 case MM_MCINOTIFY: 8750 { 8751 struct input_event buf; 8752 Lisp_Object frame; 8753 int reason; 8754 8755 MW32_INIT_EMACS_EVENT (buf); 8756 buf.kind = mw32_mci_event; 8757 XSETFRAME (frame, f); 8758 buf.frame_or_window = frame; 8759 switch (msg.wParam) 8760 { 8761 case MCI_NOTIFY_ABORTED: 8762 reason = MW32_MCI_NOTIFY_ABORTED; 8763 break; 8764 case MCI_NOTIFY_FAILURE: 8765 reason = MW32_MCI_NOTIFY_FAILURE; 8766 break; 8767 case MCI_NOTIFY_SUCCESSFUL: 8768 reason = MW32_MCI_NOTIFY_SUCCESSFUL; 8769 break; 8770 case MCI_NOTIFY_SUPERSEDED: 8771 reason = MW32_MCI_NOTIFY_SUPERSEDED; 8772 break; 8773 default: 8774 abort (); 8775 } 8776 buf.code = (int) reason; 8777 buf.arg = make_number (msg.lParam); 8778 buf.timestamp = msg.time; 8779 kbd_buffer_store_event (&buf); 8780 } 8781 break; 8747 8782 8748 8783 /* … … 8756 8791 clear_mouse_face (dpyinfo); 8757 8792 /* Generate a nil HELP_EVENT to cancel a help-echo. 8758 Do it only if there's something to cancel.8793 1 Do it only if there's something to cancel. 8759 8794 Otherwise, the startup message is cleared when 8760 8795 the mouse leaves the frame. */ work/cvs2svn/src/termhooks.h
r2460 r3017 321 321 At present, this is used for generating 322 322 switch_frame */ 323 mw32_mci_event, /* MCI event_kind */ 323 324 #endif 324 325 USER_SIGNAL_EVENT, /* A user signal.
