diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-08-01 12:19:11 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-08-01 12:19:11 +0000 |
commit | 57d8d468192cde12027de5b175f5bc9dcd554ea5 (patch) | |
tree | 34ebe31058354258610fad2b48f5bf48dfc27460 /src/fileio.c | |
parent | 1d673d85da7649c03cd8fd4e987c68778fdaab92 (diff) | |
download | emacs-57d8d468192cde12027de5b175f5bc9dcd554ea5.tar.gz |
(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.c | 2 |
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.") error ("maximum buffer size exceeded"); } - if (NILP (visit)) + if (NILP (visit) && total > 0) prepare_to_modify_buffer (point, point); move_gap (point); |