aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-02 00:24:11 +0000
committerRichard M. Stallman1997-06-02 00:24:11 +0000
commit80509f2f6e92a9c4cfce9d42347f0cdcbff4e864 (patch)
treeff495546167535c2d8fe2b84bd861966a2a88642 /src
parent50aee051c38a6faa6e67f014bbf9499fd2b61448 (diff)
downloademacs-80509f2f6e92a9c4cfce9d42347f0cdcbff4e864.tar.gz
emacs-80509f2f6e92a9c4cfce9d42347f0cdcbff4e864.zip
(Fmove_overlay): Clean up setting o_beg and o_end.
Diffstat (limited to 'src')
-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.")
2819 Lisp_Object o_beg; 2819 Lisp_Object o_beg;
2820 Lisp_Object o_end; 2820 Lisp_Object o_end;
2821 2821
2822 o_beg = OVERLAY_START (overlay); 2822 o_beg = OVERLAY_POSITION (OVERLAY_START (overlay));
2823 o_end = OVERLAY_END (overlay); 2823 o_end = OVERLAY_POSITION (OVERLAY_END (overlay));
2824 o_beg = OVERLAY_POSITION (o_beg);
2825 o_end = OVERLAY_POSITION (o_end);
2826 2824
2827 modify_overlay (ob, XINT (o_beg), XINT (o_end)); 2825 modify_overlay (ob, XINT (o_beg), XINT (o_end));
2828 } 2826 }
@@ -2837,10 +2835,8 @@ buffer.")
2837 Lisp_Object o_end; 2835 Lisp_Object o_end;
2838 int change_beg, change_end; 2836 int change_beg, change_end;
2839 2837
2840 o_beg = OVERLAY_START (overlay); 2838 o_beg = OVERLAY_POSITION (OVERLAY_START (overlay));
2841 o_end = OVERLAY_END (overlay); 2839 o_end = OVERLAY_POSITION (OVERLAY_END (overlay));
2842 o_beg = OVERLAY_POSITION (o_beg);
2843 o_end = OVERLAY_POSITION (o_end);
2844 2840
2845 if (XINT (o_beg) == XINT (beg)) 2841 if (XINT (o_beg) == XINT (beg))
2846 modify_overlay (b, XINT (o_end), XINT (end)); 2842 modify_overlay (b, XINT (o_end), XINT (end));