aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2001-12-17 15:33:32 +0000
committerRichard M. Stallman2001-12-17 15:33:32 +0000
commit0e79d66738310dc543d639d7d92dfdfb0660f384 (patch)
tree91396e88dadea6d7ebca3c8cd72305c7af059959 /src
parent93dec0196becfb2d190dcd3c5eca1715388c6b9f (diff)
downloademacs-0e79d66738310dc543d639d7d92dfdfb0660f384.tar.gz
emacs-0e79d66738310dc543d639d7d92dfdfb0660f384.zip
(code_convert_region): Update coding->cmp_data->char_offset
before calling decode_coding.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/coding.c6
2 files changed, 11 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 25795977b96..46d83df8d36 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,7 +5,12 @@
5 5
62001-12-17 Richard M. Stallman <rms@gnu.org> 62001-12-17 Richard M. Stallman <rms@gnu.org>
7 7
8 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING (coding) 8 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
9 before calling decode_coding.
10
11 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
12
13 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
9 instead of only for COMPOSITION_DISABLED. 14 instead of only for COMPOSITION_DISABLED.
10 15
112001-12-16 Richard M. Stallman <rms@gnu.org> 162001-12-16 Richard M. Stallman <rms@gnu.org>
diff --git a/src/coding.c b/src/coding.c
index 6083af6eabc..7b352d169c4 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -5516,7 +5516,11 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
5516 if (encodep) 5516 if (encodep)
5517 result = encode_coding (coding, src, dst, len_byte, 0); 5517 result = encode_coding (coding, src, dst, len_byte, 0);
5518 else 5518 else
5519 result = decode_coding (coding, src, dst, len_byte, 0); 5519 {
5520 if (coding->composing != COMPOSITION_DISABLED)
5521 coding->cmp_data->char_offset = from + inserted;
5522 result = decode_coding (coding, src, dst, len_byte, 0);
5523 }
5520 5524
5521 /* The buffer memory is now: 5525 /* The buffer memory is now:
5522 +--------+-------converted-text----+--+------original-text----+---+ 5526 +--------+-------converted-text----+--+------original-text----+---+