]> git.eshelyaron.com Git - emacs.git/commitdiff
(code_convert_region1): Remove all text properties of the region.
authorKenichi Handa <handa@m17n.org>
Fri, 28 Aug 1998 12:33:52 +0000 (12:33 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 28 Aug 1998 12:33:52 +0000 (12:33 +0000)
src/coding.c

index 89e82678a2df84e5817aefc1b2caae56b73a03b9..829d8ec1ebd20eadae648c124c3e28bdfc3701fa 100644 (file)
@@ -4733,6 +4733,10 @@ code_convert_region1 (start, end, coding_system, encodep)
   if (setup_coding_system (Fcheck_coding_system (coding_system), &coding) < 0)
     error ("Invalid coding system: %s", XSYMBOL (coding_system)->name->data);
 
+  /* The code conversion routine can not preserve text properties for
+     now.  So, we must remove all text properties in the region.  */
+  Fset_text_properties (start, end, Qnil, Qnil);
+
   coding.mode |= CODING_MODE_LAST_BLOCK;
   code_convert_region (from, CHAR_TO_BYTE (from), to, CHAR_TO_BYTE (to),
                       &coding, encodep, 1);