* fileio.c (Finsert_file_contents): Call offset_intervals() if
authorJoseph Arceneaux <jla@gnu.org>
Fri, 2 Oct 1992 18:59:40 +0000 (18:59 +0000)
committerJoseph Arceneaux <jla@gnu.org>
Fri, 2 Oct 1992 18:59:40 +0000 (18:59 +0000)
text was actually inserted.
#include "intervals.h".

src/fileio.c

index a7c2ef2..e567ed9 100644 (file)
@@ -52,6 +52,7 @@ extern int sys_nerr;
 #endif
 
 #include "lisp.h"
+#include "intervals.h"
 #include "buffer.h"
 #include "window.h"
 
@@ -2320,6 +2321,9 @@ before the error is signaled.")
   if (inserted > 0)
     {
       record_insert (point, inserted);
+
+      /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
+      offset_intervals (current_buffer, point, inserted);
       MODIFF++;
     }