(count_size_as_multibyte): New function.
authorRichard M. Stallman <rms@gnu.org>
Fri, 9 Jan 1998 22:46:07 +0000 (22:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 9 Jan 1998 22:46:07 +0000 (22:46 +0000)
commit2b08380873ba2aaa735051e5cf2cc12d7438c9d8
tree9c55aabfe957ebd169b0267e380d794aeae82b06
parentea35ce3d99adfbe260d32b6f30c7ec0b0895219a
(count_size_as_multibyte): New function.
(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.
src/insdel.c