1. 09 Jun, 2000 1 commit
  2. 08 Jun, 2000 1 commit
    • Gerd Moellmann's avatar
      (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which · eb72635f
      Gerd Moellmann authored
      will be translated to a switch-frame event in when reading the
      event queue.  This is necessary because Emacs otherwise won't
      perform a switch-frame to a new frame until some other event, for
      example a keystroke event, forces it to do so.  This has various
      effects, one visible being that the cursor of a frame created with
      C-x 5 2 or switched to with a window manager key binding like
      A-TAB stays hollow because selected_window isn't on the newly
      focused frame until the switch-frame is performed.
      eb72635f
  3. 06 Jun, 2000 1 commit
  4. 05 Jun, 2000 1 commit
  5. 02 Jun, 2000 1 commit
  6. 03 May, 2000 1 commit
  7. 02 May, 2000 1 commit
  8. 24 Apr, 2000 1 commit
  9. 18 Apr, 2000 1 commit
  10. 31 Mar, 2000 1 commit
  11. 30 Mar, 2000 1 commit
    • Ken Raeburn's avatar
      * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, XSUBR, XBUFFER): · 8801a864
      Ken Raeburn authored
      Verify correct object type before returning pointer, using eassert.
      * frame.h (XFRAME): Likewise.
      
      * buffer.c (Frename_buffer, Fset_buffer_multibyte,
      swap_out_buffer_local_variables, Fmove_overlay): Don't apply XSYMBOL, XBUFFER,
      etc, to values that may be nil or of the wrong type.
      * data.c (set_internal): Likewise.
      * dispextern.h (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P): Likewise.
      * fileio.c (auto_save_1): Likewise.
      * insdel.c (check_markers): Likewise.
      * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
      * undo.c (record_insert): Likewise.
      * vmsproc.c (child_sig): Likewise.
      * window.c (unshow_buffer, window_loop): Likewise.
      * xterm.c (x_erase_phys_cursor): Likewise.
      8801a864
  12. 27 Mar, 2000 1 commit
  13. 26 Mar, 2000 1 commit
  14. 24 Mar, 2000 1 commit
  15. 23 Mar, 2000 1 commit
  16. 21 Mar, 2000 1 commit
    • Kenichi Handa's avatar
      Include fontset.h after dispextern.h. · ee569018
      Kenichi Handa authored
      (x_per_char_metric): Don't try FONT->default_char.  Even if
      pcm->width is zero, glyph bits may exist.
      (x_encode_char): Always initialize char2b->byte1.
      (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
      (x_get_glyph_face_and_encoding): New arg two_byte_p.  Caller
      changed.
      (x_append_glyph): Set glyph->glyph_not_available_p.
      (x_produce_glyphs): Set it->glyph_not_available_p.  Don't set
      it->charset.  Handle the case that per char metric is not
      available.  If it->multibyte_p is zero and it->c is a multibyte
      character, convert it to a unibyte character.
      (struct glyph_string): Delete member `charset'.
      (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id.  Handle
      the case that per char metric is not available correctly.
      (x_fill_glyph_string): Handle the case that the specific glyph is
      not available correctly.
      (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
      (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
      (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
      (x_new_fontset): Call fontset_ascii to get ASCII font name of the
      fontset.  Don't call FS_LOAD_FONT.
      ee569018
  17. 17 Mar, 2000 1 commit
  18. 14 Mar, 2000 2 commits
  19. 07 Mar, 2000 1 commit
  20. 05 Mar, 2000 1 commit
  21. 04 Mar, 2000 1 commit
  22. 03 Mar, 2000 1 commit
    • Gerd Moellmann's avatar
      (PER_CHAR_METRIC): Removed. · e2ef8ee6
      Gerd Moellmann authored
      (x_per_char_metric_1, x_default_char): New functions.
      (x_per_char_metric): If font's default char is invalid, return
      metrics of a suitably chosen usable default char.
      (x_draw_glyph_string_foreground): If font has an invalid default
      char, replace occurrences of that char with a suitably chosen
      usable default char.
      e2ef8ee6
  23. 02 Mar, 2000 2 commits
  24. 25 Feb, 2000 1 commit
  25. 24 Feb, 2000 1 commit
  26. 05 Feb, 2000 1 commit
  27. 31 Jan, 2000 1 commit
  28. 30 Jan, 2000 1 commit
  29. 29 Jan, 2000 1 commit
    • Gerd Moellmann's avatar
      (x_display_cursor): Set XIC pre-edit area only if window · f5d11644
      Gerd Moellmann authored
      is its frame's selected window.
      (xim_instantiate_callback): Likewise.
      
      (XTread_socket) [HAVE_X_I18N]: If event is for none of
      our frames, call XFilterEvent with 2nd parameter `None'.
      (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
      returning XBufferOverflow.
      (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
      area.
      (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
      (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
      (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
      (xim_initialize, xim_close)
      [HAVE_X_I18N && HAVE_X11R6]: New functions.
      (x_destroy_window) [HAVE_X_I18N]:  Call xic_destroy_frame.
      (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
      (x_delete_display) [HAVE_X_I18N]: Call xim_close.
      f5d11644
  30. 25 Jan, 2000 1 commit
    • Gerd Moellmann's avatar
      (toplevel): Include atimer.h. · bffcfca9
      Gerd Moellmann authored
      (toolkit_scroll_bar_interaction): New variable.
      (Fxt_process_timeouts): Removed.
      (x_process_timeouts): New function.
      (xt_action_hook): Clear toolkit_scroll_bar_interaction.
      (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
      (x_make_frame_visible): Call poll_for_input_1 instead of
      input_poll_signal.  Don't call alarm.
      (x_initialize): Install timer calling x_process_timeouts.
      bffcfca9
  31. 30 Dec, 1999 1 commit
  32. 27 Dec, 1999 1 commit
  33. 22 Dec, 1999 1 commit
    • Gerd Moellmann's avatar
      (XTread_socket): At the beginning of the loop, pass the · f2be1146
      Gerd Moellmann authored
      frame's X window to XFilterEvent instead of None because that's
      the X window for which the IC was created.  This makes dead
      accents work when the pointer is not in Emacs' frame.
      (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
      f2be1146
  34. 15 Dec, 1999 2 commits
    • Dave Love's avatar
    • Kenichi Handa's avatar
      (x_append_glyph): Setup members of struct glyph properly · b4192550
      Kenichi Handa authored
      for composition.
      (x_append_composite_glyph): New function.
      (VCENTER_BASELINE_OFFSET): New macro.
      (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
      of struct it for the composition.  Cache pixel offsets in the
      struct composition.  Delete codes for a composite character.
      Handle Vignore_relative_composition in composition code.
      (struct glyph_string): Delete member cmpcharp, add new member cmp.
      (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
      (x_compute_glyph_string_overhangs): Likewise.
      (x_get_glyph_overhangs): Delete codes for a composite character.
      (x_right_overwritten): Check s->cmp, not s->cmpcharp.
      (x_draw_glyph_string_background): Likewise.  Delete codes for
      checking s->gidx for a composition.
      (x_draw_glyph_string_foreground): Delete code for a composite
      character.
      (x_draw_composite_glyph_string_foreground): New function.
      (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
      (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
      (struct work): Deleted.
      (x_fill_composite_glyph_string): Argument changed.  Mostly
      rewritten for that.
      (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
      (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
      (BUILD_COMPOSITE_GLYPH_STRING): New macro.
      (BUILD_GLYPH_STRINGS): For composition, call
      BUILD_COMPOSITE_GLYPH_STRING.
      (x_new_font): Initialize f->output_data.x->baseline_offset, not
      f->output_data.x->font_baseline.
      b4192550
  35. 14 Dec, 1999 1 commit
  36. 10 Dec, 1999 2 commits
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      (#includes): Allow compilation with only Xaw. · ec18280f
      Stefan Monnier authored
      (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
      (xt_action_hook): Replace XAW3D by XAW.
      (xaw3d_jump_callback): Renamed to xaw_jump_callback.
      (xaw_jump_callback): Renamed from xaw3d_jump_callback.
      Determine epsilon dynamically and don't try to be too clever.
      (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
      (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
      Handle both Xaw3d with arrow-scrollbars and with Xaw-style
      scrollbar (using `ratio').
      (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
      scrollbar we have so as to set it up more optimally and to fix
      xaw3d_arrow_scroll and xaw3d_pick_top.
      (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
      bottom of the Xaw3d scrollbar, to work around its tendency to refuse
      shrinking the thumb.  Also make sure that `XawScrollbarSetThumb'
      is not ignored, using a major gross hack.
      (x_initialize): Init default values for xaw3d_arrow_scroll and
      xaw3d_pick_top.
      ec18280f