1. 31 May, 1993 1 commit
  2. 30 May, 1993 2 commits
  3. 29 May, 1993 3 commits
  4. 28 May, 1993 1 commit
  5. 26 May, 1993 1 commit
  6. 25 May, 1993 3 commits
    • Jim Blandy's avatar
      Arrange for font names to get fully resolved - no wildcards. · b5cf7a0e
      Jim Blandy authored
      	* xfns.c (x_set_frame_parameters): Store the value in the frame
      	parameter alist before we call the setter function, so the setter
      	function can touch up the value if it chooses.
      	(x_set_foreground_color, x_set_background_color): Call
      	recompute_basic_faces, so their GC's will reflect the changes.
      	(x_new_font): Add extern declaration - this returns a Lisp_Object
      	now, the fully resolved font name.
      	(x_set_font): Accept the fully resolved name from x_new_font, and
      	put it in the frame's parameter alist.  Call recompute_basic_faces.
      	* xterm.c (x_new_font): Return the fully resolved font name, Qnil
      	(if no match), or Qt (match, but unacceptable metrics).
      	* xterm.c (x_new_font): Don't call init_frame_faces.
      
      	* xterm.h: New section for declarations for xfaces.c.
      	(init_frame_faces, free_frame_faces, intern_face,
      	face_name_id_number, same_size_fonts, recompute_basic_faces,
      	compute_char_face, compute_glyph_face): Declare these here.
      	* xfaces.c (same_size_fonts): We can now remove this extern
      	declaration.
      	* xfns.c (face_name_id_number): Likewise.
      	* xterm.c (intern_face): Likewise.
      
      	* xterm.c (dumpglyphs): Remember that the default faces can have
      	null fonts, too.
      b5cf7a0e
    • Jim Blandy's avatar
      * xfaces.c (merge_faces): You can't tell if a font is a · f126bd67
      Jim Blandy authored
      	character-cell font or not by testing whether or not it has a
      	per_char table.  They all do.
      	* xterm.c (x_new_font): Same deal.
      f126bd67
    • Richard M. Stallman's avatar
      (XTread_socket, ConfigureNotify case): · 3bd330d4
      Richard M. Stallman authored
      Convert from parent window, not Emacs window.
      (XTread_socket): Handle ReparentNotify events.
      
      (XTread_socket): For ConfigureNotify event,
      translate coordinates if send_event field is false
      provided the x-coord value is not large.
      3bd330d4
  7. 24 May, 1993 2 commits
  8. 23 May, 1993 2 commits
  9. 22 May, 1993 2 commits
  10. 20 May, 1993 1 commit
  11. 19 May, 1993 2 commits
  12. 16 May, 1993 1 commit
  13. 14 May, 1993 1 commit
    • Jim Blandy's avatar
      * xterm.c (dumpglyphs): Give the cursor higher priority than the · 4a4dc352
      Jim Blandy authored
      	face specified by the glyph under it.
      
      	* xterm.c (dumpglyphs): Move the underline up a row.  I dislike
      	the way X addresses pixels.  Quickdraw is much nicer.
      
      	* xterm.c (dumpglyphs): Pass the proper arguments to intern_face.
      
      	* xterm.c (dumpglyphs): Don't increment left twice.
      4a4dc352
  14. 10 May, 1993 1 commit
    • Jim Blandy's avatar
      * xdisp.c (display_text_line): Apply faces to characters · 07e34cb0
      Jim Blandy authored
      	according to overlays and text properties; use
      	compute_char_face and compute_glyph_face to figure out what
      	face to use, and where a new face starts.
      	* xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide
      	which frame face to use.  Call GLYPH_FOLLOW_ALIASES to make sure
      	we're implementing the glyph table properly.  If we're not using
      	the default or mode line face, call intern_face to find a display
      	face for the frame face selected by the glyph code.  Implement
      	underlining.  Remove the `font' argument; we have to derive this
      	from the frame and face anyway.  Change all callers.
      	* disptab.h (GLYPH_FOLLOW_ALIASES): New macro.
      
      	* xterm.c (x_destroy_window): Call free_frame_faces.
      07e34cb0
  15. 04 May, 1993 1 commit
    • Jim Blandy's avatar
      Implement extra_keyboard_modifiers properly. · dfeccd2d
      Jim Blandy authored
      	* keyboard.c (syms_of_keyboard): Doc fix for
      	extra-keyboard-modifiers; use the same modifier bits as we do for
      	characters.
      	(read_char): Apply all the modifiers in extra_keyboard_modifiers
      	to the input characters, so you can get hyper, super, and the rest
      	of the gang.
      	* xterm.c (x_emacs_to_x_modifiers): New function.
      	(x_convert_modifiers): Renamed to x_x_to_emacs_modifiers, for
      	consistency.  Callers changed.
      	(XTread_socket): Apply x_emacs_to_x_modifiers to
      	extra_keyboard_modifiers before setting the state member of the
      	event; this will get all the modifiers on ASCII characters.
      
      	* xterm.c (x_text_icon): Don't call XSetIconName; it should be
      	unnecessary, and perhaps it's killing the icon pixmap.
      dfeccd2d
  16. 07 Apr, 1993 2 commits
  17. 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
  18. 25 Mar, 1993 1 commit
  19. 20 Mar, 1993 2 commits
    • Jim Blandy's avatar
      * xterm.c (x_term_init): If the X connection is already in file · a4fc7360
      Jim Blandy authored
      	descriptor zero, don't dup it and close the old one.
      a4fc7360
    • 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
  20. 17 Mar, 1993 1 commit
  21. 15 Mar, 1993 1 commit
  22. 11 Mar, 1993 1 commit
  23. 08 Mar, 1993 1 commit
    • Richard M. Stallman's avatar
      (XTread_socket): · 10e6549c
      Richard M. Stallman authored
      Don't reverse the chars that XLookupString returns.  Use all of them.
      Save last 100 chars and keysyms in temp_buffer.
      10e6549c
  24. 07 Mar, 1993 1 commit
  25. 05 Mar, 1993 1 commit
  26. 02 Mar, 1993 1 commit
    • Jim Blandy's avatar
      Use the term `scroll bar', instead of `scrollbar'. · ab648270
      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.
      ab648270
  27. 22 Feb, 1993 1 commit
  28. 14 Feb, 1993 1 commit
    • Jim Blandy's avatar
      * xterm.c (x_set_window_size): Call change_frame_size instead of · 8922af5f
      Jim Blandy authored
      	just setting the `rows' and `cols' members of the frame, and
      	leaving the window tree in complete disarray.
      
      	* xterm.c (x_io_error_quitter): New function.
      	(x_error_quitter): Note that this is only used for protocol
      	errors now, not I/O errors.
      	(x_term_init): Set the I/O error handler to x_io_error_quitter.
      8922af5f
  29. 07 Feb, 1993 1 commit