summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-06-02 00:24:11 +0000
committerRichard M. Stallman <rms@gnu.org>1997-06-02 00:24:11 +0000
commit2a165caac2abc01a2ef3456d4ec805775bcb38f1 (patch)
tree847d8df4ccd842ec1fbbd01183db110ec49ff7d1
parent93da5d25e2a9523faa81baa4d7e3cccfc378c3d4 (diff)
downloademacs-2a165caac2abc01a2ef3456d4ec805775bcb38f1.tar.gz
(Fmove_overlay): Clean up setting o_beg and o_end.
-rw-r--r--src/buffer.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 3c914c23255..e3681eb74fe 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2819,10 +2819,8 @@ buffer.")
Lisp_Object o_beg;
Lisp_Object o_end;
- o_beg = OVERLAY_START (overlay);
- o_end = OVERLAY_END (overlay);
- o_beg = OVERLAY_POSITION (o_beg);
- o_end = OVERLAY_POSITION (o_end);
+ o_beg = OVERLAY_POSITION (OVERLAY_START (overlay));
+ o_end = OVERLAY_POSITION (OVERLAY_END (overlay));
modify_overlay (ob, XINT (o_beg), XINT (o_end));
}
@@ -2837,10 +2835,8 @@ buffer.")
Lisp_Object o_end;
int change_beg, change_end;
- o_beg = OVERLAY_START (overlay);
- o_end = OVERLAY_END (overlay);
- o_beg = OVERLAY_POSITION (o_beg);
- o_end = OVERLAY_POSITION (o_end);
+ o_beg = OVERLAY_POSITION (OVERLAY_START (overlay));
+ o_end = OVERLAY_POSITION (OVERLAY_END (overlay));
if (XINT (o_beg) == XINT (beg))
modify_overlay (b, XINT (o_end), XINT (end));