1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 10:11:05 -08:00
Commit graph

10633 commits

Author SHA1 Message Date
Jim Blandy
357f32fcd0 * xfaces.c: Doc fixes.
Put interrupt input blocking in a separate file from xterm.h.
	This isn't specific to X, and it allows us to avoid #including
	xterm.h in files that don't really have anything to do with X.
	* blockinput.h: New file.
	* xterm.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT,
	UNBLOCK_INPUT_RESIGNAL): These are now in blockinput.h.
	(x_input_blocked, x_pending_input): Deleted; there are analogs
	in blockinput.h called interrupt_input_blocked and
	interrupt_input_pending.
	* keyboard.c (interrupt_input_blocked, interrupt_input_pending):
	New variables, used by the macros in blockinput.h.
	* xterm.c: #include blockinput.h.
	(x_input_blocked, x_pending_input): Deleted.
	(XTread_socket): Test and set interrupt_input_blocked and
	interrupt_input_pending instead of the old variables.
	* alloc.c, xfaces.c, xfns.c, xmenu.c, xselect.c, keymap.c:
	#include blockinput.h.
	* eval.c: #include blockinput.h instead of xterm.h.
	* keyboard.c: #include blockinput.h.
	(input_poll_signal): Just test
	interrupt_input_blocked, instead of testing HAVE_X_WINDOWS and
	x_input_blocked.

	Block the processing of interrupt input while we're manipulating the
	malloc heap.
	* alloc.c: (xfree): New function, to make it easy to free things
	safely.
	(xmalloc, xrealloc): Block X input while doing the deed.
	(VALIDATE_LISP_STORAGE, gc_sweep, compact_strings): Use xfree
	instead of free.
	(uninterrupt_malloc): New function, to install input-blocking
	hooks into the GNU malloc routines.
	* emacs.c [not SYSTEM_MALLOC] (main): Call uninterrupt_malloc
	on startup.
	* alloc.c: (make_interval, make_float, Fcons, Fmake_vector,
	Fmake_symbol, Fmake_marker, make_uninit_string, Fgarbage_collect):
	Use xmalloc instead of malloc; don't bother to check if out of
	memory here.
	(Fgarbage_collect): Call xrealloc instead of realloc.
	* buffer.c: Use xmalloc and xfree instead of malloc and free;
	don't bother to check if out of memory here.
	(Fget_buffer_create): Put BLOCK_INPUT/UNBLOCK_INPUT pair around
	calls to ralloc routines.
	* insdel.c: Same.
	* lisp.h (xfree): New extern declaration.
	* xfaces.c (xfree): Don't #define this to be free; use the
	definition in alloc.c.
	* dispnew.c, doc.c, doprnt.c, fileio.c, lread.c, term.c, xfns.c,
	xmenu.c, xterm.c: Use xfree instead of free.
	* hftctl.c: Use xfree and xmalloc instead of free and malloc.
	* keymap.c (current_minor_maps): BLOCK_INPUT while calling realloc
	and malloc.
	* search.c: Since the regexp routines can malloc, BLOCK_INPUT
	while runing them.  #include blockinput.h.
	* sysdep.c: #include blockinput.h.  Call xfree and xmalloc instead
	of free and malloc.  BLOCK_INPUT around routines which we know
	will call malloc.

	ymakefile (keyboard.o, keymap.o, search.o, sysdep.o, xfaces.o,
	xfns.o, xmenu.o, xterm.o, xselect.o, alloc.o, eval.o): Note that
	these depend on blockinput.h.
1993-03-31 10:47:13 +00:00
Jim Blandy
33f9662a64 Initial revision 1993-03-31 08:13:16 +00:00
Jim Blandy
734fef9492 * keyboard.c (parse_modifiers, apply_modifiers): Make sure we're
not trying to create modifier masks using integers which are
	unrepresentable as lisp values.
1993-03-31 07:19:25 +00:00
Richard M. Stallman
e5176baef5 (Fwrite_region): Don't fail to set visit_file. 1993-03-31 07:05:20 +00:00
Richard M. Stallman
04904c29df (read_char): Clear Vquit_flag when we return C-g for it. 1993-03-31 07:04:46 +00:00
Jim Blandy
9cbfb5e4b1 New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the
equivalent of /dev/null, and the suffixes used by executable
	files.  This is simple, and helps people porting Emacs to other
	operating systems.
	* process.h (NULL_DEVICE): Give this a default value.
	* process.c (Fstart_process): Pass EXEC_SUFFIXES to openp.
	(Fprocess_send_eof): Use NULL_DEVICE instead of "/dev/null".
	* callproc.c (Fcall_process): Pass EXEC_SUFFIXES to openp.
	Use NULL_DEVICE instead of "/dev/null".
	* s/vms.h (NULL_DEVICE): #define this.
