* term/mac-win.el: Require x-dnd.
authorSteven Tamm <steventamm@mac.com>
Wed, 29 Dec 2004 17:25:02 +0000 (17:25 +0000)
committerSteven Tamm <steventamm@mac.com>
Wed, 29 Dec 2004 17:25:02 +0000 (17:25 +0000)
commit30c92fab793df102666fff234d59377003a79462
tree00e78822e7949e23a8d5ad92ef0b08bf52504724
parent2f7717f601c768019ee2a73a7f3535c5de74512b
* term/mac-win.el: Require x-dnd.
(mac-drag-n-drop): Sync with W32 version.  Use x-dnd.el functions.
* macfns.c (install_window_handler): Modify extern to return OSErr
value.
(mac_window): Handle return value of install_window_handler.
* macterm.c (reflect_byte): Remove function.
(mac_create_bitmap_from_bitmap_data): Don't call it.  Lookup table
instead.
(mac_do_font_lists): Simplify calculation of the longest
nonspecial string.
[TARGET_API_MAC_CARBON] (init_mac_drag_n_drop): Remove function
and declaration.
(mac_initialize) [TARGET_API_MAC_CARBON]: Don't call it.
[TARGET_API_MAC_CARBON] (mac_do_track_drag): New function and
declaration.
(install_window_handler): Return OSErr value.
(install_window_handler) [TARGET_API_MAC_CARBON]: Register
handlers for tracking/receiving drag-and-drop items.
(do_ae_open_documents): Generate unibyte strings for filenames.
[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.  Reject
only non-filename items.  Set event modifiers.  Set return value.
lisp/ChangeLog
lisp/term/mac-win.el
src/ChangeLog
src/macfns.c
src/macterm.c