Mercurial > emacs
changeset 23136:7a72a7b8718c
(code_convert_region1): Remove all text properties of the region.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 28 Aug 1998 12:33:52 +0000 |
parents | 99ab9c46504a |
children | fed2ba47003f |
files | src/coding.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Fri Aug 28 12:22:39 1998 +0000 +++ b/src/coding.c Fri Aug 28 12:33:52 1998 +0000 @@ -4733,6 +4733,10 @@ 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);