1993-03-30 23:07:47 +00:00
Jim Blandy
5437e9f97e New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the
equivalent of /dev/null, and the suffixes used by executable
	files.  This is simple, and helps people porting Emacs to other
	operating systems.
	* process.h (NULL_DEVICE): Give this a default value.
	* process.c (Fstart_process): Pass EXEC_SUFFIXES to openp.
	(Fprocess_send_eof): Use NULL_DEVICE instead of "/dev/null".
	* callproc.c (Fcall_process): Pass EXEC_SUFFIXES to openp.
	Use NULL_DEVICE instead of "/dev/null".
1993-03-30 23:05:56 +00:00
Jim Blandy
f298026408 Rename int-to-string to number-to-string, since it can handle
floating-point as well as integer arguments.  subr.el defines the
	former as an alias for the latter.
	* data.c (Fnumber_to_string): Renamed from Fint_to_string.
	(wrong_type_argument): Adjust caller.
	(syms_of_data): Adjust defsubr.
	* fns.c (concat): Adjust caller.
	* lisp.h (Fnumber_to_string): Adjust extern declaration.
	* mocklisp.c (Finsert_string): Adjust caller.
	* process.c (status_message): Adjust caller.
1993-03-30 21:21:49 +00:00
Richard M. Stallman
306cc90259 (make_frame): Init face_alist field. 1993-03-29 05:16:56 +00:00
Richard M. Stallman
418b4f05a9 (NO_PTY_H): Defined. 1993-03-29 04:35:00 +00:00
Richard M. Stallman
372d3c2eca [NO_PTY_H]: Don't include pty.h. 1993-03-29 04:34:46 +00:00
Richard M. Stallman
d125ae6dd3 [USG5_4]: Alternate defining of LIBS_SYSTEM,
LIBX11_SYSTEM, HAVE_RANDOM, BSTRING.
1993-03-29 01:41:58 +00:00
Richard M. Stallman
4ad827c5ef (Fexpand_file_name): Default DEFALT at beginning,
before expanding it.  But avoid unneeded or infinite recursive expand.

(Fwrite_region): Set visit_file after expanding file arg.
Also expand VISIT arg if specified.
1993-03-28 08:29:21 +00:00
Richard M. Stallman
75c0b14392 (command_loop_1): Clear force_start of selected_window
after reading each key sequence.
1993-03-28 08:27:34 +00:00
Richard M. Stallman
fb63ba7de5 (struct frame): New field face_alist. 1993-03-28 05:24:23 +00:00
Richard M. Stallman
4208730106 (struct face): New fields pixmap_h, pixmap_w.
Field `font' is now a pointer.
1993-03-28 05:23:45 +00:00
Richard M. Stallman
13bd51a568 (FRAME_FACES, FRAME_N_FACES, FRAME_DEFAULT_FACE)
(FRAME_MODE_LINE_FACE): New macros.
(struct x_display): New fields faces, n_faces.
1993-03-28 05:22:46 +00:00
Richard M. Stallman
97832bd0c8 (Freplace_match): Clean up criterion about converting case.
If old text has any capitalized words, capitalize new text.
1993-03-28 05:21:24 +00:00
Richard M. Stallman
9c3f23b7e7 (main): Call syms_of_xfaces. 1993-03-28 05:20:42 +00:00
Jim Blandy
f211082d1e *** empty log message *** 1993-03-27 18:32:23 +00:00
Richard M. Stallman
440d350c2f (struct buffer): Field `fieldlist' deleted.
(OVERLAY_START, OVERLAY_END, OVERLAY_VALID): New macros.
(OVERLAY_POSITION): Likewise.
(searchbuf): Decl deleted--doesn't belong here.
Delete include of regex.h for VMS.
1993-03-27 18:04:02 +00:00
Richard M. Stallman
2eec3b4e0c (init_buffer_once, reset_buffer):
Delete last vestige of fieldlist slot.
(Fregion_fields): Finally deleted.

