Commit 77343e1d authored by Kenichi Handa's avatar Kenichi Handa

(Finsert_file_contents): When a text is replaced

partially, be sure to set point before the inserted characters.
parent 5f4264e5
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.
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment