when REPLACE is handled by reading directly from the file. Use insert_1 to insert replacement text, to avoid query about whether to modify the buffer.
with glibc's malloc--do use vm-limit.o.
Restore the current buffer from selected window on occasion. All callers changed.
even if the user has selected a different buffer.
Fix Lisp_Object/integer confusion.