1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 05:51:21 -08:00
emacs/src
Steven Tamm b15325b22a * dispextern.h: Change HAVE_CARBON to MAC_OS.
(struct glyph_string): Likewise.
* emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
	mac_initialize.
* fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
	Change TARGET_API_MAC_CARBON to HAVE_CARBON.
* fns.c (vector): Change MAC_OSX to MAC_OS.
* frame.c (x_set_frame_parameters, x_report_frame_params)
	(x_set_fullscreen): Remove #ifndef HAVE_CARBON.
	(x_set_border_width, Vdefault_frame_scroll_bars): Change
	HAVE_CARBON to MAC_OS.
* image.c [MAC_OS]: Include sys/stat.h.
	[MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
	QuickTimeComponents.h.
* mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
	[!MAC_OSX] (select): Use mac_wait_next_event.
	[!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
	Vexec_suffixes.
	[!MAC_OSX] (select, run_mac_command): Change `#ifdef
	TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
	(mac_clear_font_name_table): Add extern.
	(Fmac_clear_font_name_table): New defun.
	(syms_of_mac): Defsubr it.
	[MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
	[MAC_OSX] (select_and_poll_event): New function.
	[MAC_OSX] (sys_select): Use it.
	[MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
	[MAC_OSX && SELECT_USE_CFSOCKET]
	(SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
	[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
	RunLoop for simultaneously monitoring two kinds of inputs, window
	events and process outputs, without periodically polling.
* macfns.c (mac_initialized): Remove extern.
	(stricmp): Put in #if 0.  All callers changed to use xstricmp in
	xfaces.c.
	(strnicmp): Decrement `n' at the end of each loop, not the
	beginning.
	(check_mac): Use the term "Mac native windows" instead of "Mac
	OS".
	(check_x_display_info, x_display_info_for_name): Sync with xfns.c.
	(mac_get_rdb_resource): New function (from w32reg.c).
	(x_get_string_resource): Use it.
	(install_window_handler): Add extern.
	(mac_window): New function.
	(Fx_create_frame): Use it instead of make_mac_frame.  Set
	parameter for Qfullscreen.  Call x_wm_set_size_hint.
	(Fx_open_connection, Fx_close_connection): New defuns.
	(syms_of_macfns): Defsubr them.
	(x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
	kWindowNoUpdatesAttribute to the window attribute.
	(x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
	(x_create_tip_frame): Don't call ShowWindow.
	(Fx_show_tip): Call ShowWindow.
	(Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
	TARGET_API_MAC_CARBON'.
	(mac_frame_parm_handlers): Set handlers for Qfullscreen.
	(syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
* macgui.h [!MAC_OSX]: Don't include Controls.h.  Include
	Windows.h.
	(Window): Typedef to WindowPtr and move outside `#if
	TARGET_API_MAC_CARBON'.
	(XSizeHints): New struct.
* macterm.c (x_update_begin, x_update_end)
	[TARGET_API_MAC_CARBON]: Disable screen updates during update of a
	frame.
	(x_draw_glyph_string_background, x_draw_glyph_string_foreground)
	[MAC_OS8]: Use XDrawImageString/XDrawImageString16.
	(construct_mouse_click): Put in #if 0.
	(x_check_fullscreen, x_check_fullscreen_move): Remove decls.
	(x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
	TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
	(activate_scroll_bars, deactivate_scroll_bars)
	[!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
	(x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
	if the position is neither user-specified nor program-specified.
	(x_free_frame_resources): Free size_hints.
	(x_wm_set_size_hint): Allocate size_hints if needed.  Set
	size_hints.
	(mac_clear_font_name_table): New function.
	(mac_do_list_fonts): Initialize font_name_table if needed.
	(x_list_fonts): Don't initialize font_name_table.  Add BLOCK_INPUT
	around mac_do_list_fonts.
	(mac_unload_font): New function.
	(x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
	(init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
	and definitions with #if TARGET_API_MAC_CARBON.
	[USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
	(install_window_handler): Add decl.
	(do_window_update): Add BeginUpdate/EndUpdate for the tooltip
	window.  Use UpdateControls.  Get the rectangle that should be
	updated and restrict the target of expose_frame to it.
	(do_grow_window): Set minimum height/width according to
	size_hints.
	(do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
	(do_zoom_window): Don't use x_set_window_size.
	[USE_CARBON_EVENTS] (mac_handle_window_event): New function.
	(install_window_handler): New function.
	[!USE_CARBON_EVENTS] (mouse_region): New variable.
	[!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
	(XTread_socket) [USE_CARBON_EVENTS]: Move call to
	GetEventDispatcherTarget inside BLOCK_INPUT.
	(XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
	Update mouse_region when mouse is moved.
	(make_mac_frame): Remove.
	(make_mac_terminal_frame): Put in #ifdef MAC_OS8.  Initialize
	mouse pointer shapes.  Change values of f->left_pos and
	f->top_pos.  Don't use make_mac_frame.  Use NewCWindow.  Don't
	call ShowWindow.
	(mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
	Vinvocation_name and Vsystem_name.
	(mac_make_rdb): New function (from w32term.c).
	(mac_term_init): Use it.  Add BLOCK_INPUT.  Error if display has
	already been opened.  Don't pass argument to
	mac_initialize_display_info.  Don't set dpyinfo->height/width.
	Add entries to x_display_list and x_display_name_list.
	(x_delete_display): New function.
	(mac_initialize): Don't call mac_initialize_display_info.
	(syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
* macterm.h (check_mac): Add extern.
	(struct mac_output): New member size_hints.
	(FRAME_SIZE_HINTS): New macro.
	(mac_unload_font): Add extern.
* xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
* xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
2004-12-27 17:27:30 +00:00
..
bitmaps
m (DATA_SEG_BITS): Don't define. 2004-10-14 13:58:25 +00:00
s * keyboard.c: Don't undef SIGIO 2004-11-30 05:57:27 +00:00
.arch-inventory Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-401 2004-06-12 04:51:11 +00:00
.dbxinit
.gdbinit (ppt): New function. 2004-11-03 12:49:39 +00:00
.gitignore * .cvsignore: Add buildobj.lst. 2004-11-09 08:23:44 +00:00
abbrev.c (Fexpand_abbrev): Undo previous change. 2004-07-31 03:37:21 +00:00
acldef.h
alloc.c Update comment for check_depth. 2004-12-25 10:31:36 +00:00
alloca.c Fix the prototype for xfree. 2004-01-30 17:12:40 +00:00
atimer.c * syssignal.h: Declare main_thread. 2004-12-15 21:40:41 +00:00
atimer.h Update copyright. 2004-06-16 15:10:55 +00:00
blockinput.h Update copyright. 2004-06-16 15:10:55 +00:00
buffer.c (Fbuffer_disable_undo): Deleted (moved to simple.el). 2004-12-27 16:07:42 +00:00
buffer.h (struct buffer): Add auto_save_file_format field. 2004-09-08 02:21:45 +00:00
bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC. 2004-09-13 21:13:38 +00:00
callint.c (Fcall_interactively): Call Fread_from_minibuffer with extra argument. 2004-11-21 01:02:51 +00:00
callproc.c From: YAMAMOTO Mitsuharu 2004-11-02 10:10:35 +00:00
casefiddle.c (casify_region): Handle changes in byte-length using replace_range_2. 2004-11-02 09:12:51 +00:00
casetab.c
category.c (Fdefine_category, Fcategory_docstring) 2004-02-20 03:40:19 +00:00
category.h
ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1. 2004-06-13 00:22:19 +00:00
ccl.h
ChangeLog * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8 *** empty log message *** 2004-10-28 23:35:13 +00:00
ChangeLog.9
charset.c Fix SAFE_FREE calls. Replace SAFE_FREE_LISP calls. 2004-10-26 22:38:50 +00:00
charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings from GCC. 2004-04-04 21:00:49 +00:00
chpdef.h
cm.c
cm.h
cmds.c (Fend_of_line): Doc fix. 2004-02-16 19:12:46 +00:00
coding.c (code_convert_region): Fix calculation of `ratio'. 2004-12-27 05:51:40 +00:00
coding.h (run_pre_write_conversin_on_c_str): Extern it. 2004-11-30 08:01:45 +00:00
commands.h
composite.c *** empty log message *** 2003-12-26 11:39:22 +00:00
composite.h
config.in Regenerate. 2004-12-07 16:52:54 +00:00
COPYING
cxux-crt0.s
data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH. 2004-12-27 16:03:49 +00:00
dired.c Don't declare Fmsdos_downcase_filename. 2004-11-07 11:08:45 +00:00
dispextern.h * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
dispnew.c * syssignal.h: Declare main_thread. 2004-12-15 21:40:41 +00:00
disptab.h
doc.c Include <ctype.h>. 2004-11-09 13:23:00 +00:00
doprnt.c
dosfns.c * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in 2004-11-07 09:13:26 +00:00
dosfns.h
ecrt0.c
editfns.c Move #include "systime.h" before <sys/resource.h>. 2004-11-08 12:04:07 +00:00
emacs.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
epaths.in
eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH. 2004-12-27 16:02:24 +00:00
fileio.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
filelock.c (lock_file_1): Call get_boot_time early. Increase 2004-11-27 22:09:40 +00:00
filemode.c
firstfile.c
floatfns.c * syssignal.h: Declare main_thread. 2004-12-15 21:40:41 +00:00
fns.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
fontset.c (fontset_pattern_regexp): Cancel my previous change; 2004-11-08 00:38:48 +00:00
fontset.h
frame.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
frame.h (struct frame): New member force_flush_display_p. 2004-02-08 23:19:37 +00:00
fringe.c (update_window_fringes): Prefer truncation bitmaps over 2004-11-26 15:14:16 +00:00
getloadavg.c
getpagesize.h
gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(), before Cygwin unexec. 2004-04-12 19:41:56 +00:00
gnu.h
gtkutil.c * xmenu.c (popup_get_selection): Pop down on C-g. 2004-12-27 15:24:12 +00:00
gtkutil.h * gtkutil.h: Declare use_old_gtk_file_dialog. 2004-11-04 15:05:27 +00:00
hftctl.c
image.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0. 2004-12-12 18:16:53 +00:00
indent.h
insdel.c (insert_from_string_before_markers) 2004-12-02 23:37:13 +00:00
intervals.c (move_if_not_intangible): Force POSITION to be between BEGV and ZV. 2004-08-16 22:52:29 +00:00
intervals.h (NULL_INTERVAL_P): Add separate version when 2004-11-09 13:23:42 +00:00
ioctl.h
keyboard.c * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK 2004-12-23 22:17:56 +00:00
keyboard.h (kbd_buffer_unget_event): Add prototype. 2004-11-05 11:30:12 +00:00
keymap.c (Flookup_key): Check INTEGERP before XINT. 2004-11-23 05:08:09 +00:00
keymap.h (Fkey_description): Fix prototype. 2004-04-16 21:17:02 +00:00
lastfile.c * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF): 2004-10-20 16:23:30 +00:00
lisp.h Comment changes. 2004-12-27 16:05:57 +00:00
lread.c (syms_of_lread) <load-history>: Doc fix. 2004-12-27 15:58:59 +00:00
mac.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
macfns.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
macgui.h * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
macmenu.c * macterm.h (cfstring_create_with_utf8_cstring): Added prototype. 2004-12-03 17:00:11 +00:00
macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix. 2004-11-05 22:46:28 +00:00
macros.h
macterm.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
macterm.h * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
Makefile.in * keyboard.c: Don't undef SIGIO 2004-11-30 05:57:27 +00:00
makefile.w32-in * doc.c: New variable Vbuild_files. 2004-11-09 08:19:51 +00:00
marker.c
md5.c
md5.h
mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true. 2004-06-01 20:26:52 +00:00
minibuf.c (Fall_completions): Add var `zero' and use it in loop. 2004-12-12 18:15:22 +00:00
mktime.c
msdos.c * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in 2004-11-07 09:13:26 +00:00
msdos.h
ndir.h
param.h
point.h
pre-crt0.c
prefix-args.c
print.c (print_object): Fix format string. 2004-11-09 13:24:35 +00:00
process.c (list_processes_1): Set undo_list instead of calling Fbuffer_undo_list. 2004-12-27 16:06:43 +00:00
process.h * process.h: Add extern to synch_process_termsig. 2004-01-27 09:40:23 +00:00
puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT. 2004-09-14 20:53:18 +00:00
ralloc.c
README
regex.c (re_match_2_internal) <symend, wordend>: 2004-12-20 11:06:54 +00:00
regex.h (enum reg_errcode_t): New value REG_ERANGEX. 2004-10-24 03:58:24 +00:00
region-cache.c Move include stdio.h to same place as in other files. 2004-02-09 15:39:49 +00:00
region-cache.h
scroll.c
search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:' 2004-11-27 01:09:08 +00:00
sheap.c Changes from arch/CVS synchronization 2004-04-13 23:32:57 +00:00
sound.c
stamp-h.in
strftime.c
sunfns.c
syntax.c (Fforward_word): Avoid non-idempotent side-effects in macro arguments. 2004-12-11 21:59:15 +00:00
syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to 2004-06-13 15:30:31 +00:00
sysdep.c * syssignal.h: Declare main_thread. 2004-12-15 21:40:41 +00:00
sysselect.h
syssignal.h * syssignal.h: Declare main_thread. 2004-12-15 21:40:41 +00:00
systime.h
systty.h
syswait.h
temacs.opt
term.c (encode_terminal_code): Fix previous change. 2004-12-12 03:33:50 +00:00
termcap.c
termchar.h
termhooks.h (read_socket_hook): Fix prototype. 2004-02-27 23:48:49 +00:00
terminfo.c
termopts.h
textprop.c (syms_of_textprop): Add `syntax-table' to the nonsticky props. 2004-10-13 16:58:45 +00:00
tparam.c
uaf.h
undo.c (Vundo_outer_limit): Replaces undo_outer_limit. Uses changed. 2004-12-23 00:15:23 +00:00
unexaix.c
unexalpha.c
unexapollo.c
unexconvex.c
unexcw.c Changes from arch/CVS synchronization 2004-04-13 23:32:57 +00:00
unexec.c
unexelf.c
unexenix.c
unexhp9k800.c
unexmacosx.c config.in (HAVE_MALLOC_MALLOC_H): Regenerate 2004-10-08 18:38:17 +00:00
unexmips.c
unexnext.c
unexsni.c
unexsol.c
unexsunos4.c
unexw32.c
vlimit.h
vm-limit.c
w16select.c
w32.c (init_environment): Set emacs_dir correctly when running 2004-10-19 19:09:37 +00:00
w32.h
w32bdf.c
w32bdf.h
w32console.c (encode_terminal_code): Fix previous change. 2004-12-01 11:06:22 +00:00
w32fns.c Use fast_string_match_ignore_case for comparing font names. 2004-11-02 08:55:10 +00:00
w32gui.h
w32heap.c [USE_LSB_TAG]: Don't check heap location. 2004-05-18 07:53:53 +00:00
w32heap.h
w32inevt.c (w32_console_mouse_position, do_mouse_event, key_event): Don't mix 2004-05-17 20:44:46 +00:00
w32inevt.h (w32_console_mouse_position): Fix prototype. 2004-02-27 23:49:09 +00:00
w32menu.c (AppendMenuW_Proc): Move declaration to w32term.h. 2004-09-07 21:50:39 +00:00
w32proc.c Rename wait_reading_process_input to wait_reading_process_output. 2004-08-20 10:34:12 +00:00
w32reg.c
w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly 2004-06-30 23:30:39 +00:00
w32term.c * w32term.c (x_calc_absolute_position): Remove calculation of 2004-12-11 21:12:45 +00:00
w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c. 2004-09-07 21:49:14 +00:00
w32xfns.c
widget.c * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0. 2004-07-21 19:18:29 +00:00
widget.h
widgetprv.h
window.c (Fget_lru_window, Fget_largest_window): Doc fixes. 2004-12-02 23:24:43 +00:00
window.h (struct glyph_matrix): New members nrows_scale_factor 2004-07-21 21:08:56 +00:00
xdisp.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
xfaces.c * dispextern.h: Change HAVE_CARBON to MAC_OS. 2004-12-27 17:27:30 +00:00
xfns.c * xmenu.c (popup_get_selection): Pop down on C-g. 2004-12-27 15:24:12 +00:00
xmenu.c Indentation fix. 2004-12-27 15:58:25 +00:00
xrdb.c
xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string. 2004-12-22 06:32:30 +00:00
xsmfns.c * xsmfns.c: Put empty line between comment and function body. 2004-10-26 09:28:01 +00:00
xterm.c * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before 2004-12-15 21:34:14 +00:00
xterm.h * xmenu.c (x_menu_in_use): Removed. 2004-11-16 20:52:32 +00:00

This directory contains the source files for the C component of GNU Emacs.
Nothing in this directory is needed for using Emacs once it is built
and installed, if the dumped Emacs (on Unix systems) or the Emacs
executable and map files (on VMS systems) are copied elsewhere.

See the files ../README and then ../INSTALL for installation instructions.

Under GNU and Unix systems, the file `Makefile.in' is used as a
template by the script `../configure' to produce `Makefile.c'.  The
same script then uses `cpp' to produce the machine-dependent
`Makefile' from `Makefile.c'; `Makefile' is the file which actually
controls the compilation of Emacs.  Most of this should work
transparently to the user; you should only need to run `../configure',
and then type `make'.

See the file VMSBUILD in this directory for instructions on compiling,
linking and building Emacs on VMS.

The files `*.com' and `temacs.opt' are used on VMS only.
The files `vlimit.h', `ioclt.h' and `param.h' are stubs to
allow compilation on VMS with the minimum amount of #ifdefs.

`uaf.h' contains VMS uaf structure definitions.  This is only needed if
you define READ_SYSUAF.  This should only be done for single-user
systems where you are not overly concerned with security, since it
either requires that you install Emacs with SYSPRV or make SYSUAF.DAT
world readable.  Otherwise, Emacs can determine information about the
current user, but no one else.