bcopy (string, GPT_ADDR, length);
- /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
- offset_intervals (current_buffer, PT, length);
+#ifdef USE_TEXT_PROPERTIES
+ if (current_buffer->intervals != 0)
+ /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES. */
+ offset_intervals (current_buffer, PT, length);
+#endif
GAP_SIZE -= length;
GPT += length;
Z += length;
adjust_point (length);
- if (!inherit)
+#ifdef USE_TEXT_PROPERTIES
+ if (!inherit && current_buffer->intervals != 0)
Fset_text_properties (make_number (PT - length), make_number (PT),
Qnil, Qnil);
+#endif
}
/* Insert the part of the text of STRING, a Lisp object assumed to be
Fbarf_if_buffer_read_only ();
/* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
- verify_interval_modification (current_buffer, start, end);
+ if (current_buffer->intervals != 0)
+ verify_interval_modification (current_buffer, start, end);
- verify_overlay_modification (start, end);
+ if (!NILP (current_buffer->overlays_before)
+ || !NILP (current_buffer->overlays_after))
+ verify_overlay_modification (start, end);
#ifdef CLASH_DETECTION
if (!NILP (current_buffer->filename)