diff src/fileio.c @ 69136:ebfcb70d92d2

(Finsert_file_contents): When a text is replaced partially, be sure to set point before the inserted characters.
author Kenichi Handa <handa@m17n.org>
date Fri, 24 Feb 2006 06:46:44 +0000
parents 8b817a6ceff5
children df847a0b85d2 3cc2ba972850 8a1ee48a8386
line wrap: on
line diff
--- a/src/fileio.c	Fri Feb 24 05:02:12 2006 +0000
+++ b/src/fileio.c	Fri Feb 24 06:46:44 2006 +0000
@@ -4414,6 +4414,8 @@
 
       /* Set `inserted' to the number of inserted characters.  */
       inserted = PT - temp;
+      /* Set point before the inserted characters.  */
+      SET_PT_BOTH (temp, same_at_start);
 
       xfree (conversion_buffer);
       emacs_close (fd);