GPT += length;
ZV += length;
Z += length;
+ adjust_overlays_for_insert (PT, length);
adjust_point (length);
#ifdef USE_TEXT_PROPERTIES
GPT += length;
ZV += length;
Z += length;
+ adjust_overlays_for_insert (PT, length);
/* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
graft_intervals_into_buffer (XSTRING (string)->intervals, PT, length,
GPT += length;
ZV += length;
Z += length;
+ adjust_overlays_for_insert (PT, length);
adjust_point (length);
/* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
to point at the end of the text before the gap. */
adjust_markers (to + GAP_SIZE, to + GAP_SIZE, - numdel - GAP_SIZE);
+ /* Adjust the overlay center as needed. This must be done after
+ adjusting the markers that bound the overlays. */
+ adjust_overlays_for_delete (from, numdel);
+
GAP_SIZE += numdel;
ZV -= numdel;
Z -= numdel;