emacs/src
Jim Blandy 9ac0d9e041 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:55:33 +00:00
..
m (NO_PTY_H): Defined. 1993-03-29 04:35:00 +00:00
s New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the 1993-03-30 23:07:47 +00:00
.gdbinit Doc fix. 1993-03-13 21:14:27 +00:00
abbrev.c * abbrev.c (Fexpand_abbrev): Only copy the text we're going to 1993-02-23 14:17:11 +00:00
acldef.h entered into RCS 1992-01-13 21:48:03 +00:00
alloc.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
blockinput.h Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
buffer.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
buffer.h (struct buffer): Field `fieldlist' deleted. 1993-03-27 18:04:02 +00:00
bytecode.c * bytecode.c (Fbyte_code): Pass the correct number of arguments to 1993-02-22 14:23:26 +00:00
callint.c (check_mark): Error if mark is not active. 1993-03-07 09:31:37 +00:00
callproc.c New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the 1993-03-30 23:05:56 +00:00
casefiddle.c * callint.c (Fcall_interactively): Pass the correct number of 1993-02-22 14:48:45 +00:00
casetab.c * callint.c (Fcall_interactively): Pass the correct number of 1993-02-22 14:48:45 +00:00
chpdef.h entered into RCS 1992-01-13 21:48:03 +00:00
cm.c entered into RCS 1992-01-13 21:48:03 +00:00
cm.h entered into RCS 1992-07-14 23:23:55 +00:00
cmds.c * cmds.c (overwrite_binary_mode): Deleted; this implements the 1993-03-16 18:18:05 +00:00
commands.h JimB's changes since January 18th 1993-01-26 01:58:16 +00:00
config.in * config.h.in (HAVE_XFREE386): New flag, set by configure script. 1993-03-25 01:15:34 +00:00
data.c Rename int-to-string to number-to-string, since it can handle 1993-03-30 21:21:49 +00:00
dired.c (searchbuf): Declare here. 1993-03-25 17:56:41 +00:00
dispextern.h (struct face): New fields pixmap_h, pixmap_w. 1993-03-28 05:23:45 +00:00
dispnew.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
disptab.h (DISP_INVIS_VECTOR): Renamed from DISP_INVIS_ROPE. 1993-03-05 23:52:24 +00:00
doc.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
doprnt.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
editfns.c (Fchar_equal): Don't ignore high bits of character. 1993-03-27 04:20:05 +00:00
emacs.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
environ.c entered into RCS 1990-11-12 20:20:40 +00:00
epaths.in entered into RCS 1992-05-01 06:20:52 +00:00
eval.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
fileio.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
filelock.c entered into RCS 1992-06-30 13:55:35 +00:00
floatfns.c * floatfns.c (logb): Add extern declaration for this. 1993-03-15 20:17:07 +00:00
fns.c Rename int-to-string to number-to-string, since it can handle 1993-03-30 21:21:49 +00:00
frame.c (make_frame): Init face_alist field. 1993-03-29 05:16:56 +00:00
frame.h (struct frame): New field face_alist. 1993-03-28 05:24:23 +00:00
gnu.h entered into RCS 1992-09-13 11:44:06 +00:00
hftctl.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
indent.c (current_column, Findent_to, position_indentation): 1993-03-23 00:54:49 +00:00
indent.h entered into RCS 1992-01-13 21:48:03 +00:00
insdel.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
intervals.c (set_point): Check invisibility of following character, not previous character. 1993-03-10 05:12:42 +00:00
intervals.h Declare Qcategory, Qlocal_map. Declare textget, get_local_map. 1993-03-07 23:45:23 +00:00
ioctl.h entered into RCS 1992-01-13 21:48:03 +00:00
keyboard.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
keyboard.h * keyboard.h (internal_last_event_frame): This should be extern, 1993-03-14 21:43:17 +00:00
keymap.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
lastfile.c entered into RCS 1992-01-13 21:48:03 +00:00
line.h entered into RCS 1992-01-13 21:48:03 +00:00
lisp.h Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
lread.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
macros.c (Fend_kbd_macro): Fix call to make_event_array. 1993-03-05 23:55:44 +00:00
macros.h entered into RCS 1992-01-13 21:48:03 +00:00
Makefile.in Added unlock and relock. 1993-03-19 05:27:03 +00:00
marker.c entered into RCS 1992-01-13 21:48:03 +00:00
mem-limits.h * mem-limits.h [DATA_SEG_BITS] (EXCEEDS_LISP_PTR): Remember to 1992-11-16 00:45:34 +00:00
minibuf.c * minibuf.c (Fdisplay_completion_list): Pass the proper number of 1993-02-22 15:09:33 +00:00
mocklisp.c Rename int-to-string to number-to-string, since it can handle 1993-03-30 21:21:49 +00:00
mocklisp.h entered into RCS 1992-01-13 21:48:03 +00:00
ndir.h entered into RCS 1992-01-13 21:48:03 +00:00
old-ralloc.c entered into RCS 1990-11-12 20:20:40 +00:00
param.h entered into RCS 1992-01-13 21:48:03 +00:00
point.h entered into RCS 1992-01-13 21:48:03 +00:00
pre-crt0.c entered into RCS 1992-01-13 21:48:03 +00:00
print.c (PRINTPREPARE): Handle marker that points nowhere. 1993-03-15 06:02:29 +00:00
process.c New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the 1993-03-30 23:05:56 +00:00
process.h New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the 1993-03-30 23:05:56 +00:00
puresize.h entered into RCS 1992-01-13 21:48:03 +00:00
ralloc.c [! emacs] [HAVE_CONFIG_H]: #include "config.h" 1992-12-29 21:58:10 +00:00
regex.c *** empty log message *** 1993-03-09 17:03:08 +00:00
regex.h *** empty log message *** 1993-01-14 20:38:21 +00:00
scroll.c * scroll.c (do_scrolling): When bcopying the max_ascent field from 1992-12-24 06:13:57 +00:00
search.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
sink.h entered into RCS 1992-01-13 21:48:03 +00:00
sink11.h entered into RCS 1992-01-13 21:48:03 +00:00
sink11mask.h entered into RCS 1992-01-13 21:48:03 +00:00
sinkmask.h entered into RCS 1992-09-13 11:44:06 +00:00
sunfns.c * frame.c (make_frame_without_minibuffer, Fwindow_frame): Use 1992-10-19 18:33:14 +00:00
syntax.c (describe_syntax_1): Delete excess arg to describe_vector. 1993-03-02 17:21:05 +00:00
syntax.h entered into RCS 1992-09-02 23:42:24 +00:00
sysdep.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
syssignal.h * syssignal.h (sigunblock): Add definition which works under SYSVr4. 1993-03-11 07:16:39 +00:00
systime.h * systime.h (EMACS_HAS_USECS): #define this if HAVE_TIMEVAL is 1993-03-20 22:58:21 +00:00
systty.h [NO_PTY_H]: Don't include pty.h. 1993-03-29 04:34:46 +00:00
term.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
termchar.h entered into RCS 1992-07-13 20:56:17 +00:00
termhooks.h (selection_request_event, selection_clear_event): New event kinds. 1993-03-15 05:43:15 +00:00
terminfo.c entered into RCS 1992-01-13 21:48:03 +00:00
termopts.h entered into RCS 1992-07-14 23:23:55 +00:00
textprop.c * textprop.c (Fadd_text_properties): Initialize the modified flag. 1993-03-11 07:17:54 +00:00
uaf.h entered into RCS 1992-01-13 21:48:03 +00:00
undo.c (record_property_change, record_delete, record_insert): 1993-03-15 06:03:33 +00:00
unexaix.c entered into RCS 1992-02-22 21:15:26 +00:00
unexconvex.c entered into RCS 1992-01-13 21:48:03 +00:00
unexec.c * unexec.c (copy_text_and_data): Error message tweaked. 1993-03-11 07:18:15 +00:00
unexelf.c (unexec): Move data2 section header up so all section 1993-03-03 09:03:06 +00:00
unexencap.c Initial revision 1992-01-13 22:04:23 +00:00
unexenix.c entered into RCS 1992-01-13 21:48:03 +00:00
unexfx2800.c entered into RCS 1992-01-31 21:19:17 +00:00
unexhp9k800.c (unexec): Don't call exit, just return. 1993-01-07 10:22:16 +00:00
unexmips.c [sony, IRIS_4D]: Include getpagesize.h and fcntl.h. 1992-10-27 19:42:55 +00:00
unexnext.c entered into RCS 1992-10-06 04:54:56 +00:00
unexsunos4.c * unexsunos4.c: Deleted "$Log" header in comments at top of file; 1992-08-12 14:23:38 +00:00
vlimit.h entered into RCS 1992-01-13 21:48:03 +00:00
vm-limit.c (check_memory_limits): Declare __morecore. 1992-10-15 23:44:00 +00:00
vms-pp.c entered into RCS 1992-01-13 21:48:03 +00:00
vms-pwd.h entered into RCS 1992-01-13 21:48:03 +00:00
vmsdir.h entered into RCS 1992-01-13 21:48:03 +00:00
vmsfns.c entered into RCS 1992-01-13 21:48:03 +00:00
vmsmap.c entered into RCS 1992-01-13 21:48:03 +00:00
vmspaths.h Some VMS changes from Richard Levitte <levitte@e.kth.se>: 1993-03-19 17:28:14 +00:00
vmsproc.c entered into RCS 1992-01-13 21:48:03 +00:00
vmsproc.h entered into RCS 1992-01-13 21:48:03 +00:00
vmstime.c Add GNU copyright notice. 1993-03-15 00:16:34 +00:00
vmstime.h Add GNU copyright notice. 1993-03-15 00:16:34 +00:00
window.c (Fselect_window): Use Fhandle_switch_frame. 1993-03-21 06:50:50 +00:00
window.h (struct window): New fields base_line_number and base_line_pos. 1993-03-21 23:06:23 +00:00
x11term.h entered into RCS 1992-05-01 06:20:52 +00:00
xdisp.c (display_string, display_text_line): Allow tab_width up to 1000. 1993-03-23 00:54:20 +00:00
xfaces.c * xfaces.c: Doc fixes. 1993-03-31 10:47:13 +00:00
xfns.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
xmenu.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
xrdb.c * xrdb.c (get_user_db): Since xrdb.c doesn't #include xterm.h, 1993-03-11 07:18:48 +00:00
xscrollbar.h entered into RCS 1992-01-13 21:48:03 +00:00
xselect.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
xselect.c.old JimB's changes since January 18th 1993-01-26 01:58:16 +00:00
xterm.c Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
xterm.h Put interrupt input blocking in a separate file from xterm.h. 1993-03-31 10:55:33 +00:00
XTests.c entered into RCS 1992-01-13 21:48:03 +00:00
XTests.h entered into RCS 1992-01-13 21:48:03 +00:00