Commit b6806029 authored by Paul Eggert's avatar Paul Eggert

* fileio.c (Finsert_file_contents): Use a more-conservative fix.

Fixes: debbugs:14936
parent 9d611ffe
......@@ -3860,10 +3860,7 @@ by calling `format-decode', which see. */)
if (same_at_start - BEGV_BYTE == end_offset - beg_offset)
emacs_close (fd);
/* Discard the unwind protect for closing the file, and any
unwind protect for restoring point. */
specpdl_ptr = specpdl + fd_index;
clear_unwind_protect (fd_index);
/* Truncate the buffer to the size of the file. */
del_range_1 (same_at_start, same_at_end, 0, 0);
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