summaryrefslogtreecommitdiff
path: root/src/macselect.c
Commit message (Collapse)AuthorAgeFilesLines
* [!TARGET_API_MAC_CARBON] Include Scrap.h.YAMAMOTO Mitsuharu2007-08-061-215/+189
| | | | | | | | | | | | | | | | | | | | | | | | (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.
* Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
* | [MAC_OSX] (install_service_handler): Rename fromYAMAMOTO Mitsuharu2007-06-071-4/+7
|/ | | | init_service_handler. All callers changed. Return OSStatus value.
* (get_scrap_target_type_list, x_own_selection): MoveYAMAMOTO Mitsuharu2007-03-261-7/+8
| | | | | assignments outside predicate macros. (Vselection_converter_alist): Doc fix.
* [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Don'tYAMAMOTO Mitsuharu2007-01-221-1/+8
| | | | | pass keyboard modifiers to mac_store_drag_event, but put them as kEventParamKeyModifiers Apple event parameter.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (Fmac_resume_apple_event): Set error number whenYAMAMOTO Mitsuharu2007-01-151-1/+1
| | | | descriptor type of reply is non-null.
* [TARGET_API_MAC_CARBON] (mac_do_receive_drag): UseYAMAMOTO Mitsuharu2006-12-151-2/+1
| | | | mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
* (init_service_handler): Make variable `specs' staticYAMAMOTO Mitsuharu2006-10-311-4/+5
| | | | const.
* (get_scrap_from_symbol, clear_scrap, put_scrap_string)YAMAMOTO Mitsuharu2006-08-271-21/+21
| | | | | | | | (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.
* (x_get_local_selection): Use signal_error.Kim F. Storm2006-07-181-5/+3
|
* (mac_handle_apple_event): ReturnYAMAMOTO Mitsuharu2006-05-271-0/+2
| | | | errAEEventNotHandled if key binding is not found.
* (Qemacs_suspension_id): New variable.YAMAMOTO Mitsuharu2006-05-241-43/+324
| | | | | | | | | | | | | | | | | | (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.
* (Vmac_service_selection) [MAC_OSX]: Rename fromYAMAMOTO Mitsuharu2006-05-101-10/+10
| | | | | | Vmac_services_selection. All uses changed. (mac_store_service_event): Rename from mac_store_services_event in extern and calls.
* (mac_do_receive_drag): Remove unused variable `index'.YAMAMOTO Mitsuharu2006-05-071-2/+1
| | | | (mac_store_services_event): Change return type in extern.
* Update copyright year.YAMAMOTO Mitsuharu2006-05-051-6/+209
| | | | | | | | | | | | | | | (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.
* (get_scrap_target_type_list, defer_apple_events)YAMAMOTO Mitsuharu2006-04-181-35/+12
| | | | | (copy_scrap_flavor_data, mac_handle_service_event): Don't check return value of xmalloc/xrealloc.
* (get_flavor_type_from_symbol): Remove unused variable `val'.YAMAMOTO Mitsuharu2006-04-121-36/+38
| | | | | | | (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'.
* (syms_of_macselect) <mac-apple-event-map>:YAMAMOTO Mitsuharu2005-12-111-1/+1
| | | | Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
* Include keymap.h.YAMAMOTO Mitsuharu2005-12-101-82/+411
| | | | | | | | | | | | | | | | | | | (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.
* (Fx_own_selection_internal): Follow error conventions.YAMAMOTO Mitsuharu2005-07-231-6/+6
| | | | | | (Fx_get_selection_internal, Fx_selection_owner_p) (Fx_selection_exists_p): Doc fixes. (syms_of_macselect) <selection-converter-alist>: Likewise.
* (get_scrap_target_type_list): Avoid NULL pointer dereference.YAMAMOTO Mitsuharu2005-07-141-1/+3
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (syms_of_macselect) [MAC_OSX]: Apply a change that was previouslyYAMAMOTO Mitsuharu2005-05-131-1/+3
| | | | mentioned but actually not applied.
* (x_own_selection): Accept Lisp string as result ofYAMAMOTO Mitsuharu2005-05-061-5/+11
| | | | | | | | | | 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.
* Add arch taglineMiles Bader2005-04-251-0/+3
|
* New file for selection processing on Mac OS.YAMAMOTO Mitsuharu2005-04-241-0/+1118