to DEC_TEXT_POS and INC_TEXT_POS.
2000-03-27 Gerd Moellmann <gerd@gnu.org>
+ * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
+ to DEC_TEXT_POS and INC_TEXT_POS.
+
+ * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
+ with parameter MULTIBYTE_P.
+
+ * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
+ MULTIBYTE_P.
+
* editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
buffers because it looks for multibyte character sequences which
don't exist in unibyte text.
pos = it->current.pos;
if (before_p)
- DEC_TEXT_POS (pos);
+ DEC_TEXT_POS (pos, it->multibyte_p);
else
{
if (it->what == IT_COMPOSITION)
composition. */
pos.charpos += it->cmp_len, pos.bytepos += it->len;
else
- INC_TEXT_POS (pos);
+ INC_TEXT_POS (pos, it->multibyte_p);
}
/* Determine face for CHARSET_ASCII, or unibyte. */
face_id = face_at_buffer_position (it->w,