aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/xdisp.c4
2 files changed, 11 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0c4bf7ea82e..3dd4ce2b7c2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,14 @@
12000-03-27 Gerd Moellmann <gerd@gnu.org> 12000-03-27 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
4 to DEC_TEXT_POS and INC_TEXT_POS.
5
6 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
7 with parameter MULTIBYTE_P.
8
9 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
10 MULTIBYTE_P.
11
3 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte 12 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
4 buffers because it looks for multibyte character sequences which 13 buffers because it looks for multibyte character sequences which
5 don't exist in unibyte text. 14 don't exist in unibyte text.
diff --git a/src/xdisp.c b/src/xdisp.c
index 12c95051436..16ab84c9cb7 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1969,7 +1969,7 @@ face_before_or_after_it_pos (it, before_p)
1969 pos = it->current.pos; 1969 pos = it->current.pos;
1970 1970
1971 if (before_p) 1971 if (before_p)
1972 DEC_TEXT_POS (pos); 1972 DEC_TEXT_POS (pos, it->multibyte_p);
1973 else 1973 else
1974 { 1974 {
1975 if (it->what == IT_COMPOSITION) 1975 if (it->what == IT_COMPOSITION)
@@ -1977,7 +1977,7 @@ face_before_or_after_it_pos (it, before_p)
1977 composition. */ 1977 composition. */
1978 pos.charpos += it->cmp_len, pos.bytepos += it->len; 1978 pos.charpos += it->cmp_len, pos.bytepos += it->len;
1979 else 1979 else
1980 INC_TEXT_POS (pos); 1980 INC_TEXT_POS (pos, it->multibyte_p);
1981 } 1981 }
1982 /* Determine face for CHARSET_ASCII, or unibyte. */ 1982 /* Determine face for CHARSET_ASCII, or unibyte. */
1983 face_id = face_at_buffer_position (it->w, 1983 face_id = face_at_buffer_position (it->w,