Mercurial > emacs
changeset 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 | 12d289b6e5de |
children | d2cbaaf9435d |
files | src/fileio.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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);