1. 22 May, 1993 1 commit
  2. 18 May, 1993 1 commit
  3. 14 May, 1993 1 commit
    • Jim Blandy's avatar
      * lisp.h (Lisp_Overlay): New tag. · 20280af7
      Jim Blandy authored
      	(OVERLAYP): New predicate.
      	(CHECK_OVERLAY): New type-checker.
      	(Qoverlayp): New extern declaration.
      	* buffer.c (Foverlayp): New function.
      	(Qoverlayp): New atom.
      	(overlays_at, recenter_overlay_lists): Abort if we encounter an
      	invalid overlay.
      	(syms_of_buffer): defsubr Soverlayp; initialize Qoverlayp.
      	(Fdelete_overlay): Set the overlay's markers to point nowhere.
      	Use CHECK_OVERLAY instead of signalling a special error.
      	(Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of
      	signalling a special error.
      	(Foverlay_get): Use CHECK_OVERLAY.
      	* fns.c (internal_equal): Define this for overlays.
      	* buffer.h (OVERLAY_VALID): Define in terms of OVERLAYP.
      	* print.c (print): Give overlays their own print syntax.
      	* alloc.c (mark_object): Treat overlays like conses.
      	* lisp.h (FLOATP): Define this appropriately when LISP_FLOAT_TYPE
      	is not defined.
  4. 10 May, 1993 1 commit
  5. 04 May, 1993 2 commits
    • Jim Blandy's avatar
      * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT, CHAR_CTL, · d03f79ef
      Jim Blandy authored
      	CHAR_META): Shift these all up one bit, back to where they were.
    • Jim Blandy's avatar
      * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, in · 59b4254d
      Jim Blandy authored
      	case we need them.
      	* termhooks.h (alt_modifier, super_modifier, hyper_modifier,
      	shift_modifier, ctrl_modifier, meta_modifier): Define these in
      	terms of the CHAR_mumble macros, to avoid having the same thing
      	defined in two places.
      	Arrange for Fy_or_n_p to put off switch-frame events.
      	* lread.c (read_filtered_char): New function, which contains the
      	code which used to be in Fread_char, Fread_event, and
      	Fread_char_exclusive; there was a lot of common code.
      	(Fread_char, Fread_event, Fread_char_exclusive): Rewrite in terms
      	of read_filtered_char.
      	* lisp.h (read_filtered_char): Declare this extern here.
      	* fns.c (Fy_or_n_p): Call read_filtered_char, arranging to delay
      	switch-frame events.
      	Make the modifier manipulation functions more robust.  The old way
      	caused a bug once, and probably would again.
      	* termhooks.h (alt_modifier, super_modifier, hyper_modifier,
      	shift_modifier, ctrl_modifier, meta_modifier): Shift these all
      	down one bit in value, to avoid sign extension problems.
      	* lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too.
      	* keyboard.c (lispy_modifier_list): Ignore modifier bits beyond
      	what our table of modifier names can handle.
      	(apply_modifiers): Don't abort if you see extra modifier bits,
      	just remove them.
      	* lisp.h (Qrange_error, Qdomain_error, Qsingularity_error,
      	Qoverflow_error, Qunderflow_error): Add extern to these declarations.
  6. 29 Apr, 1993 1 commit
  7. 10 Apr, 1993 1 commit
  8. 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.
      	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
      	* 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
      	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
      	(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.
  9. 30 Mar, 1993 1 commit
    • Jim Blandy's avatar
      Rename int-to-string to number-to-string, since it can handle · f2980264
      Jim Blandy authored
      	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.
  10. 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
      	(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
      	[not HAVE_X11] (Fx_get_default): Same.
  11. 16 Mar, 1993 1 commit
  12. 15 Mar, 1993 1 commit
  13. 12 Mar, 1993 1 commit
  14. 05 Mar, 1993 1 commit
  15. 02 Mar, 1993 1 commit
    • Jim Blandy's avatar
      Use the term `scroll bar', instead of `scrollbar'. · f498e3b2
      Jim Blandy authored
      	* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
      	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
      	xterm.c, xterm.h: Terminology changed.
      	* xterm.c (x_window_to_scrollbar, x_scrollbar_expose,
      	x_scrollbar_handle_click, x_scrollbar_note_movement): Remember
      	that these can be called during GC; we have to ignore mark bits.
      	* lisp.h (GC_NILP, GC_EQ): New macros to help with that.
      	* lisp.h (RETURN_UNGCPRO): Remove "do ... while (0)" wrapper
      	around macro.
  16. 22 Feb, 1993 1 commit
  17. 14 Jan, 1993 1 commit
    • Jim Blandy's avatar
      * window.c (window_internal_width): New function. · 02213e82
      Jim Blandy authored
      	* lisp.h (window_internal_height, window_internal_width): Add
      	extern declarations for these.
      	* dispnew.c (direct_output_for_insert, direct_output_forward_char,
      	buffer_posn_from_coords): Use window_internal_width instead of
      	writing out its definition.
      	* indent.c (compute_motion): Doc fix; mention scrollbars and
      	(pos_tab_offset, Fvertical_motion): Use window_internal_width
      	instead of writing it out.
      	* window.c (Fpos_visible_in_window_p, Fwindow_width, Fscroll_left,
      	Fscroll_right): Same.
      	* xdisp.c (redisplay, try_window, try_window_id,
      	display_text_line): Same.
      	* emacs.c (shut_down_emacs): New function.
      	(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.
  18. 24 Dec, 1992 1 commit
    • Jim Blandy's avatar
      * keyboard.c (Qscrollbar_movement, Qvertical_scrollbar, · ea736298
      Jim Blandy authored
      	Qabove_handle, Qhandle, Qbelow_handle): New symbols.
      	(make_lispy_event): New code to build scrollbar clicks.
      	(make_lispy_movement): New code to handle scrollbar movement.
      	(head_table): Include Qscrollbar_movement in the event heads.
      	(syms_of_keyboard): Init and staticpro Qvertical_scrollbar,
      	Qabove_handle, Qhandle, and Qbelow_handle.
      	* keyboard.h (Qscrollbar_movement): Declare this along with the
      	other event types.
      	* lisp.h (Qvertical_scrollbar): Declare this.
      	* window.c (window_from_scrollbar): New function.
  19. 12 Dec, 1992 1 commit
    • Jim Blandy's avatar
      * fileio.c (find_file_handler): Rename this to · 997bf68d
      Jim Blandy authored
      	Ffind_file_name_handler, and make it visible to lisp.  Add a QUIT
      	to the loop which scans file-name-handler-alist.  All uses
      	(syms_of_fileio): Mention this new function in the docstring for
      	Vfile_name_handler_alist.  defsubr Sfind_file_name_handler.
      	* lisp.h (Ffind_file_name_handler): Added extern declaration.
      	* dired.c: All uses of find_file_handler changed here too.
  20. 07 Nov, 1992 1 commit
  21. 31 Oct, 1992 1 commit
    • Jim Blandy's avatar
      * lisp.h (Fdefault_boundp, make_float, Ffloat, Fnth, Fcopy_alist, · d20c2151
      Jim Blandy authored
      	Fmake_byte_code, Fverify_visited_file_modtime, Ffile_exists_p,
      	Fdirectory_file_name, Ffile_name_directory,
      	expand_and_dir_to_file, Ffile_accessible_directory_p, Fbyte_code,
      	Fundo_boundary, truncate_undo_list): Add extern declarations for
      	Removed these definitions; we should be using the versions whose
      	names use underscores.
  22. 19 Oct, 1992 1 commit
  23. 02 Oct, 1992 1 commit
  24. 01 Oct, 1992 1 commit
  25. 30 Sep, 1992 1 commit
  26. 22 Sep, 1992 1 commit
    • Jim Blandy's avatar
      * lisp.h (struct handler): Remove the poll_suppress_count member · 78ca380c
      Jim Blandy authored
      	of this structure; it is always equal to the poll_suppress_count
      	of its catchtag structure.  The non-local exit code in eval.c is
      	difficult enough to understand as it is; needless duplication
      	doesn't help.
      	* lisp.h (struct specbinding, struct handler): More documentation.
  27. 21 Sep, 1992 1 commit
  28. 19 Aug, 1992 1 commit
  29. 13 Jul, 1992 1 commit
  30. 30 Jun, 1992 1 commit
  31. 10 Jun, 1992 1 commit
  32. 07 Jun, 1992 1 commit
  33. 18 May, 1992 1 commit
  34. 10 May, 1992 1 commit
  35. 24 Apr, 1992 1 commit
  36. 28 Jan, 1992 1 commit
  37. 14 Jan, 1992 1 commit
  38. 04 Dec, 1991 1 commit
  39. 11 Aug, 1991 1 commit