]> git.eshelyaron.com Git - emacs.git/commitdiff
(Finsert_file_contents): When a text is replaced
authorKenichi Handa <handa@m17n.org>
Fri, 24 Feb 2006 06:46:54 +0000 (06:46 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 24 Feb 2006 06:46:54 +0000 (06:46 +0000)
partially, be sure to set point before the inserted characters.

src/ChangeLog
src/fileio.c

index fe8b13409efb34346c5ba5d38982cba53d27f901..d8e0b6fb4e151e728e5c8c076dacb970555a745a 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-24  Kenichi Handa  <handa@m17n.org>
+
+       * fileio.c (Finsert_file_contents): When a text is replaced
+       partially, be sure to set point before the inserted characters.
+
 2006-02-23  Zhang Wei  <id.brep@gmail.com>  (tiny change)
 
        * xfns.c (Fx_file_dialog): Return a decoded file name.
index 66546b3b556aabab965ba01a8e8457c360c76306..73dd799f806038497d53243208790cbf4d0887e7 100644 (file)
@@ -4414,6 +4414,8 @@ actually used.  */)
 
       /* 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);