mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-20 20:07:36 +00:00
(del_range): Call record_delete before updating point.
This commit is contained in:
parent
46fa307385
commit
be09561e2a
1 changed files with 3 additions and 3 deletions
|
|
@ -425,6 +425,9 @@ del_range (from, to)
|
|||
|
||||
prepare_to_modify_buffer (from, to);
|
||||
|
||||
record_delete (from, numdel);
|
||||
MODIFF++;
|
||||
|
||||
/* Relocate point as if it were a marker. */
|
||||
if (from < point)
|
||||
{
|
||||
|
|
@ -434,9 +437,6 @@ del_range (from, to)
|
|||
SET_PT (point - numdel);
|
||||
}
|
||||
|
||||
record_delete (from, numdel);
|
||||
MODIFF++;
|
||||
|
||||
/* Relocate all markers pointing into the new, larger gap
|
||||
to point at the end of the text before the gap. */
|
||||
adjust_markers (to + GAP_SIZE, to + GAP_SIZE, - numdel - GAP_SIZE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue