aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa1998-08-28 12:33:52 +0000
committerKenichi Handa1998-08-28 12:33:52 +0000
commitdf2ddb2d286c264eeba546f930456412ac9526d0 (patch)
treee08329c6f9821fd394d5dd04dc208bbb2d9beeb8 /src/coding.c
parent2d5975faa83dc3b3c5506e09c7690177e6a23374 (diff)
downloademacs-df2ddb2d286c264eeba546f930456412ac9526d0.tar.gz
emacs-df2ddb2d286c264eeba546f930456412ac9526d0.zip
(code_convert_region1): Remove all text properties of the region.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index 89e82678a2d..829d8ec1ebd 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4733,6 +4733,10 @@ code_convert_region1 (start, end, coding_system, encodep)
4733 if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0) 4733 if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0)
4734 error ("Invalid coding system: %s", XSYMBOL (coding_system)->name->data); 4734 error ("Invalid coding system: %s", XSYMBOL (coding_system)->name->data);
4735 4735
4736 /* The code conversion routine can not preserve text properties for
4737 now. So, we must remove all text properties in the region. */
4738 Fset_text_properties (start, end, Qnil, Qnil);
4739
4736 coding.mode |= CODING_MODE_LAST_BLOCK; 4740 coding.mode |= CODING_MODE_LAST_BLOCK;
4737 code_convert_region (from, CHAR_TO_BYTE (from), to, CHAR_TO_BYTE (to), 4741 code_convert_region (from, CHAR_TO_BYTE (from), to, CHAR_TO_BYTE (to),
4738 &coding, encodep, 1); 4742 &coding, encodep, 1);