Commit graph

252 commits

Author SHA1 Message Date
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
50acda85ee (kbd_input_ast, read_input_waiting): Don't pass uninitialized
data to kbd_buffer_store_event.
2003-06-15 21:04:16 +00:00
Dave Love
b80263be1b Remove redundant include of unistd.h, stdlib.h. Use
HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
2003-06-12 22:14:31 +00:00
Kim F. Storm
90022f5a3e Make (few) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
2003-05-24 22:07:03 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Steven Tamm
3605200c46 Have emacs_read use sys_read on carbon/Mac OS X 2002-12-08 06:00:10 +00:00
Richard M. Stallman
612221ab83 (fcntl.h): Test only HAVE_FCNTL_H. 2002-12-04 11:44:34 +00:00
Dave Love
0c2338d819 (stuff_char) [PROTOTYPES]: Provide ISO C arglist. 2002-11-22 12:22:43 +00:00
Eli Zaretskii
feb67dfe47 [MSDOS]: Don't define request_sigio and
unrequest_sigio, they are defined on msdos.c.
2002-08-19 18:19:42 +00:00
Richard M. Stallman
7ce1c4de0e [!VMS]: Include sys/files.h. 2002-08-17 04:56:13 +00:00
Ken Raeburn
be3abfa2c3 (start_of_data): Don't define the function if a macro
form has been defined.
2002-07-24 02:07:41 +00:00
Ken Raeburn
5646864937 (end_of_text, end_of_data): Unused functions deleted. 2002-07-21 14:17:24 +00:00
Ken Raeburn
7b1cc11936 (emacs_write): Buffer pointer now const. 2002-07-19 14:37:13 +00:00
Ken Raeburn
8c2ba7decc (emacs_open, set_file_times): String pointer args now
point to const.
2002-07-16 19:49:00 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Richard M. Stallman
55fafcf080 (sys_signal): Test BROKEN_SA_RESTART. 2002-07-11 17:29:56 +00:00
Pavel Janík
e43bd4f5b2 *** empty log message *** 2002-06-13 15:00:02 +00:00
Andrew Choi
e0f712ba55 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
2002-04-26 23:39:06 +00:00
Stefan Monnier
0fdcb86754 (wait_for_termination): Use sigsuspend rather than sigpause. 2002-03-22 22:53:13 +00:00
Stefan Monnier
31ade731e6 Change defvar_int def and vars to use EMACS_INT instead of just int. 2002-03-04 23:41:00 +00:00
Eli Zaretskii
48178f9aaf (sys_subshell): Fix last change. 2002-03-04 20:15:56 +00:00
Eli Zaretskii
c0917202cf (sys_subshell) [MSDOS]: If PWD is set in the
environment, pass it down with corrected value.
2002-03-04 20:08:37 +00:00
Pavel Janík
7c15926f17 (init_system_name): Put unused variable `p' in #if 0. 2002-02-08 09:46:14 +00:00
Pavel Janík
4838e624ad Include <config.h>. 2002-01-01 19:15:26 +00:00
Richard M. Stallman
8a2a6032da Test GNU_LINUX, not LINUX. 2001-12-11 22:20:20 +00:00
Richard M. Stallman
2ea99a1e34 Comment change. 2001-11-19 14:47:58 +00:00
Pavel Janík
61851c0e95 (wait_for_kbd_input) [VMS]: Do not call clear_waiting_for_input with
argument.
2001-11-16 22:50:51 +00:00
Richard M. Stallman
5a04bfa984 (child_setup_tty): Don't clear ICRNL or INLCR. 2001-11-11 20:11:14 +00:00
Pavel Janík
dfe45eff10 (delete-exited-processes): Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-21 12:08:54 +00:00
Gerd Moellmann
402c9a5121 (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
Clear ICRNL and INLCR.  From Daiki Ueno <ueno@unixuser.org>.
2001-10-08 08:59:50 +00:00
Gerd Moellmann
32c82ac0a1 Don't define min/max. 2001-10-08 08:08:08 +00:00
Gerd Moellmann
59957f85f4 (wait_for_termination) [POSIX_SIGNALS]: Terminate
only if kill returns -1, and errno is ESRCH.
2001-09-21 14:09:22 +00:00
Gerd Moellmann
ac3ac8592f (wait_for_termination): Add a FIXME comment for the use of non-POSIX
sigpause.
2001-09-20 13:24:09 +00:00
Gerd Moellmann
18b6bc735c (getwd) [!HAVE_GETWD]: Unblock input before returning. 2001-04-05 14:59:37 +00:00
Gerd Moellmann
3007ebfbc7 Call redisplay_preserve_echo_area with additional arg. 2001-01-16 12:42:22 +00:00
Dave Love
1bfb134516 (random): Revert the declaration. 2001-01-10 11:54:41 +00:00
Gerd Moellmann
22b5642678 Update copyright. 2001-01-05 11:27:09 +00:00
Gerd Moellmann
ff4c29f42c Don't prototype srandom; it takes an unsigned argument
on some systems, and an unsigned long on others, like FreeBSD 4.1.
2001-01-05 11:26:08 +00:00
Dave Love
8296bbf80b (random, srandom): Declare explicitly. 2001-01-04 17:47:01 +00:00
Kenichi Handa
8581cd6424 Move the code for declaring h_errno after #include <netdb.h>. 2000-11-21 23:56:56 +00:00
Gerd Moellmann
5bdd7bdd78 (emacs_ospeed): New variable.
(toplevel): Don't declare ospeed extern.
(init_baud_rate): Use emacs_ospeed instead of ospeed.
2000-11-19 14:36:01 +00:00
Andrew Innes
ce424b260c (read_input_waiting): Remove extraneous argument to
read_socket_hook.
2000-11-05 21:42:41 +00:00
Andrew Choi
1a578e9be2 Initial check-in: changes for building Emacs under Mac OS.
2000-10-23  Andrew Choi  <akochoi@i-cable.com>

	* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.

	* dispnew.c [macintosh]: Include macterm.h.
	(init_display) [macintosh]: initialization for window system.

	* emacs.c (main) [macintosh]: Call syms_of_textprop,
	syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
	syms_of_search, x_term_init, and init_keyboard before calling
	init_window_once.  Also, call syms_of_xmenu.

	* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
	default fontset to Monaco.

	* frame.c [macintosh]: Include macterm.h.  Remove declarations of
	NewMacWindow and DisposeMacWindow.
	(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
	instead of calling NewMacWindow and setting fields of
	f->output_data.mac directly.  Call init_frame_faces.
	(Fdelete_frame) [macintosh]: Remove unused code.
	(Fmodify_frame_parameters) [macintosh]: Call
	x_set_frame_parameters instead of mac_set_frame_parameters.

	* frame.h [macintosh]: Define menu_bar_lines field in struct
	frame.  Define FRAME_EXTERNAL_MENU_BAR macro.

	* keyboard.c [macintosh]: Include macterm.h.
	(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
	and menu_bar_activate_event type events as for X and NT.
	(make_lispy_event) [macintosh]: Construct lisp events of type
	MENU_BAR_EVENT as for X and NT.

	* sysdep.c [macintosh]: Remove declaration for sys_signal.
	Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
	(sys_subshell) [macintosh]: Remove definition entirely.
	(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
	Vwindow_system_version here.  Remove initialization of
	Vx_bitmap_file_path.
	(read_input_waiting): Correct the number of parameters passed to
	read_socket_hook.
	Move all Macintosh functions to mac/mac.c.

	* term.c [macintosh]: Include macterm.h.

	* window.c [macintosh]: Include macterm.h.

	* xdisp.c [macintosh]: Include macterm.h.  Declare
	set_frame_menubar and pending_menu_activation.
	(echo_area_display) [macintosh]: Do not return if terminal frame
	is the selected frame.
	(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
	Allow only the selected frame to set menu bar.
	(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
	calling FRAME_EXTERNAL_MENU_BAR (f).
	(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).

	* xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
	and check_x.  Declare XCreateGC.  Define x_create_gc and
	x_free_gc.  Initialize font_sort_order.
	(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
	but call x_list_fonts instead of w32_list_fonts.
	(Finternal_face_x_get_resource) [macintosh]: Do not call
	display_x_get_resource.
	(prepare_face_for_display) [macintosh]: Set xgcv.font.
	(realize_x_face) [macintosh]: Load the font if it is specified in
	ATTRS.
	(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
	to Qt.

	* cus-edit.el (custom-button-face): Use 3D look for mac.
	(custom-button-pressed-face): Likewise.

	* faces.el (set-face-attributes-from-resources): Handle mac frames
	in the same way as x and w32 frames.
	(face-valid-attribute-values): Likewise.
	(read-face-attribute): Likewise.
	(defined-colors): Likewise.
	(color-defined-p): Likewise.
	(color-values): Likewise.
	(display-grayscale-p): Likewise.
	(face-set-after-frame-default): Likewise.
	(mode-line): Same default face as for x and w32.
	(tool-bar): Likewise.

	* frame.el: Remove call to frame-notice-user-settings at end of
	the file.

	* info.el (Info-fontify-node): make underlines invisible for mac
	as for x, pc, and w32 frame types.

	* term/mac-win.el: New file.
2000-10-22 16:50:16 +00:00
Dave Love
789cf80815 Don't include string.h.
(h_errno): Declare conditional also on TRY_AGAIN.
2000-10-06 22:51:10 +00:00
Andrew Innes
e36ec798cc Include keyboard.h before frame.h.
(NULL) [WINDOWSNT]: Define NULL if not defined.
[USE_CRT_DLL]: Remove unnecessary extern, which screws
up dllimport attributes.
2000-08-22 22:40:16 +00:00
Gerd Moellmann
38b74a2e47 (run_mac_command, closedir): Use xfree' instead of free'. 2000-08-05 19:29:39 +00:00
Gerd Moellmann
7f77dbe3b0 (opendir, GetTempDirName, run_mac_command): Use xmalloc
instead of malloc.
(run_mac_command, closedir): Use `xfree' instead of `free'.
2000-08-05 19:26:46 +00:00
Dave Love
c8875a656c Undefine setpgrp before setting it. 2000-06-23 16:35:41 +00:00
Gerd Moellmann
8972339502 (sigprocmask_set): New variable. 2000-06-20 18:31:36 +00:00
Dave Love
d3eb3bfac8 Conditionally include stdlib.h, unistd.h.
(VFORK_RETURN_TYPE): Remove.
2000-06-02 15:44:45 +00:00