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:
75cf385
)
(del_range): Update point before offset_intervals.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 1 Mar 1993 08:55:35 +0000
(08:55 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 1 Mar 1993 08:55:35 +0000
(08:55 +0000)
src/insdel.c
patch
|
blob
|
blame
|
history
diff --git
a/src/insdel.c
b/src/insdel.c
index
7f25a96
..
3534544
100644
(file)
--- a/
src/insdel.c
+++ b/
src/insdel.c
@@
-444,9
+444,6
@@
del_range (from, to)
record_delete (from, numdel);
MODIFF++;
record_delete (from, numdel);
MODIFF++;
- /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
- offset_intervals (current_buffer, point, - numdel);
-
/* Relocate point as if it were a marker. */
if (from < point)
{
/* Relocate point as if it were a marker. */
if (from < point)
{
@@
-456,6
+453,9
@@
del_range (from, to)
SET_PT (point - numdel);
}
SET_PT (point - numdel);
}
+ /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
+ offset_intervals (current_buffer, point, - numdel);
+
/* 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);