mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-21 03:52:16 -08:00
(face_before_or_after_it_pos): Pass multibyteness
to DEC_TEXT_POS and INC_TEXT_POS.
This commit is contained in:
parent
5f15d71229
commit
c1005d06e8
2 changed files with 11 additions and 2 deletions
|
|
@ -1,5 +1,14 @@
|
|||
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.
|
||||
|
|
|
|||
|
|
@ -1969,7 +1969,7 @@ face_before_or_after_it_pos (it, before_p)
|
|||
pos = it->current.pos;
|
||||
|
||||
if (before_p)
|
||||
DEC_TEXT_POS (pos);
|
||||
DEC_TEXT_POS (pos, it->multibyte_p);
|
||||
else
|
||||
{
|
||||
if (it->what == IT_COMPOSITION)
|
||||
|
|
@ -1977,7 +1977,7 @@ face_before_or_after_it_pos (it, before_p)
|
|||
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue