changeset 5129:d48d18e20316

(Finsert_file_contents): Don't call signal_after_change if we did not call prepare_to_modify_buffer.
author Richard M. Stallman <rms@gnu.org>
date Tue, 23 Nov 1993 10:09:44 +0000
parents 16e75a0b53e5
children ddee29e260d2
files src/fileio.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Tue Nov 23 09:57:33 1993 +0000
+++ b/src/fileio.c	Tue Nov 23 10:09:44 1993 +0000
@@ -2558,7 +2558,8 @@
 	report_file_error ("Opening input file", Fcons (filename, Qnil));
     }
 
-  signal_after_change (point, 0, inserted);
+  if (NILP (visit) && total > 0)
+    signal_after_change (point, 0, inserted);
   
   if (inserted > 0)
     {