(overlays_at, recenter_overlay_lists): New functions.
(Fmake_overlay, Fdelete_overlay, Foverlay_get, Foverlay_put): Likewise.
(Fmove_overlay, Foverlays_at, Fnext_overlay_change): Likewise.
(Foverlay_lists, Foverlay_recenter): Likewise.
1993-03-27 18:03:10 +00:00
Richard M. Stallman
c34beca954 (Fchar_equal): Don't ignore high bits of character. 1993-03-27 04:20:05 +00:00
Jim Blandy
c3498e6438 * xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3;
access the display structure directly.
1993-03-25 23:27:42 +00:00
Richard M. Stallman
c7e466e10b (searchbuf): Declare here. 1993-03-25 17:56:41 +00:00
Richard M. Stallman
48dfbc2f80 (mark_object): Mark face_alist of a frame. 1993-03-25 17:44:56 +00:00
Richard M. Stallman
a63f658b55 (Fy_or_n_p): Ensure cursor_in_echo_area = 0 when quit. 1993-03-25 06:32:43 +00:00
Jim Blandy
b2e521948e * dispnew.c (getenv): Add extern declaration. 1993-03-25 04:17:01 +00:00
Jim Blandy
f040093a19 Fix typo. 1993-03-25 04:08:11 +00:00
Jim Blandy
d460af17a8 * dispnew.c (init_display): Get display name from environment
properly on VMS as well as Unix.
1993-03-25 02:54:23 +00:00
Jim Blandy
35014b9f53 * keymap.c (Fkeymapp): Doc fix. 1993-03-25 02:45:35 +00:00
Jim Blandy
c6c6865d43 * process.c [VMS] (DCL_PROMPT): Remove hack.
(WIFSTOPPED, WIFSIGNALED, WIFEXITED, XRETCODE, WSTOPSIG,
	WCOREDUMP, WTERMSIG): New dummy definitions.
	(deactivate_process): Add missing semicolon.
1993-03-25 02:27:16 +00:00
Jim Blandy
0a93081cd2 * xfns.c [VMS]: Get the gray_bits from [.bitmaps]gray.xbm. 1993-03-25 02:16:10 +00:00
Jim Blandy
f802f8e0a0 * xterm.h (x_focus_frame): Add extern keyword to declaration. 1993-03-25 02:12:14 +00:00
Jim Blandy
febf25d56f * xterm.c [VMS]: Don't #include <sys/termio.h> and <string.h>. 1993-03-25 02:11:11 +00:00
Jim Blandy
723d4d15ae * config.h.in (HAVE_XFREE386): New flag, set by configure script.
If it's set, #define LIBX11_SYSTEM and HAVE_RANDOM as appropriate
	for XFree386.
	* sysdep.c (random, srandom): Don't define these if HAVE_RANDOM is
	#defined.
1993-03-25 01:15:34 +00:00
Richard M. Stallman
71ac885b6f (push_key_description): Ignore bits above meta_modifier. 1993-03-24 10:05:49 +00:00
Jim Blandy
7b7739b106 *** empty log message *** 1993-03-24 02:48:44 +00:00
Jim Blandy
6afb1d07c2 * xfns.c (x_make_gc): Don't forget to block X input around the
X calls in this function.

	* xfns.c [not HAVE_X11R4] (select_visual): It's v->visualid, not
	x->visualid.  x isn't defined.
1993-03-24 01:54:20 +00:00
Jim Blandy
e6b01c14b7 * keyboard.c [POLL_FOR_INPUT] (quit_throw_to_read_char): If
we're polling for input, abort; input polling should always be
	suppressed while we're waiting for input.

	* keyboard.c (interrupt_signal): Remove extern declaration of
	Vwindow_system; this is no longer used.
1993-03-24 01:53:00 +00:00
Jim Blandy
1315c181f5 * dispnew.c (init_display): Initialize Vwindow_system. 1993-03-24 01:51:35 +00:00
Jim Blandy
1e95ed28db * keyboard.c (Fsuspend_emacs):
Change suspend-hooks back to suspend-hook and make it a normal hook.
1993-03-24 01:46:10 +00:00
Jim Blandy
c115973b6d Initial revision 1993-03-23 08:06:31 +00:00
Jim Blandy
9927a7b1aa * sysdep.c (random, srandom): Don't define these if HAVE_RANDOM is
#defined.
1993-03-23 06:26:18 +00:00
Jim Blandy
90e80f3c34 * config.h.in (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): New flags.
* ymakefile (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): Provide default
	values.  Include C_SWITCH_X_SITE in CFLAGS, include
	LD_SWITCH_X_SITE in LIBX, and pass C_SWITCH_X_SITE to the make
	which builds the X Menu library.
1993-03-23 05:57:11 +00:00
Jim Blandy
8af1d7ca2b * xfns.c (Fx_parse_geometry): Renamed from Fx_geometry.
(Fx_color_defined_p): Renamed from Fx_defined_color.
	(syms_of_xfns): Adjusted.
1993-03-23 04:58:07 +00:00
Richard M. Stallman
ccdcf1f540 (current_column, Findent_to, position_indentation):
(Fmove_to_column, compute_motion): Allow tab_width up to 1000.
1993-03-23 00:54:49 +00:00
Richard M. Stallman
54ff581a6f (display_string, display_text_line): Allow tab_width up to 1000. 1993-03-23 00:54:20 +00:00
Richard M. Stallman
a100548014 Decide automatically whether to use COFF or ELF. 1993-03-22 19:50:35 +00:00
Richard M. Stallman
cb421be80a (init_cmdargs): Fix simple bug in previous change. 1993-03-22 07:00:47 +00:00