From: Richard M. Stallman Date: Sun, 1 Aug 1993 12:19:11 +0000 (+0000) Subject: (Finsert_file_contents): Don't call prepare_to_modify_buffer X-Git-Tag: emacs-19.34~11456 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=57d8d468192cde12027de5b175f5bc9dcd554ea5;p=emacs.git (Finsert_file_contents): Don't call prepare_to_modify_buffer if inserting zero characters. --- diff --git a/src/fileio.c b/src/fileio.c index 04962eee1df..f4537ba0fda 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2446,7 +2446,7 @@ If VISIT is non-nil, BEG and END must be nil.") error ("maximum buffer size exceeded"); } - if (NILP (visit)) + if (NILP (visit) && total > 0) prepare_to_modify_buffer (point, point); move_gap (point);