diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-12-23 01:19:25 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-12-23 01:19:25 +0000 |
commit | ca2942c77479534c7e42467e6688aa076fb01d77 (patch) | |
tree | 2f0b32fa0d6de41f81c05275f6b1d05156604a7e /src/insdel.c | |
parent | 9f4dea40e3e95f40aeafed3ef9ceaf7012028b72 (diff) | |
download | emacs-ca2942c77479534c7e42467e6688aa076fb01d77.tar.gz |
(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.
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/insdel.c b/src/insdel.c index 711e272da59..2a84b4d533d 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -456,7 +456,7 @@ del_range (from, to) } /* 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 @@ modify_region (buffer, start, end) 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) |