summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1998-04-15 23:49:52 +0000
committerKenichi Handa <handa@m17n.org>1998-04-15 23:49:52 +0000
commit83fa074f8deab26ae84838d7fa76ef7a2e0cdafa (patch)
tree697e6b54da35cbdb18c584c7f153d732bcf9a1df /src/coding.c
parent37c3edc4d17ed443340c1e100b9d0a5fcfd9ca74 (diff)
(code_convert_region): If point in the conversion
region, move it to FROM in advance.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index 6973a6d8e8e..4b70b259314 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -3967,6 +3967,9 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
unsigned char *src, *dst;
Lisp_Object deletion = Qnil;
+ if (from < PT && PT < to)
+ SET_PT_BOTH (from, from_byte);
+
if (replace)
{
int saved_from = from;