Mercurial > emacs
comparison src/fileio.c @ 21504:0e2b0f6fc9c0
(Finsert_file_contents): Call adjust_after_insert also
in unibyte mode.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Tue, 14 Apr 1998 10:20:03 +0000 |
parents | f866f7cadda2 |
children | fa9ff387d260 |
comparison
equal
deleted
inserted
replaced
21503:d08387c742bb | 21504:0e2b0f6fc9c0 |
---|---|
3801 inserted = multibyte_chars_in_text (GPT_ADDR - inserted, inserted); | 3801 inserted = multibyte_chars_in_text (GPT_ADDR - inserted, inserted); |
3802 adjust_after_insert (PT, PT_BYTE, | 3802 adjust_after_insert (PT, PT_BYTE, |
3803 PT + inserted_byte, PT_BYTE + inserted_byte, | 3803 PT + inserted_byte, PT_BYTE + inserted_byte, |
3804 inserted); | 3804 inserted); |
3805 } | 3805 } |
3806 else | |
3807 adjust_after_insert (PT, PT_BYTE, PT + inserted, PT_BYTE + inserted, | |
3808 inserted); | |
3806 | 3809 |
3807 #ifdef DOS_NT | 3810 #ifdef DOS_NT |
3808 /* Use the conversion type to determine buffer-file-type | 3811 /* Use the conversion type to determine buffer-file-type |
3809 (find-buffer-file-type is now used to help determine the | 3812 (find-buffer-file-type is now used to help determine the |
3810 conversion). */ | 3813 conversion). */ |