1. 31 Mar, 1993 1 commit
    • Jim Blandy's avatar
      Put interrupt input blocking in a separate file from xterm.h. · 9ac0d9e0
      Jim Blandy authored
      	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.
      9ac0d9e0
  2. 28 Mar, 1993 1 commit
  3. 22 Mar, 1993 1 commit
  4. 20 Mar, 1993 1 commit
    • Jim Blandy's avatar
      * emacs.c (Finvocation_name): New function. · 59653951
      Jim Blandy authored
      	(Vinvocation_name): New variable.
      	(init_cmdargs): Set it.
      	(syms_of_emacs): defsubr Finvocation_name, staticpro and
      	initialize Vinvocation_name.
      	* lisp.h (Vinvocation_name): New extern declaration.
      	* xterm.c (invocation_name): Variable deleted; use
      	Vinvocation_name now.
      	(x_text_icon, x_term_init): Use Vinvocation_name now instead of
      	invocation_name.
      	(x_term_init): Don't initialize invocation_name.
      	(syms_of_xterm): Don't initialize or staticpro invocation_name.
      	* xfns.c (invocation_name): Remove extern declaration for this.
      	[HAVE_X11] (Fx_get_resource): Use Vinvocation_name now instead of
      	invocation_name.
      	[not HAVE_X11] (Fx_get_default): Same.
      59653951
  5. 11 Mar, 1993 1 commit
    • Jim Blandy's avatar
      * emacs.c (__do_global_ctors, __do_global_ctors_aux, · a90538cb
      Jim Blandy authored
      	__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__, __main): Don't
      	define these if ORDINARY_LINK is #defined; in that case, the
      	standard linking procedure will find definitions for these.
      
      	* emacs.c (main): SIGIOT isn't defined on all systems; don't set
      	its signal handler unless it is.
      a90538cb
  6. 23 Feb, 1993 1 commit
  7. 22 Feb, 1993 1 commit
  8. 26 Jan, 1993 1 commit
  9. 14 Jan, 1993 1 commit
    • Jim Blandy's avatar
      * emacs.c (shut_down_emacs): New function. · 40be253a
      Jim Blandy authored
      	(fatal_error_signal, Fkill_emacs): Call it, instead of writing it out.
      	* xterm.c (x_connection_closed): Call shut_down_emacs instead of
      	Fkill_emacs; the latter will try to perform operations on the X
      	server and die a horrible death.
      	* lisp.h (shut_down_emacs): Add extern declaration for it.
      40be253a
  10. 23 Oct, 1992 1 commit
  11. 11 Oct, 1992 2 commits
  12. 06 Oct, 1992 1 commit
  13. 01 Oct, 1992 1 commit
  14. 23 Sep, 1992 1 commit
  15. 14 Sep, 1992 1 commit
  16. 03 Sep, 1992 1 commit
  17. 02 Sep, 1992 1 commit
  18. 31 Aug, 1992 1 commit
  19. 29 Aug, 1992 1 commit
  20. 19 Aug, 1992 1 commit
  21. 12 Aug, 1992 1 commit
  22. 17 Jul, 1992 1 commit
  23. 13 Jul, 1992 1 commit
  24. 30 Jun, 1992 1 commit
  25. 10 May, 1992 1 commit
  26. 01 May, 1992 1 commit
  27. 18 Mar, 1992 1 commit
  28. 20 Feb, 1992 1 commit
  29. 16 Jan, 1992 1 commit
  30. 22 Oct, 1991 1 commit
  31. 06 Aug, 1991 1 commit
  32. 02 Aug, 1991 1 commit
  33. 24 Jul, 1991 1 commit
  34. 23 May, 1991 1 commit