aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorRichard M. Stallman1998-03-28 21:55:22 +0000
committerRichard M. Stallman1998-03-28 21:55:22 +0000
commitf5f9a3da6b1414a452727c60156dc574044a69e5 (patch)
tree28cb7fa1fc76eb990e3602df62e45eceff24dfb1 /src/coding.c
parent60ea60525e1f1789903bbf10e0587af0c3928864 (diff)
downloademacs-f5f9a3da6b1414a452727c60156dc574044a69e5.tar.gz
emacs-f5f9a3da6b1414a452727c60156dc574044a69e5.zip
(code_convert_region): Call adjust_before_replace
in the no-conversion case. Adjust GPT, ZV and Z in chars.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c
index 0b71e91c4db..aa68631d4e1 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4009,6 +4009,8 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
4009 coding->produced = len_byte; 4009 coding->produced = len_byte;
4010 if (multibyte) 4010 if (multibyte)
4011 { 4011 {
4012 adjust_before_replace (from, from_byte, to, to_byte);
4013
4012 /* We still may have to combine byte at the head and the 4014 /* We still may have to combine byte at the head and the
4013 tail of the text in the region. */ 4015 tail of the text in the region. */
4014 if (GPT != to) 4016 if (GPT != to)
@@ -4019,9 +4021,9 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
4019 GPT_BYTE -= len_byte; 4021 GPT_BYTE -= len_byte;
4020 ZV_BYTE -= len_byte; 4022 ZV_BYTE -= len_byte;
4021 Z_BYTE -= len_byte; 4023 Z_BYTE -= len_byte;
4022 GPT -= len_byte; 4024 GPT -= len;
4023 ZV -= len_byte; 4025 ZV -= len;
4024 Z -= len_byte; 4026 Z -= len;
4025 adjust_after_replace (from, from_byte, to, to_byte, 4027 adjust_after_replace (from, from_byte, to, to_byte,
4026 coding->produced_char, len_byte, replace); 4028 coding->produced_char, len_byte, replace);
4027 } 4029 }