HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
46fa307
)
(del_range): Call record_delete before updating point.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 28 Sep 1992 13:10:15 +0000
(13:10 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 28 Sep 1992 13:10:15 +0000
(13:10 +0000)
src/insdel.c
patch
|
blob
|
blame
|
history
diff --git
a/src/insdel.c
b/src/insdel.c
index
1deda9d
..
489f80f
100644
(file)
--- a/
src/insdel.c
+++ b/
src/insdel.c
@@
-425,6
+425,9
@@
del_range (from, to)
prepare_to_modify_buffer (from, to);
prepare_to_modify_buffer (from, to);
+ record_delete (from, numdel);
+ MODIFF++;
+
/* Relocate point as if it were a marker. */
if (from < point)
{
/* Relocate point as if it were a marker. */
if (from < point)
{
@@
-434,9
+437,6
@@
del_range (from, to)
SET_PT (point - numdel);
}
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);
/* 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);