summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 34d92fd61c7..3ab666c07bf 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -370,7 +370,7 @@ extern Lisp_Object Vtransient_mark_mode;
Therefore, we cannot assume that they remain valid--we must check. */
/* 1 if the OV is a cons cell whose car is a cons cell. */
-#define OVERLAY_VALID(OV) (CONSP ((OV)) && CONSP (XCONS ((OV))->car))
+#define OVERLAY_VALID(OV) (OVERLAYP (OV))
/* Return the marker that stands for where OV starts in the buffer. */
#define OVERLAY_START(OV) (XCONS (XCONS ((OV))->car)->car)
@@ -386,7 +386,6 @@ extern Lisp_Object Vtransient_mark_mode;
((MARKERP ((P)) && XMARKER ((P))->buffer == current_buffer) \
? marker_position ((P)) : 0)
-
/* Allocation of buffer text. */
#ifdef REL_ALLOC