1. 29 Jun, 1993 1 commit
  2. 24 Jun, 1993 1 commit
  3. 22 Jun, 1993 1 commit
    • Jim Blandy's avatar
      Separate parameter faces (those created and modified by the user) · 28f72798
      Jim Blandy authored
      	from the computed faces (the combinations created by
      	compute_char_face), so that we don't waste global face id's.
      	* xterm.h (struct x_display): Replace the fields faces and n_faces
      	with fields param_faces, n_param_faces, computed_faces,
      	n_computed_faces, and size_computed_faces.
      	(FRAME_FACES, FRAME_N_FACES): Replaced by...
      	(FRAME_COMPUTED_FACES, FRAME_N_COMPUTED_FACES, FRAME_PARAM_FACES,
      	FRAME_N_PARAM_FACES): New macros.
      	* xfaces.c: Doc fixes.
      	(init_frame_faces): Call new_computed_face to create entries for
      	the default and mode line faces.  Use the FRAME...PARAM_FACES
      	macros.
      	(free_frame_faces): Use the FRAME...PARAM_FACES and
      	FRAME...COMPUTED_FACES macros.  Don't use the copy flag; all
      	parameter faces have real X resources, and all computed faces just
      	have copies.  Free both the parameter and computed face arrays.
      	(new_computed_face): New function.
      	(intern_computed_face): Renamed from intern_frame_face; callers
      	changed.  Call new_computed_face.
      	(ensure_face_ready, compute_char_face, compute_glyph_face): Use the
      	FRAME...PARAM_FACES macros.
      	(recompute_basic_faces): Use the FRAME...PARAM_FACES and
      	FRAME...COMPUTED_FACES macros.  Produce the computed faces by
      	starting with the base faces and merging in the parameter faces.
      	(Fset_face_attribute_internal): Use the FRAME...PARAM_FACES
      	macros.  Just call recompute_basic_faces if the default or mode
      	line faces have changed.
      	* xfns.c (Fx_list_fonts): Use the FRAME...PARAM_FACES macros.
      	* xterm.c (dumpglyphs): Use the FRAME...COMPUTED_FACES macros.
      	* dispextern.h (struct face): Remove the copy member.  This is no
      	longer necessary; all computed faces are copies, and no parameter
      	faces are.
      28f72798
  4. 19 Jun, 1993 1 commit
  5. 13 Jun, 1993 1 commit
  6. 12 Jun, 1993 2 commits
  7. 11 Jun, 1993 2 commits
  8. 09 Jun, 1993 2 commits
  9. 07 Jun, 1993 1 commit
  10. 06 Jun, 1993 1 commit
  11. 04 Jun, 1993 1 commit
  12. 03 Jun, 1993 1 commit
  13. 31 May, 1993 2 commits
  14. 30 May, 1993 2 commits
  15. 29 May, 1993 3 commits
  16. 28 May, 1993 1 commit
  17. 26 May, 1993 1 commit
  18. 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
  19. 24 May, 1993 2 commits
  20. 23 May, 1993 2 commits
  21. 22 May, 1993 2 commits
  22. 20 May, 1993 1 commit
  23. 19 May, 1993 2 commits
  24. 16 May, 1993 1 commit
  25. 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
  26. 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
  27. 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