changeset 6098:b91e19be1513

(OVERLAY_POSITION): Don't check which buffer it points to.
author Karl Heuer <kwzh@gnu.org>
date Sat, 26 Feb 1994 04:05:17 +0000
parents adf5b18629c8
children 19eaf70457d4
files src/buffer.h
diffstat 1 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.h	Sat Feb 26 03:43:32 1994 +0000
+++ b/src/buffer.h	Sat Feb 26 04:05:17 1994 +0000
@@ -373,10 +373,7 @@
 
 /* Overlays */
 
-/* Overlays are ordinary Lisp objects, and users can alter their contents.
-   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.  */
+/* 1 if the OV is an overlay object.  */
 #define OVERLAY_VALID(OV) (OVERLAYP (OV))
 
 /* Return the marker that stands for where OV starts in the buffer.  */
@@ -385,13 +382,11 @@
 /* Return the marker that stands for where OV ends in the buffer.  */
 #define OVERLAY_END(OV) (XCONS (XCONS ((OV))->car)->cdr)
 
-/* Return the actual buffer position for the marker P,
-   if it is a marker and points into the current buffer.
-   Otherwise, zero.  */
+/* Return the actual buffer position for the marker P.
+   We assume you know which buffer it's pointing into.  */
 
 #define OVERLAY_POSITION(P)					\
- ((MARKERP ((P)) && XMARKER ((P))->buffer == current_buffer)	\
-  ? marker_position ((P)) : 0)
+ (MARKERP ((P)) ? marker_position ((P)) : (abort (), 0))
 
 /* Allocation of buffer text.  */