aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-01 12:19:11 +0000
committerRichard M. Stallman1993-08-01 12:19:11 +0000
commit57d8d468192cde12027de5b175f5bc9dcd554ea5 (patch)
tree34ebe31058354258610fad2b48f5bf48dfc27460 /src/fileio.c
parent1d673d85da7649c03cd8fd4e987c68778fdaab92 (diff)
downloademacs-57d8d468192cde12027de5b175f5bc9dcd554ea5.tar.gz
emacs-57d8d468192cde12027de5b175f5bc9dcd554ea5.zip
(Finsert_file_contents): Don't call prepare_to_modify_buffer
if inserting zero characters.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
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.")
2446 error ("maximum buffer size exceeded"); 2446 error ("maximum buffer size exceeded");
2447 } 2447 }
2448 2448
2449 if (NILP (visit)) 2449 if (NILP (visit) && total > 0)
2450 prepare_to_modify_buffer (point, point); 2450 prepare_to_modify_buffer (point, point);
2451 2451
2452 move_gap (point); 2452 move_gap (point);