1423 |
if (! EQ (current_buffer->undo_list, Qt)) |
if (! EQ (current_buffer->undo_list, Qt)) |
1424 |
deletion = make_buffer_string_both (from, from_byte, to, to_byte, 1); |
deletion = make_buffer_string_both (from, from_byte, to, to_byte, 1); |
1425 |
|
|
|
if (markers) |
|
|
/* Relocate all markers pointing into the new, larger gap |
|
|
to point at the end of the text before the gap. |
|
|
Do this before recording the deletion, |
|
|
so that undo handles this after reinserting the text. */ |
|
|
adjust_markers_for_delete (from, from_byte, to, to_byte); |
|
|
|
|
1426 |
GAP_SIZE += nbytes_del; |
GAP_SIZE += nbytes_del; |
1427 |
ZV -= nchars_del; |
ZV -= nchars_del; |
1428 |
Z -= nchars_del; |
Z -= nchars_del; |
1482 |
adjusting the markers that bound the overlays. */ |
adjusting the markers that bound the overlays. */ |
1483 |
adjust_overlays_for_delete (from, nchars_del); |
adjust_overlays_for_delete (from, nchars_del); |
1484 |
adjust_overlays_for_insert (from, inschars); |
adjust_overlays_for_insert (from, inschars); |
1485 |
|
|
1486 |
|
/* Adjust markers for the deletion and the insertion. */ |
1487 |
if (markers) |
if (markers) |
1488 |
adjust_markers_for_insert (from, from_byte, |
adjust_markers_for_replace (from, from_byte, nchars_del, nbytes_del, |
1489 |
from + inschars, from_byte + outgoing_insbytes, |
inschars, outgoing_insbytes); |
|
0); |
|
1490 |
|
|
1491 |
offset_intervals (current_buffer, from, inschars - nchars_del); |
offset_intervals (current_buffer, from, inschars - nchars_del); |
1492 |
|
|