1. 24 Mar, 1998 1 commit
  2. 21 Mar, 1998 4 commits
  3. 20 Mar, 1998 1 commit
    • Richard M. Stallman's avatar
      (del_range_2): Use adjust_markers_for_record_delete. · 7cc3983f
      Richard M. Stallman authored
      (adjust_markers_for_delete): Delete unused local coming_gap_size.
      (adjust_markers_for_record_delete): New function.
      (insert_1_both, insert_from_string_1, insert_from_buffer_1)
      (adjust_after_replace, replace_range):
      Use adjust_markers_for_record_delete.
      7cc3983f
  4. 16 Mar, 1998 1 commit
    • Kenichi Handa's avatar
      (ADJUST_CHAR_POS): New macro. · e3a87305
      Kenichi Handa authored
      (combine_bytes): Use the macro ADJUST_CHAR_POS.
      (adjust_after_replace): New arg REPLACE.  If it is zero, give LEN
      as the arg LENGTH to offset_intervals.
      (del_range_2): Give correct args to count_combining_before and
      combine_bytes.  Adjust the gap position after record_delete if
      necessary.  Give character position to adjust_overlays_for_delete.
      e3a87305
  5. 14 Mar, 1998 1 commit
  6. 12 Mar, 1998 1 commit
    • Kenichi Handa's avatar
      (adjust_before_replace): Call · 61415a25
      Kenichi Handa authored
      adjust_overlays_for_delete.
      (adjust_after_replace): Delete args COMBINED_BEFORE_BYTES and
      COMBINED_AFTER_BYTES.  This makes the newly generated text
      following GPT_ADDR a buffer contents.
      61415a25
  7. 11 Mar, 1998 2 commits
    • Richard M. Stallman's avatar
      (combine_bytes): New function. · 1f90a790
      Richard M. Stallman authored
      (insert_1_both, insert_from_string_1, insert_from_buffer_1):
      Simplify greatly by using combine_bytes near the end
      to handle all aspects of combining except for undo-recording.
      This means most of the code deals with the text as if there were
      no combining.
      (replace_range): Likewise.  Also handle unibyte-multibyte conversion
      as in insert_from_string_1.
      (del_range_2): Handle combining of character before the deletion
      with strays after the deletion.
      (adjust_markers_for_delete): Delete debugging code for Z == Z_BYTE.
      (adjust_markers_for_insert): Move Z == Z_BYTE debugging code
      to before we relocate the marker.
      1f90a790
    • Richard M. Stallman's avatar
      (adjust_markers_for_insert): Don't leave a marker within · ce97a2d7
      Richard M. Stallman authored
      the combined_after_bytes.  Use DEC than INC when leaving
      a marker before the insertion.
      (count_combining_before): Return number of bytes from start
      of insertion that will combine.
      (insert_1_both): Compensate for change in count_combining_before.
      Delete intervals for the combined_after_bytes.
      Compensate for that when updating other intervals.
      (insert_from_buffer_1, replace_range): Likewise.
      (adjust_after_replace): Likewise.
      (insert_from_string_1): Likewise.  Also handle intervals
      for inserting just part of string.
      ce97a2d7
  8. 10 Mar, 1998 1 commit
  9. 09 Mar, 1998 1 commit
    • Richard M. Stallman's avatar
      (adjust_markers_for_insert): · 432f78d2
      Richard M. Stallman authored
      New args COMBINED_AFTER_BYTES, COMBINED_BEFORE_BYTES.  Calls changed.
      (insert_1): Call insert_1_both.
      (count_combining_before): New function.
      (count_combining_after): New function.
      (insert_1_both, insert_from_string_1): Handle bytes that combine
      with chars adjacent to the inserted text.
      (insert_from_buffer_1, replace_range): Likewise.
      (adjust_after_replace): New args COMBINED_BEFORE_BYTES, COMBINED_AFTER_BYTES.
      432f78d2
  10. 03 Mar, 1998 2 commits
  11. 27 Feb, 1998 1 commit
  12. 25 Feb, 1998 1 commit
  13. 20 Feb, 1998 1 commit
  14. 12 Feb, 1998 1 commit
  15. 04 Feb, 1998 1 commit
  16. 22 Jan, 1998 1 commit
  17. 21 Jan, 1998 1 commit
  18. 12 Jan, 1998 1 commit
  19. 09 Jan, 1998 1 commit
    • Richard M. Stallman's avatar
      (count_size_as_multibyte): New function. · 2b083808
      Richard M. Stallman authored
      (insert_from_string_1, insert_from_buffer_1): Use it.
      (copy_text): New function.
      (insert_from_buffer_1): Call copy_text to convert between
      single-byte and multibyte text.
      (insert_from_string_1): Likewise.
      (insert_1_both): New function.
      (insert_from_string): New args POS_BYTE, LENGTH.
      (insert_from_string_before_markers):
      (insert_from_string_1): New arg POS_BYTE.  Swap args NCHARS, NBYTES.
      Don't fail to use POS_BYTE!
      (insert_from_buffer_1): Get both inschars and insbytes from NEW.
      2b083808
  20. 02 Jan, 1998 2 commits
  21. 01 Jan, 1998 1 commit
    • Richard M. Stallman's avatar
      (move_gap): Use move_gap_both. · 3be11131
      Richard M. Stallman authored
      (move_gap_both): New function.
      (gap_left, gap_right): Take both charpos and bytepos args.
      (adjust_markers_gap_motion): Renamed from adjust_markers and simplified.
      (adjust_markers_for_delete): New function.
      (adjust_markers_for_insert): Take args in chars and bytes.
      Also new arg BEFORE_MARKERS.  One call does all marker updating
      needed for any insert.
      (adjust_point): Take 2 args and update PT and PT_BYTE.
      (make_gap): Handle bytes vs chars.
      (insert, insert_and_inherit): Handle bytes vs chars.
      Pass new BEFORE_MARKERS arg to insert_1.
      (insert_before_markers, insert_before_markers_and_inherit): Likewise.
      (insert_from_string, insert_from_string_before_markers): Likewise.
      (insert_from_buffer): Likewise.
      (insert_1): Handle bytes vs chars.  New arg BEFORE_MARKERS.
      (insert_from_string_1, insert_from_buffer_1): Likewise.
      (replace_range): Likewise.
      (del_range_2): New subroutine, taken from del_range_1.
      (del_range_1): Use del_range_2.
      (del_range_byte, del_range_both): New functions.
      3be11131
  22. 13 Aug, 1997 1 commit
  23. 17 Jul, 1997 1 commit
  24. 25 Jun, 1997 1 commit
  25. 14 Apr, 1997 1 commit
  26. 10 Apr, 1997 1 commit
  27. 20 Feb, 1997 1 commit
    • Karl Heuer's avatar
      Include charset.h. · 469ff680
      Karl Heuer authored
      (gap_left, gap_right): Put an anchor `\0' at the end of GAP.
      (adjust_markers_for_insert): If any markers are adjusted, check
      and fix the order of overlays in overlays_before.
      (make_gap): Allocate an extra byte and set to `\0' for anchoring.
      (insert1, insert_from_buffer_1): Put an anchor `\0' at the head of
      GAP.
      469ff680
  28. 09 Nov, 1996 1 commit
  29. 15 Sep, 1996 1 commit
  30. 10 Sep, 1996 1 commit
  31. 04 Sep, 1996 1 commit
  32. 01 May, 1996 1 commit
  33. 03 Feb, 1996 1 commit
  34. 15 Jan, 1996 1 commit