changeset 18105:bc690c1e1950

(Fmove_overlay): Clean up setting o_beg and o_end.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 Jun 1997 00:24:11 +0000
parents b2a669ef69b1
children b129c5fd7925
files src/buffer.c
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Mon Jun 02 00:22:49 1997 +0000
+++ b/src/buffer.c	Mon Jun 02 00:24:11 1997 +0000
@@ -2819,10 +2819,8 @@
 	  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 @@
       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));