]> git.eshelyaron.com Git - emacs.git/commitdiff
(Finsert_file_contents): Don't call prepare_to_modify_buffer
authorRichard M. Stallman <rms@gnu.org>
Sun, 1 Aug 1993 12:19:11 +0000 (12:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 1 Aug 1993 12:19:11 +0000 (12:19 +0000)
if inserting zero characters.

src/fileio.c

index 04962eee1df697890837cb10bbed150b1dd4a4be..f4537ba0fda536911850a011065f49872f2b0c73 100644 (file)
@@ -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);