From: Kenichi Handa Date: Wed, 15 Apr 1998 23:49:52 +0000 (+0000) Subject: (code_convert_region): If point in the conversion X-Git-Tag: emacs-20.3~1499 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=83fa074f8deab26ae84838d7fa76ef7a2e0cdafa;p=emacs.git (code_convert_region): If point in the conversion region, move it to FROM in advance. --- 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;