1. 05 Jan, 1998 5 commits
  2. 04 Jan, 1998 1 commit
  3. 03 Jan, 1998 4 commits
  4. 02 Jan, 1998 17 commits
  5. 01 Jan, 1998 13 commits
    • Richard M. Stallman's avatar
      (a_write): Fix prototype. · b9013200
      Richard M. Stallman authored
      b9013200
    • Richard M. Stallman's avatar
      (struct Lisp_Marker): New field `charpos'. · 4ed24bf3
      Richard M. Stallman authored
      (pos_tab_offset): Decl deleted.
      (insert_1, indented_beyond_p): Decls changed.
      (move_gap_both, del_range_byte, del_range_both, del_range_2)
      (scan_newline, Ffile_locked_p): New decls.
      4ed24bf3
    • Richard M. Stallman's avatar
      (Fgoto_char): When arg is a marker, copy char and byte · ec1c14f6
      Richard M. Stallman authored
      positions from it.  When arg is an integer, no need to worry that it
      is in middle of a character.
      (buildmark): Take 2 args (charpos and bytepos).  Callers changed.
      (Fline_beginning_position): Save and restore both kinds of PT.
      (Fprevious_char): Use PT_BYTE.
      (Fbolp, Feolp): Use PT_BYTE.
      (transpose_markers): Take args in chars and bytes.
      (Ftranspose_regions): Work with byte and char positions.
      (Fchar_after, Fchar_before): Use bytepos.
      (make_buffer_string): Convert charpos to bytepos.
      (Fcompare_buffer_substrings): Work with charpos and bytepos.
      (Fsubst_char_in_region): Handle charpos and bytepos.
      (Fwiden, Fnarrow_to_region): Likewise.
      (save_restriction_restore): Update PT and PT_BYTES.
      Cast arg to doprnt_lisp.
      ec1c14f6
    • Richard M. Stallman's avatar
      (set_point_both): Renamed from set_point; · ef1900f3
      Richard M. Stallman authored
      New arg BYTE; BUFFER is now first arg; use temp_set_point_both.
      (set_point): New function; uses set_point_both.
      (temp_set_point_both): New function.
      (temp_set_point): Update BUF_PT_BYTE.
      (get_local_map): Save and restore both forms of the buffer bounds.
      ef1900f3
    • Richard M. Stallman's avatar
      (code_convert_region): Handle bytepos and charpos. · 6289dd10
      Richard M. Stallman authored
      (Fdetect_coding_region): Likewise.
      6289dd10
    • 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
    • Richard M. Stallman's avatar
      Update copyright year. · 604ee0f3
      Richard M. Stallman authored
      604ee0f3
    • Richard M. Stallman's avatar
      (DECODE_POSITION): New macro. · 69f9064e
      Richard M. Stallman authored
      (CHAR_TO_BYTE, BYTE_TO_CHAR): New macros.
      
      (BEG_BYTE, BEGV_BYTE, PT_BYTE, GPT_BYTE)
      (ZV_BYTE, Z_BYTE): New macros.
      (BUF_BEG_BYTE, BUF_BEGV_BYTE, BUF_PT_BYTE, BUF_GPT_BYTE)
      (BUF_ZV_BYTE, BUF_Z_BYTE): New macros.
      (BUF_GAP_END_ADDR): New macro.
      (BEGV_ADDR, PT_ADDR, GPT_ADDR, GAP_END_ADDR, ZV_ADDR, Z_ADDR):
      Use the new ..._byte buffer data.
      (BUFFER_CEILING_OF, BUFFER_FLOOR_OF): Likewise.
      (BUF_GPT_ADDR, BUF_Z_ADDR): Likewise.
      (SET_PT_BOTH, TEMP_SET_PT_BOTH): New macros.
      (SET_PT, TEMP_SET_PT, BUF_SET_PT, BUF_TEMP_SET_PT):
      Call functions with new arg order.
      (SET_BUF_BEGV, SET_BUF_BEGV_BOTH): New macros.
      (SET_BUF_PT): Macro deleted.
      (SET_BUF_ZV): Set charpos and bytepos.
      (SET_BUF_ZV_BOTH, SET_BUF_PT_BOTH): New macros.
      (BYTE_POS_ADDR): Renamed from POS_ADDR.
      (CHAR_POS_ADDR): New macro.
      (FETCH_BYTE): Use BYTE_POS_ADDR.
      (FETCH_MULTIBYTE_CHAR): Use ..._BYTE macros.
      (BUF_CHAR_ADDRESS): Convert charpos to bytepos.
      (BUF_BYTE_ADDRESS): New macro, like the old BUF_CHAR_ADDRESS.
      (PTR_BYTE_POS): Renamed from PTR_CHAR_POS.
      (BUF_PTR_BYTE_POS): New macro.
      (BUF_FETCH_CHAR, BUF_FETCH_BYTE, BUF_FETCH_MULTIBYTE_CHAR): New macros.
      (struct buffer_text): New fields gpt_byte, z_byte.
      (struct buffer): New fields pt_byte, begv_byte, zv_byte.
      69f9064e
    • Richard M. Stallman's avatar
    • Richard M. Stallman's avatar
      (status_notify): Use byte and char pointers. · d8a2934e
      Richard M. Stallman authored
      (Fprocess_send_region): Make bytepos for send_process.
      (read_process_output): Save, restore, and update both kinds of ptrs.
      (send_process): OFFSET is now in bytes.
      d8a2934e
    • Richard M. Stallman's avatar
      (set_point, temp_set_point): Swap args in decl. · fdccf446
      Richard M. Stallman authored
      (set_point_both, temp_set_point_both): New decls.
      fdccf446
    • Richard M. Stallman's avatar
      (PRINTDECLARE): Declare old_point_byte and start_point_byte. · 6ddd6eee
      Richard M. Stallman authored
      (PRINTPREPARE): For a marker, set old_point_byte and start_point_byte.
      Set both kinds of PT from the marker.
      (PRINTFINISH): For a marker, use set_marker_both.
      Restore both kinds of PT.
      (print): For strings and symbols, handle multibyte chars.
      6ddd6eee
    • Richard M. Stallman's avatar
      (readchar_backlog): New variable. · 6f7f43d5
      Richard M. Stallman authored
      (readchar): When fetching from buffer or marker,
      use readchar_backlog to fetch bytes from a character.
      (unreadchar): Increment readchar_backlog.
      (readevalloop, Fread): Init readchar_backlog.
      6f7f43d5