# HG changeset patch # User Richard M. Stallman # Date 744207551 0 # Node ID 76b24be40a57ef25185ffaf1040ddda63241e867 # Parent 06a92db6c73b885fb5703e1b7457508da7d2246b (Finsert_file_contents): Don't call prepare_to_modify_buffer if inserting zero characters. diff -r 06a92db6c73b -r 76b24be40a57 src/fileio.c --- a/src/fileio.c Sun Aug 01 11:55:12 1993 +0000 +++ b/src/fileio.c Sun Aug 01 12:19:11 1993 +0000 @@ -2446,7 +2446,7 @@ error ("maximum buffer size exceeded"); } - if (NILP (visit)) + if (NILP (visit) && total > 0) prepare_to_modify_buffer (point, point); move_gap (point);