comparison src/insdel.c @ 46426:d7f3f0434d43

* insdel.c (insert_from_string_1): Use SDATA.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 16 Jul 2002 15:49:24 +0000
parents 40db0673e6f0
children 9648dbb4974e
comparison
equal deleted inserted replaced
46425:2e674544b19a 46426:d7f3f0434d43
1109 1109
1110 if (NILP (current_buffer->enable_multibyte_characters)) 1110 if (NILP (current_buffer->enable_multibyte_characters))
1111 outgoing_nbytes = nchars; 1111 outgoing_nbytes = nchars;
1112 else if (! STRING_MULTIBYTE (string)) 1112 else if (! STRING_MULTIBYTE (string))
1113 outgoing_nbytes 1113 outgoing_nbytes
1114 = count_size_as_multibyte (&SREF (string, pos_byte), 1114 = count_size_as_multibyte (SDATA (string) + pos_byte,
1115 nbytes); 1115 nbytes);
1116 1116
1117 GCPRO1 (string); 1117 GCPRO1 (string);
1118 /* Do this before moving and increasing the gap, 1118 /* Do this before moving and increasing the gap,
1119 because the before-change hooks might move the gap 1119 because the before-change hooks might move the gap