]> code.delx.au - gnu-emacs/blobdiff - src/buffer.c
(Foverlay_put): Pass redisplay_region a struct buffer *.
[gnu-emacs] / src / buffer.c
index 9561035e334e954841eccd440ad629cd70570a90..5b4cf3a6162d86aa7b1a1e03a0f9f9d25f6d748c 100644 (file)
@@ -2130,7 +2130,7 @@ DEFUN ("overlay-put", Foverlay_put, Soverlay_put, 3, 3, 0,
       {
        /* If actually changing the property, mark redisplay needed.  */
        if (! NILP (buffer) && !EQ (XCONS (XCONS (tail)->cdr)->car, value))
-         redisplay_region (buffer,
+         redisplay_region (XBUFFER (buffer),
                            marker_position (OVERLAY_START (overlay)),
                            marker_position (OVERLAY_END   (overlay)));
 
@@ -2139,7 +2139,7 @@ DEFUN ("overlay-put", Foverlay_put, Soverlay_put, 3, 3, 0,
 
   /* Actually changing the property; mark redisplay needed.  */
   if (! NILP (buffer))
-    redisplay_region (buffer,
+    redisplay_region (XBUFFER (buffer),
                      marker_position (OVERLAY_START (overlay)),
                      marker_position (OVERLAY_END   (overlay)));