diff options
| author | Richard M. Stallman | 1992-09-28 13:10:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-09-28 13:10:15 +0000 |
| commit | be09561e2a423bd8d9699ff254c1199cc103254e (patch) | |
| tree | d0a5494b87b5bdeda47dc5a827273251348c2e99 /src | |
| parent | 46fa307385d0d53b3c32cbb006fe6a3d7ad4b7c4 (diff) | |
| download | emacs-be09561e2a423bd8d9699ff254c1199cc103254e.tar.gz emacs-be09561e2a423bd8d9699ff254c1199cc103254e.zip | |
(del_range): Call record_delete before updating point.
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/insdel.c b/src/insdel.c index 1deda9d7ac8..489f80f1ea3 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -425,6 +425,9 @@ del_range (from, to) | |||
| 425 | 425 | ||
| 426 | prepare_to_modify_buffer (from, to); | 426 | prepare_to_modify_buffer (from, to); |
| 427 | 427 | ||
| 428 | record_delete (from, numdel); | ||
| 429 | MODIFF++; | ||
| 430 | |||
| 428 | /* Relocate point as if it were a marker. */ | 431 | /* Relocate point as if it were a marker. */ |
| 429 | if (from < point) | 432 | if (from < point) |
| 430 | { | 433 | { |
| @@ -434,9 +437,6 @@ del_range (from, to) | |||
| 434 | SET_PT (point - numdel); | 437 | SET_PT (point - numdel); |
| 435 | } | 438 | } |
| 436 | 439 | ||
| 437 | record_delete (from, numdel); | ||
| 438 | MODIFF++; | ||
| 439 | |||
| 440 | /* Relocate all markers pointing into the new, larger gap | 440 | /* Relocate all markers pointing into the new, larger gap |
| 441 | to point at the end of the text before the gap. */ | 441 | to point at the end of the text before the gap. */ |
| 442 | adjust_markers (to + GAP_SIZE, to + GAP_SIZE, - numdel - GAP_SIZE); | 442 | adjust_markers (to + GAP_SIZE, to + GAP_SIZE, - numdel - GAP_SIZE); |