/[emacs]/emacs/src/insdel.c
ViewVC logotype

Diff of /emacs/src/insdel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.159 by gerd, Fri Oct 26 12:02:21 2001 UTC revision 1.160 by rms, Sun Nov 11 20:04:45 2001 UTC
# Line 1423  replace_range (from, to, new, prepare, i Line 1423  replace_range (from, to, new, prepare, i
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;
# Line 1489  replace_range (from, to, new, prepare, i Line 1482  replace_range (from, to, new, prepare, i
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    

Legend:
Removed from v.1.159  
changed lines
  Added in v.1.160

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26