aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for Mac Carbon.Dan Nicolaescu2008-07-271-5477/+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.
* Make "xfree (NULL)" a no-op; remove useless if-before-xfree.Jim Meyering2008-06-021-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-8/+6
|
* (create_apple_event) [TARGET_API_MAC_CARBON]:YAMAMOTO Mitsuharu2008-04-191-102/+49
| | | | | | | | | 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.
* [MAC_OSX] (select_and_poll_event, sys_select):YAMAMOTO Mitsuharu2008-04-061-20/+6
| | | | Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
* (xrm_get_preference_database): Remove BLOCK_INPUT.YAMAMOTO Mitsuharu2008-03-291-57/+69
| | | | | | | | | | | | | | [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.
* (mac_emacs_pid) [MAC_OSX]: New variable.YAMAMOTO Mitsuharu2008-01-111-1/+6
| | | | | | [MAC_OSX] (init_mac_osx_environment): Initialize it. [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 when used on child processes.
* Add 2008 to copyright years.Glenn Morris2008-01-081-1/+1
|
* (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:YAMAMOTO Mitsuharu2007-11-301-2/+49
| | | | | | | 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.
* Adjust load-path commentVinicius Jose Latorre2007-08-011-2/+2
|
* Adjust load-pathVinicius Jose Latorre2007-08-011-3/+3
|
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* Fix typo in comment.Juanma Barranquero2007-04-191-1/+1
|
* (xrm_get_preference_database, Fmac_get_preference)YAMAMOTO Mitsuharu2007-04-121-0/+5
| | | | [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODEYAMAMOTO Mitsuharu2007-01-051-4/+4
| | | | | instead of 'EMAx'. [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
* (Fmac_code_convert_string): Doc fix.Juanma Barranquero2006-12-191-2/+2
|
* (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]: NewYAMAMOTO Mitsuharu2006-12-151-0/+25
| | | | | | | | 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.
* (create_apple_event_from_event_ref)YAMAMOTO Mitsuharu2006-10-311-16/+16
| | | | | | | | | (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.
* (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.YAMAMOTO Mitsuharu2006-10-161-0/+10
|
* [!MAC_OSX] (select): Fix argument name.YAMAMOTO Mitsuharu2006-09-191-1/+1
|
* (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.YAMAMOTO Mitsuharu2006-09-181-1/+5
| | | | [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
* [MAC_OSX] (sys_select): Check argument `nfds' moreYAMAMOTO Mitsuharu2006-09-101-13/+16
| | | | rigidly. Make variable `ofds' static. Remove variable `maxfd'.
* [!MAC_OSX] Don't include keyboard.h.YAMAMOTO Mitsuharu2006-09-081-214/+240
| | | | | | | | | | | | | | | | | [!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.
* (create_apple_event_from_event_ref, select)YAMAMOTO Mitsuharu2006-08-271-11/+11
| | | | | | | (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.
* (Fmac_get_preference): Use CHECK_LIST_END.Kim F. Storm2006-07-121-2/+1
|
* [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.YAMAMOTO Mitsuharu2006-06-281-2/+0
|
* Tiny layout change.YAMAMOTO Mitsuharu2006-05-271-0/+1
|
* (ae_attr_table): New variable.YAMAMOTO Mitsuharu2006-05-241-14/+165
| | | | | | | (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.
* (Fmac_clear_font_name_table): Move defun to macfns.c.YAMAMOTO Mitsuharu2006-05-071-11/+0
| | | | (syms_of_mac): Likewise for defsubr.
* (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 toYAMAMOTO Mitsuharu2006-05-051-16/+98
| | | | | | | | | `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.
* (mac_coerce_file_name_ptr): Try typeFSRef if coercionYAMAMOTO Mitsuharu2006-05-011-3/+47
| | | | through typeFileURL failed.
* (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)YAMAMOTO Mitsuharu2006-04-181-47/+24
| | | | | (create_apple_event_from_event_ref, xrm_get_preference_database) (cfstring_create_normalized): Don't check return value of xmalloc.
* (init_process): Remove undef.YAMAMOTO Mitsuharu2006-04-121-29/+25
| | | | | | | | | | | | | | (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'.
* (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.YAMAMOTO Mitsuharu2006-03-121-0/+3
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):YAMAMOTO Mitsuharu2006-01-051-131/+90
| | | | Don't check that the other type is known file-related one.
* (posix_pathname_to_fsspec, fsspec_to_posix_pathname): AddYAMAMOTO Mitsuharu2005-12-241-78/+280
| | | | | | | | | 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.
* (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.YAMAMOTO Mitsuharu2005-12-221-3/+6
|
* (create_apple_event_from_event_ref): Remove arg `types'.YAMAMOTO Mitsuharu2005-12-191-91/+47
| | | | | (do_applescript): Change argument types to Lisp_Object. All uses changed.
* (Qundecoded_file_name): New variable.YAMAMOTO Mitsuharu2005-12-101-0/+324
| | | | | | | | | (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.
* (DECODE_UTF_8): Remove macro.YAMAMOTO Mitsuharu2005-11-231-7/+19
| | | | | | | [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.
* (HASHKEY_QUERY_CACHE): New define.YAMAMOTO Mitsuharu2005-11-151-4/+37
| | | | | (xrm_create_database, xrm_q_put_resource): Empty query cache. (xrm_get_resource): Use query cache.
* [MAC_OSX] (init_mac_osx_environment): Reinitialize localeYAMAMOTO Mitsuharu2005-11-091-24/+30
| | | | related variables for dumped executable.
* [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp): Allow nilYAMAMOTO Mitsuharu2005-10-161-17/+23
| | | | | | as argument. [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil for encoding arguments as UTF-16 in native byte order, no BOM.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+2
|
* Don't include stdlib.h or string.h.YAMAMOTO Mitsuharu2005-07-231-29/+29
| | | | | | | | | (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.
* (Fmac_code_convert_string): Add comment about Fstring_as_unibyte.Stefan Monnier2005-07-211-1/+5
|
* [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): UseYAMAMOTO Mitsuharu2005-07-161-1/+1
| | | | Fstring_as_unibyte instead of string_make_unibyte.
* [!TARGET_API_MAC_CARBON] Include charset.h, coding.h, and Endian.h.YAMAMOTO Mitsuharu2005-07-121-59/+136
| | | | | | | | | | | [!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.