1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
Commit graph

85 commits

Author SHA1 Message Date
YAMAMOTO Mitsuharu
90fa408d58 [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes. 2007-08-24 08:51:18 +00:00
YAMAMOTO Mitsuharu
93b234062e (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.
2007-08-23 08:45:46 +00:00
YAMAMOTO Mitsuharu
a6c76d726a [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
Use kCFAbsoluteTimeIntervalSince1970.
2007-08-06 08:25:06 +00:00
Vinicius Jose Latorre
b01fc8d8c4 Adjust load-path comment 2007-08-01 22:21:02 +00:00
Vinicius Jose Latorre
cdf5c17ae8 Adjust load-path 2007-08-01 21:43:11 +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
e50652234f (xrm_get_preference_database): Remove BLOCK_INPUT. 2007-06-07 08:43:58 +00:00
Juanma Barranquero
5a21998376 Fix typo in comment. 2007-04-19 08:41:05 +00:00
YAMAMOTO Mitsuharu
f82bd023a6 (xrm_get_preference_database, Fmac_get_preference)
[TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
2007-04-12 08:11:16 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
YAMAMOTO Mitsuharu
31cfeedea9 (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
instead of 'EMAx'.
[!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
2007-01-05 08:29:51 +00:00
Juanma Barranquero
e1d1b65746 (Fmac_code_convert_string): Doc fix. 2006-12-19 16:11:24 +00:00
YAMAMOTO Mitsuharu
5c144a059c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]: New
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-12-15 08:05:10 +00:00
YAMAMOTO Mitsuharu
37a9ab8638 (create_apple_event_from_event_ref)
(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-31 08:31:30 +00:00
YAMAMOTO Mitsuharu
2e6266ac57 (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs. 2006-10-16 08:58:39 +00:00
YAMAMOTO Mitsuharu
aef12e3acd [!MAC_OSX] (select): Fix argument name. 2006-09-19 03:18:01 +00:00
YAMAMOTO Mitsuharu
37228c3809 (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
2006-09-18 07:32:47 +00:00
YAMAMOTO Mitsuharu
601b0df72f [MAC_OSX] (sys_select): Check argument `nfds' more
rigidly.  Make variable `ofds' static.  Remove variable `maxfd'.
2006-09-10 05:51:29 +00:00
YAMAMOTO Mitsuharu
3e51e9ac8e [!MAC_OSX] Don't include keyboard.h.
[!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-09-08 08:17:58 +00:00
YAMAMOTO Mitsuharu
270e593abd (create_apple_event_from_event_ref, select)
(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-08-27 07:09:23 +00:00
Kim F. Storm
979376cccc (Fmac_get_preference): Use CHECK_LIST_END. 2006-07-12 13:19:33 +00:00
YAMAMOTO Mitsuharu
a49a81ff53 [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h. 2006-06-28 08:29:54 +00:00
YAMAMOTO Mitsuharu
2a7ee2b349 Tiny layout change. 2006-05-27 08:45:14 +00:00
YAMAMOTO Mitsuharu
2015c1f03f (ae_attr_table): New variable.
(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-24 08:07:19 +00:00
YAMAMOTO Mitsuharu
bd13cae72f (Fmac_clear_font_name_table): Move defun to macfns.c.
(syms_of_mac): Likewise for defsubr.
2006-05-07 08:04:22 +00:00
YAMAMOTO Mitsuharu
b99934e6ee (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
`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-05 06:44:01 +00:00
YAMAMOTO Mitsuharu
d3601bf266 (mac_coerce_file_name_ptr): Try typeFSRef if coercion
through typeFileURL failed.
2006-05-01 01:11:28 +00:00
YAMAMOTO Mitsuharu
305366a3bc (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
(create_apple_event_from_event_ref, xrm_get_preference_database)
(cfstring_create_normalized): Don't check return value of xmalloc.
2006-04-18 08:11:56 +00:00
YAMAMOTO Mitsuharu
1fcd1370e2 (init_process): Remove undef.
(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-04-12 08:06:59 +00:00
YAMAMOTO Mitsuharu
5093b9dc1d (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. 2006-03-12 08:19:42 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
YAMAMOTO Mitsuharu
b9f0075cf2 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
Don't check that the other type is known file-related one.
2006-01-05 08:14:12 +00:00
YAMAMOTO Mitsuharu
7ce8b6381a (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Add
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-24 02:50:11 +00:00
YAMAMOTO Mitsuharu
26ab4ea8c4 (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak. 2005-12-22 08:16:53 +00:00
YAMAMOTO Mitsuharu
70e88ff1e4 (create_apple_event_from_event_ref): Remove arg `types'.
(do_applescript): Change argument types to Lisp_Object.  All uses
changed.
2005-12-19 08:30:27 +00:00
YAMAMOTO Mitsuharu
31b6888a5c (Qundecoded_file_name): New variable.
(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-12-10 01:49:36 +00:00
YAMAMOTO Mitsuharu
f997a55890 (DECODE_UTF_8): Remove macro.
[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-23 07:19:16 +00:00
YAMAMOTO Mitsuharu
fc09d07f39 (HASHKEY_QUERY_CACHE): New define.
(xrm_create_database, xrm_q_put_resource): Empty query cache.
(xrm_get_resource): Use query cache.
2005-11-15 07:56:27 +00:00
YAMAMOTO Mitsuharu
10ae126cfc [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
related variables for dumped executable.
2005-11-09 08:07:59 +00:00
YAMAMOTO Mitsuharu
5f8080a9e2 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp): Allow nil
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-10-16 02:22:16 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
YAMAMOTO Mitsuharu
fc3216cb11 Don't include stdlib.h or string.h.
(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-23 07:47:51 +00:00
Stefan Monnier
a4ed715a3d (Fmac_code_convert_string): Add comment about Fstring_as_unibyte. 2005-07-21 05:36:04 +00:00
YAMAMOTO Mitsuharu
407289a44d [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Use
Fstring_as_unibyte instead of string_make_unibyte.
2005-07-16 07:16:55 +00:00
YAMAMOTO Mitsuharu
908b04563d [!TARGET_API_MAC_CARBON] Include charset.h, coding.h, and Endian.h.
[!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.
2005-07-12 11:33:42 +00:00
Steven Tamm
9a4183e9ea Adding in functions for setting and retrieving file type info
mac.c (Fmac_get_file_type, Fmac_get_file_creator): Added.
	(Fmac_set_file_type, Fmac_set_file_creator): Added
	(mac_get_object_from_code, mac_get_code_from_arg): Added
2005-07-10 18:17:18 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
YAMAMOTO Mitsuharu
62b00a4687 [!MAC_OSX] Include keyboard.h and syssignal.h.
[!MAC_OSX] (target_ticks): Remove variable.
[!MAC_OSX] (check_alarm, pause, index): Remove functions.
[!MAC_OSX && __MRC__] (sys_strftime): Likewise.
[!MAC_OSX] (select): If fd 0 is not set in rfds and some input
event occurs before timeout, behave as if the function were
interrupted.
[!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
handling using Time Manager routines.
[!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask): New
variables.
[!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
(setitimer): New functions.
2005-05-13 08:44:20 +00:00
Jan Djärv
3a3563e9d9 * mac.c: #undef init_process so not to conflict with system headers. 2005-05-03 18:19:34 +00:00