(code_convert_region): If point in the conversion
region, move it to FROM in advance.
This commit is contained in:
parent
37c3edc4d1
commit
83fa074f8d
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue