Mercurial > emacs
comparison src/insdel.c @ 54555:b136a4512609
* insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
* buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
* editfns.c (Ftranspose_regions): Likewise.
* lisp.h (top_level): Likewise.
author | Masatake YAMATO <jet@gyve.org> |
---|---|
date | Thu, 25 Mar 2004 18:05:29 +0000 |
parents | 695cf19ef79e |
children | eba675d00657 |
comparison
equal
deleted
inserted
replaced
54554:f1717549fabe | 54555:b136a4512609 |
---|---|
439 m->charpos += nchars; | 439 m->charpos += nchars; |
440 } | 440 } |
441 } | 441 } |
442 | 442 |
443 /* Adjusting only markers whose insertion-type is t may result in | 443 /* Adjusting only markers whose insertion-type is t may result in |
444 disordered overlays in the slot `overlays_before'. */ | 444 - disordered start and end in overlays, and |
445 - disordered overlays in the slot `overlays_before' of current_buffer. */ | |
445 if (adjusted) | 446 if (adjusted) |
446 fix_overlays_before (current_buffer, from, to); | 447 { |
448 fix_start_end_in_overlays(from, to); | |
449 fix_overlays_before (current_buffer, from, to); | |
450 } | |
447 } | 451 } |
448 | 452 |
449 /* Adjust point for an insertion of NBYTES bytes, which are NCHARS characters. | 453 /* Adjust point for an insertion of NBYTES bytes, which are NCHARS characters. |
450 | 454 |
451 This is used only when the value of point changes due to an insert | 455 This is used only when the value of point changes due to an insert |