summaryrefslogtreecommitdiff
path: root/src/mac.c
AgeCommit message (Collapse)Author
2008-07-27Remove support for Mac Carbon.Dan Nicolaescu
* 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.
2008-06-02Make "xfree (NULL)" a no-op; remove useless if-before-xfree.Jim Meyering
* src/alloc.c (xfree): Return right away for a NULL arg. * src/lread.c (nosuffix): Remove now-useless if-before-xfree tests. * src/gtkutil.c (xg_gtk_scroll_destroy): Likewise. * src/mac.c (create_apple_event_from_event_ref): Likewise. (create_apple_event_from_drag_ref, cfstring_create_normalized): Likewise. * src/doprnt.c (doprnt1): Likewise. * src/frame.c (frame): Likewise. * src/keyboard.c (wipe_kboard): Likewise. * src/macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap): (init_font_name_table, mac_unload_font, x_delete_display): Likewise. * src/term.c (tty_default_color_capabilities, maybe_fatal) (delete_tty): Likewise. * src/w16select.c (string): Likewise. * src/w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise. * src/w32bdf.c (w32_free_bdf_font): Likewise. * src/w32fns.c (w32_unload_font): Likewise. * src/w32font.c (w32font_close): Likewise. * src/window.c (size_window): Likewise. * src/xselect.c (receive_incremental_selection): Likewise. * src/xterm.c (x_free_frame_resources, x_delete_display): Likewise. * src/mactoolbox.c (create_apple_event_from_drag_ref): Likewise. * src/w32.c (stat): Likewise.
2008-05-14Switch to recommended form of GPLv3 permissions notice.Glenn Morris
2008-04-19(create_apple_event) [TARGET_API_MAC_CARBON]:YAMAMOTO Mitsuharu
Make function non-static. (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Remove function. (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: Move to mactoolbox.c. (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
2008-04-06[MAC_OSX] (select_and_poll_event, sys_select):YAMAMOTO Mitsuharu
Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
2008-03-29(xrm_get_preference_database): Remove BLOCK_INPUT.YAMAMOTO Mitsuharu
[TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value. Use kCFAbsoluteTimeIntervalSince1970. (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable. (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]: Remove macros. [MAC_OSX] (socket_callback): Do nothing. [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of ReceiveNextEvent. [MAC_OSX] (sys_select): Likewise. Don't set context as argument to socket_callback. (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
2008-01-11(mac_emacs_pid) [MAC_OSX]: New variable.YAMAMOTO Mitsuharu
[MAC_OSX] (init_mac_osx_environment): Initialize it. [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 when used on child processes.
2008-01-08Add 2008 to copyright years.Glenn Morris
2007-11-30(cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:YAMAMOTO Mitsuharu
New variable. (mac_try_close_socket) [MAC_OSX]: New function. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Update cfsockets_for_select. Replace invalid CFRunLoop source.
2007-08-01Adjust load-path commentVinicius Jose Latorre
2007-08-01Adjust load-pathVinicius Jose Latorre
2007-07-25Switch license to GPLv3 or later.Glenn Morris
2007-04-19Fix typo in comment.Juanma Barranquero
2007-04-12(xrm_get_preference_database, Fmac_get_preference)YAMAMOTO Mitsuharu
[TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
2007-01-21Add 2007 to copyright years.Glenn Morris
2007-01-05(Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODEYAMAMOTO Mitsuharu
instead of 'EMAx'. [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
2006-12-19(Fmac_code_convert_string): Doc fix.Juanma Barranquero
2006-12-15(wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]: NewYAMAMOTO Mitsuharu
variable. (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros. [!MAC_OSX] (select): Use them. [MAC_OSX] (select_and_poll_event, sys_select): Likewise. (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
2006-10-31(create_apple_event_from_event_ref)YAMAMOTO Mitsuharu
(create_apple_event_from_drag_ref, skip_white_space, parse_comment) (parse_include_file, parse_binding, parse_component) (parse_resource_name, parse_value, parse_resource_line) (xrm_merge_string_database, xrm_get_resource) (xrm_get_preference_database): Add const qualifier to arguments. [MAC_OSX] (sys_select): Make variable `context' static const.
2006-10-16(Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.YAMAMOTO Mitsuharu
2006-09-19[!MAC_OSX] (select): Fix argument name.YAMAMOTO Mitsuharu
2006-09-18(SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.YAMAMOTO Mitsuharu
[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
2006-09-10[MAC_OSX] (sys_select): Check argument `nfds' moreYAMAMOTO Mitsuharu
rigidly. Make variable `ofds' static. Remove variable `maxfd'.
2006-09-08[!MAC_OSX] Don't include keyboard.h.YAMAMOTO Mitsuharu
[!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent in the same BLOCK_INPUT block, in case that some input has already been read asynchronously. Pretend to be interrupted by a signal if some input is available. [MAC_OSX] (select_and_poll_event, sys_select): Likewise. (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000. Now used for ReceiveNextEvent timeout instead of select timeout. (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro. [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect support. Quit event loop. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking connect support. Reuse previously allocated CFRunLoopSource. (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function. (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2006-08-27(create_apple_event_from_event_ref, select)YAMAMOTO Mitsuharu
(Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator) (Fmac_set_file_type, cfstring_create_normalized) (mac_get_system_locale, select_and_poll_event, sys_select): Use OSStatus instead of OSErr.
2006-07-12(Fmac_get_preference): Use CHECK_LIST_END.Kim F. Storm
2006-06-28[!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.YAMAMOTO Mitsuharu
2006-05-27Tiny layout change.YAMAMOTO Mitsuharu
2006-05-24(ae_attr_table): New variable.YAMAMOTO Mitsuharu
(syms_of_mac): Intern and staticpro its elements. (mac_aelist_to_lisp): Also convert Apple event attributes. (mac_ae_put_lisp): New function. (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
2006-05-07(Fmac_clear_font_name_table): Move defun to macfns.c.YAMAMOTO Mitsuharu
(syms_of_mac): Likewise for defsubr.
2006-05-05(mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 toYAMAMOTO Mitsuharu
`const AEDesc *'. [TARGET_API_MAC_CARBON] (create_apple_event): New function. [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it. Use xrealloc instead of repeated xmalloc/xfree. [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New function.
2006-05-01(mac_coerce_file_name_ptr): Try typeFSRef if coercionYAMAMOTO Mitsuharu
through typeFileURL failed.
2006-04-18(mac_coerce_file_name_ptr, mac_coerce_file_name_desc)YAMAMOTO Mitsuharu
(create_apple_event_from_event_ref, xrm_get_preference_database) (cfstring_create_normalized): Don't check return value of xmalloc.
2006-04-12(init_process): Remove undef.YAMAMOTO Mitsuharu
(select) [MAC_OSX]: Undefine before including sysselect.h. (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]: Remove functions and prototypes. (parse_value): Add parentheses around + inside shift. (path_from_vol_dir_name): Make static. (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'. [!MAC_OSX] (get_path_to_system_folder): Likewise. (Fmac_get_file_creator, Fmac_get_file_type): Remove unused variable `cCode'. (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'. (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
2006-03-12(sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.YAMAMOTO Mitsuharu
2006-02-06Update years in copyright notice; nfc.Thien-Thi Nguyen
2006-01-05(mac_coerce_file_name_ptr, mac_coerce_file_name_desc):YAMAMOTO Mitsuharu
Don't check that the other type is known file-related one.
2005-12-24(posix_pathname_to_fsspec, fsspec_to_posix_pathname): AddYAMAMOTO Mitsuharu
prototypes. Make static. (mac_aedesc_to_lisp): Initialize err to noErr. (mac_coerce_file_name_ptr, mac_coerce_file_name_desc) (init_coercion_handler): New functions. (Fmac_coerce_ae_data): Use coercion of Apple event data for translation from/to file names.
2005-12-22(Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.YAMAMOTO Mitsuharu
2005-12-19(create_apple_event_from_event_ref): Remove arg `types'.YAMAMOTO Mitsuharu
(do_applescript): Change argument types to Lisp_Object. All uses changed.
2005-12-10(Qundecoded_file_name): New variable.YAMAMOTO Mitsuharu
(syms_of_mac): Initialize it. (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions. [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New function. (Fmac_coerce_ae_data): New defun. (syms_of_mac): Defsubr it.
2005-11-23(DECODE_UTF_8): Remove macro.YAMAMOTO Mitsuharu
[TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function created from cfstring_to_lisp. [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it. (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
2005-11-15(HASHKEY_QUERY_CACHE): New define.YAMAMOTO Mitsuharu
(xrm_create_database, xrm_q_put_resource): Empty query cache. (xrm_get_resource): Use query cache.
2005-11-09[MAC_OSX] (init_mac_osx_environment): Reinitialize localeYAMAMOTO Mitsuharu
related variables for dumped executable.
2005-10-16[TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp): Allow nilYAMAMOTO Mitsuharu
as argument. [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil for encoding arguments as UTF-16 in native byte order, no BOM.
2005-08-07Update years in copyright notice; nfc.Thien-Thi Nguyen
2005-07-23Don't include stdlib.h or string.h.YAMAMOTO Mitsuharu
(Fdo_applescript, Fmac_file_name_to_posix) (Fmac_file_name_to_posix): Doc fixes. [TARGET_API_MAC_CARBON] (Fmac_get_preference) (Fmac_code_convert_string): Likewise. [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode if the executable is not contained in a bundle.
2005-07-21(Fmac_code_convert_string): Add comment about Fstring_as_unibyte.Stefan Monnier
2005-07-16[TARGET_API_MAC_CARBON] (Fmac_code_convert_string): UseYAMAMOTO Mitsuharu
Fstring_as_unibyte instead of string_make_unibyte.
2005-07-12[!TARGET_API_MAC_CARBON] Include charset.h, coding.h, and Endian.h.YAMAMOTO Mitsuharu
[!MAC_OSX] (fchmod, fchown): New functions. (mac_get_code_from_arg): Don't accept Lisp integer as argument. Use SBYTES and EndianU32_BtoN. (mac_get_object_from_code): Return 4 byte string even if argument is 0. Use make_unibyte_string and EndianU32_NtoB. (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator) (Fmac_set_file_type): Fix documents and argument declarations. Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.