aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/coding.c b/src/coding.c
index f5122429553..6824df089a4 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4827,7 +4827,6 @@ encode_coding (coding, source, destination, src_bytes, dst_bytes)
4827 && coding->result == CODING_FINISH_INSUFFICIENT_SRC) 4827 && coding->result == CODING_FINISH_INSUFFICIENT_SRC)
4828 { 4828 {
4829 unsigned char *src = source + coding->consumed; 4829 unsigned char *src = source + coding->consumed;
4830 unsigned char *src_end = src + src_bytes;
4831 unsigned char *dst = destination + coding->produced; 4830 unsigned char *dst = destination + coding->produced;
4832 4831
4833 if (coding->type == coding_type_iso2022) 4832 if (coding->type == coding_type_iso2022)
@@ -4838,7 +4837,7 @@ encode_coding (coding, source, destination, src_bytes, dst_bytes)
4838 { 4837 {
4839 int len = src_bytes - coding->consumed; 4838 int len = src_bytes - coding->consumed;
4840 4839
4841 BCOPY_SHORT (source + coding->consumed, dst, len); 4840 BCOPY_SHORT (src, dst, len);
4842 if (coding->src_multibyte) 4841 if (coding->src_multibyte)
4843 len = str_as_unibyte (dst, len); 4842 len = str_as_unibyte (dst, len);
4844 dst += len; 4843 dst += len;
@@ -5394,7 +5393,6 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
5394 new buffer. */ 5393 new buffer. */
5395 struct buffer *prev = current_buffer; 5394 struct buffer *prev = current_buffer;
5396 Lisp_Object new; 5395 Lisp_Object new;
5397 int count = specpdl_ptr - specpdl;
5398 5396
5399 record_unwind_protect (code_convert_region_unwind, Qnil); 5397 record_unwind_protect (code_convert_region_unwind, Qnil);
5400 /* We should not call any more pre-write/post-read-conversion 5398 /* We should not call any more pre-write/post-read-conversion
@@ -5728,7 +5726,6 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
5728 && ! encodep && ! NILP (coding->post_read_conversion)) 5726 && ! encodep && ! NILP (coding->post_read_conversion))
5729 { 5727 {
5730 Lisp_Object val; 5728 Lisp_Object val;
5731 int count = specpdl_ptr - specpdl;
5732 5729
5733 if (from != PT) 5730 if (from != PT)
5734 TEMP_SET_PT_BOTH (from, from_byte); 5731 TEMP_SET_PT_BOTH (from, from_byte);