]> git.eshelyaron.com Git - emacs.git/commitdiff
(code_convert_region): If point in the conversion
authorKenichi Handa <handa@m17n.org>
Wed, 15 Apr 1998 23:49:52 +0000 (23:49 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 15 Apr 1998 23:49:52 +0000 (23:49 +0000)
region, move it to FROM in advance.

src/coding.c

index 6973a6d8e8e065036abfeb8913f606d7efae9946..4b70b259314431667cb64187844f5045d3445625 100644 (file)
@@ -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;