summaryrefslogtreecommitdiff
path: root/src/macselect.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for Mac Carbon.Dan Nicolaescu2008-07-271-1165/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mactoolbox.c: * macterm.h: * macterm.c: * macselect.c: * macmenu.c: * macgui.h: * macfns.c: * mac.c: Remove file. * s/darwin.h: * m/intel386.h: * xfaces.c: * xdisp.c: * window.c: * tparam.c: * termhooks.h: * termcap.c: * term.c: * syssignal.h: * sysselect.h: * sysdep.c: * process.c: * lread.c: * lisp.h: * keyboard.c: * image.c: * fringe.c: * frame.h: * frame.c: * fontset.c: * font.h: * font.c: * fns.c: * fileio.c: * emacs.c: * dispnew.c: * dispextern.h: * config.in: * atimer.c: * Makefile.in: Remove code for Carbon * erc.el: Remove code for Carbon. Remove support for Mac Carbon. * term/mac-win.el: Remove file * international/mule-cmds.el: * version.el: * startup.el: * simple.el: * mwheel.el: * mouse.el: * loadup.el: * isearch.el: * info.el: * frame.el: * faces.el: * disp-table.el: * cus-start.el: * cus-face.el: * cus-edit.el: * Makefile.in: Remove code for Carbon. Remove support for Mac Carbon. * makefile.w32-in: * emacsclient.c: Remove code for Carbon. * PROBLEMS: * MACHINES: Remove mentions of Mac Carbon. * ns-emacs.texi: * faq.texi: Remove mentions of Mac Carbon. * os.texi: * frames.texi: * display.texi: Remove mentions of Mac Carbon. * xresources.texi: Remove mentions of Mac Carbon. * make-tarball.txt: * admin.el: * FOR-RELEASE: * CPP-DEFINES: Remove mentions of Mac Carbon. Remove support for Mac Carbon. * mac: Remove directory. * make-dist: * configure.in: * README: * Makefile.in: * INSTALL: Remove code for Carbon. * configure: Regenerate.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|
* Merge from emacs--rel--22Miles Bader2008-04-181-757/+13
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1112
| * [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.YAMAMOTO Mitsuharu2008-04-061-757/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Selection): Move typedef to macgui.h. (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype) (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id): Make variables non-static. (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise. (mac_handle_apple_event, cleanup_all_suspended_apple_events): Make functions non-static. (Vmac_service_selection) [MAC_OSX]: Likewise. (mac_get_selection_from_symbol, get_flavor_type_from_symbol) (mac_valid_selection_target_p, mac_clear_selection) (mac_get_selection_ownership_info, mac_valid_selection_value_p) (mac_put_selection_value, mac_selection_has_target_p) (mac_get_selection_value, mac_get_selection_target_list) (init_apple_event_handler, install_drag_handler, remove_drag_handler): Move functions to mactoolbox.c. (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]: Likewise. (copy_scrap_flavor_data, mac_handle_service_event) (install_service_handler) [MAC_OSX]: Likewise. (syms_of_macselect) <Vmac_dnd_known_types>: Use mac_dnd_default_known_types.
* | Merge from emacs--rel--22Miles Bader2008-04-051-1/+5
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1107
| * [!TARGET_API_MAC_CARBON] Include Scrap.h.YAMAMOTO Mitsuharu2008-03-291-219/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [MAC_OSX] (install_service_handler): Rename from init_service_handler. All callers changed. Return OSStatus value. (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 Bader2008-01-081-1/+1
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-081-1/+1
| |
* | * xselect.c (x_own_selection, x_handle_selection_clear)Stefan Monnier2007-10-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (x_clear_frame_selections): * w32menu.c (list_of_panes, list_of_items): * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list): * textprop.c (validate_plist, interval_has_all_properties) (interval_has_some_properties, interval_has_some_properties_list) (add_properties, text_property_list): * process.c (Fget_buffer_process, list_processes_1, status_notify): * minibuf.c (Fassoc_string): * macselect.c (x_own_selection, x_clear_frame_selections) (Fx_disown_selection_internal): * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree): Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
* | [!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