diff options
| author | Eli Zaretskii | 2016-06-22 18:41:13 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-06-22 18:41:13 +0300 |
| commit | 791193d309a0e8f60c3cdae2941c718d07411159 (patch) | |
| tree | 59fd8c49bbad4a7e2fcdf63802a20ec13c770b41 /src/buffer.c | |
| parent | bbc58feac57d070a3b645b7a132ee3f3624b6ddd (diff) | |
| download | emacs-791193d309a0e8f60c3cdae2941c718d07411159.tar.gz emacs-791193d309a0e8f60c3cdae2941c718d07411159.zip | |
Fix 'insert-file-contents' when REPLACE is non-nil
* src/fileio.c (maybe_move_gap): New function to move the gap to
the end of a buffer, if it isn't there already.
(Finsert_file_contents): Call 'maybe_move_gap' before using
conversion_buffer's text as a C 'char' array. (Bug#23659)
* src/coding.c (decode_eol): Compute the byte increment before
calling del_range_2, because the latter can invalidate the pointer
to buffer text.
Diffstat (limited to 'src/buffer.c')
0 files changed, 0 insertions, 0 deletions