Mercurial > emacs
comparison src/coding.c @ 21576:8043d47984fd
(code_convert_region): If point in the conversion
region, move it to FROM in advance.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 15 Apr 1998 23:49:52 +0000 |
parents | 30394e3ae7f8 |
children | 4097e558fa19 |
comparison
equal
deleted
inserted
replaced
21575:6300c1c645da | 21576:8043d47984fd |
---|---|
3965 int first = 1; | 3965 int first = 1; |
3966 int fake_multibyte = 0; | 3966 int fake_multibyte = 0; |
3967 unsigned char *src, *dst; | 3967 unsigned char *src, *dst; |
3968 Lisp_Object deletion = Qnil; | 3968 Lisp_Object deletion = Qnil; |
3969 | 3969 |
3970 if (from < PT && PT < to) | |
3971 SET_PT_BOTH (from, from_byte); | |
3972 | |
3970 if (replace) | 3973 if (replace) |
3971 { | 3974 { |
3972 int saved_from = from; | 3975 int saved_from = from; |
3973 | 3976 |
3974 prepare_to_modify_buffer (from, to, &from); | 3977 prepare_to_modify_buffer (from, to, &from); |