1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 16:41:45 -08:00
Commit graph

28 commits

Author SHA1 Message Date
YAMAMOTO Mitsuharu
a5b115873d [!TARGET_API_MAC_CARBON] Include Scrap.h.
(Selection): New typedef.  Use instead of ScrapRef.
(mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
(mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
(mac_clear_selection): Rename from clear_scrap.
(get_flavor_type_from_symbol): New argument SEL and subsume function of
scrap_has_target_type.   All uses changed.
(mac_get_selection_ownership_info, mac_valid_selection_value_p)
(mac_selection_has_target_p): New functions.
(mac_put_selection_value): Rename from put_scrap_string.
(mac_get_selection_value): Rename from get_scrap_string.
(mac_get_selection_target_list): Rename from get_scrap_target_type_list.
(put_scrap_private_timestamp, scrap_has_target_type)
(get_scrap_private_timestamp): Remove functions.
(SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
(x_own_selection, x_get_local_selection):
Use mac_valid_selection_value_p.
(x_own_selection): Don't use put_scrap_private_timestamp.
Record OWNERSHIP-INFO into Vselection_alist instead.
(x_get_local_selection): Don't check type if request is local.
(Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
2007-08-06 08:26:51 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
684d6f5bcc Switch license to GPLv3 or later. 2007-07-25 05:19:07 +00:00
YAMAMOTO Mitsuharu
343bd79426 [MAC_OSX] (install_service_handler): Rename from
init_service_handler.  All callers changed.  Return OSStatus value.
2007-06-07 08:44:47 +00:00
YAMAMOTO Mitsuharu
d18bee728d (get_scrap_target_type_list, x_own_selection): Move
assignments outside predicate macros.
(Vselection_converter_alist): Doc fix.
2007-03-26 08:13:09 +00:00
YAMAMOTO Mitsuharu
0f5c771993 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Don't
pass keyboard modifiers to mac_store_drag_event, but put them as
kEventParamKeyModifiers Apple event parameter.
2007-01-22 08:28:15 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
YAMAMOTO Mitsuharu
bd619af503 (Fmac_resume_apple_event): Set error number when
descriptor type of reply is non-null.
2007-01-15 08:36:29 +00:00
YAMAMOTO Mitsuharu
ca71dd0e52 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use
mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
2006-12-15 08:05:27 +00:00
YAMAMOTO Mitsuharu
11e0f75563 (init_service_handler): Make variable `specs' static
const.
2006-10-31 08:32:25 +00:00
YAMAMOTO Mitsuharu
31f9308585 (get_scrap_from_symbol, clear_scrap, put_scrap_string)
(put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
(get_scrap_private_timestamp, get_scrap_target_type_list)
(x_own_selection, x_get_foreign_selection)
(Fx_disown_selection_internal, Fx_selection_owner_p)
(Fx_selection_exists_p): Use OSStatus instead of OSErr.
2006-08-27 07:09:41 +00:00
Kim F. Storm
4ae7943dc6 (x_get_local_selection): Use signal_error. 2006-07-18 13:28:39 +00:00
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