Mercurial > emacs
changeset 5237:378540cf056f
(del_range): Second argument in call to
offset_intervals is 'from', not 'point'.
(modify_region): Call record_first_change if necessary.
(insert_from_string): Pass LENGTH arg to graft_intervals_into_buffer.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 23 Dec 1993 01:19:25 +0000 |
parents | 3be757b02da0 |
children | 63932e111cc5 |
files | src/insdel.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/insdel.c Thu Dec 23 01:15:13 1993 +0000 +++ b/src/insdel.c Thu Dec 23 01:19:25 1993 +0000 @@ -456,7 +456,7 @@ } /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ - offset_intervals (current_buffer, point, - numdel); + offset_intervals (current_buffer, from, - numdel); /* Relocate all markers pointing into the new, larger gap to point at the end of the text before the gap. */ @@ -495,6 +495,9 @@ if (Z - end < end_unchanged || unchanged_modified == MODIFF) end_unchanged = Z - end; + + if (MODIFF <= current_buffer->save_modified) + record_first_change (); MODIFF++; if (buffer != old_buffer)