aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-06-22 18:41:13 +0300
committerEli Zaretskii2016-06-22 18:41:13 +0300
commit791193d309a0e8f60c3cdae2941c718d07411159 (patch)
tree59fd8c49bbad4a7e2fcdf63802a20ec13c770b41 /src/buffer.c
parentbbc58feac57d070a3b645b7a132ee3f3624b6ddd (diff)
downloademacs-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