1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 20:30:32 -08:00
Commit graph

16 commits

Author SHA1 Message Date
YAMAMOTO Mitsuharu
412f3f1859 (mac_handle_apple_event): Return
errAEEventNotHandled if key binding is not found.
2006-05-27 08:46:03 +00:00
YAMAMOTO Mitsuharu
0ffd2c761b (Qemacs_suspension_id): New variable.
(syms_of_macselect): Intern and staticpro it.
(struct suspended_ae_info): New struct.
(deferred_apple_events, defer_apple_events)
(Fmac_process_deferred_apple_events): Use it.
(suspended_apple_events): New variable.
(mac_handle_apple_event_1): New function.
(mac_handle_apple_event): Use it.  Don't process previously
suspended events.
(cleanup_suspended_apple_events, get_suspension_id)n
(cleanup_all_suspended_apple_events): New functions.
(init_apple_event_handler): Call cleanup_all_suspended_apple_events
at exit.
(Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
(Fmac_resume_apple_event): New defuns.
(syms_of_macselect): Defsubr them.
2006-05-24 08:08:11 +00:00
YAMAMOTO Mitsuharu
c2e93c8242 (Vmac_service_selection) [MAC_OSX]: Rename from
Vmac_services_selection.  All uses changed.
(mac_store_service_event): Rename from mac_store_services_event in
extern and calls.
2006-05-10 08:24:09 +00:00
YAMAMOTO Mitsuharu
a6d7a7754d (mac_do_receive_drag): Remove unused variable `index'.
(mac_store_services_event): Change return type in extern.
2006-05-07 08:05:38 +00:00
YAMAMOTO Mitsuharu
044f1b6463 Update copyright year.
(mac_store_apple_event): Change return type to void in extern.
(mac_handle_apple_event): Don't get return value from
mac_store_apple_event.
[TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
(syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
[TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
macterm.c.  Use Vmac_dnd_known_types as acceptable flavors.
[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.  New
implementation using create_apple_event_from_drag_ref.
[TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
(mac_do_receive_dragUPP): Move variables from macterm.c.
(install_drag_handler, remove_drag_handler): New functions.
2006-05-05 06:44:29 +00:00
YAMAMOTO Mitsuharu
1091c0b3cc (get_scrap_target_type_list, defer_apple_events)
(copy_scrap_flavor_data, mac_handle_service_event): Don't check
return value of xmalloc/xrealloc.
2006-04-18 08:12:31 +00:00
YAMAMOTO Mitsuharu
961bf5901f (get_flavor_type_from_symbol): Remove unused variable `val'.
(get_scrap_private_timestamp, x_get_foreign_selection)
(copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
(Fmac_process_deferred_apple_events): Remove unused variables
`keyword', `reply', `apple_event', `count', and `err'.
2006-04-12 08:08:30 +00:00
YAMAMOTO Mitsuharu
4d4983fdb3 (syms_of_macselect) <mac-apple-event-map>:
Initialize to nil.  Keymap is now created in lisp/term/mac-win.el.
2005-12-11 01:06:29 +00:00
YAMAMOTO Mitsuharu
28714a27a1 Include keymap.h.
(mac_ready_for_apple_events): New variable.
(Vmac_apple_event_map, Qmac_apple_event_class)
(Qmac_apple_event_id): New variables.
(syms_of_macselect): Initialize them.
(Qundefined, mac_store_apple_event): Add externs.
(struct apple_event_binding): New struct.
(find_event_binding_fun, find_event_binding)
(mac_find_apple_event_spec, defer_apple_events)
(mac_handle_apple_event, init_apple_event_handler)
(copy_scrap_flavor_data): New functions.
(Fmac_process_deferred_apple_events): New defun.
(syms_of_macselect): Defsubr it.
(mac_store_services_event): Fix extern.
(mac_handle_service_event): Don't allocate Lisp objects during
asynchronous input processing.  Use mac_store_services_event
instead of mac_store_application_menu_event.
2005-12-10 01:49:44 +00:00
YAMAMOTO Mitsuharu
99f963e4ea (Fx_own_selection_internal): Follow error conventions.
(Fx_get_selection_internal, Fx_selection_owner_p)
(Fx_selection_exists_p): Doc fixes.  (syms_of_macselect)
<selection-converter-alist>: Likewise.
2005-07-23 07:50:27 +00:00
YAMAMOTO Mitsuharu
10b8ef61c0 (get_scrap_target_type_list): Avoid NULL pointer dereference. 2005-07-14 09:23:12 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
YAMAMOTO Mitsuharu
3f2bf04a77 (syms_of_macselect) [MAC_OSX]: Apply a change that was previously
mentioned but actually not applied.
2005-05-13 02:28:53 +00:00
YAMAMOTO Mitsuharu
956c0f10b5 (x_own_selection): Accept Lisp string as result of
selection converter function.
(x_clear_frame_selections): Don't call x-lost-selection-functions
if Emacs is not owner of the selection.
(Vmac_services_selection): Put variable and initialization in
#ifdef MAC_OSX.
(syms_of_macselect) [MAC_OSX]: Set default value of
Vmac_services_selection to PRIMARY.
2005-05-06 08:03:08 +00:00
Miles Bader
0ed4adfc2c Add arch tagline 2005-04-25 01:46:56 +00:00
YAMAMOTO Mitsuharu
944cda7903 New file for selection processing on Mac OS. 2005-04-24 05:58:47 +00:00