summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-11-15 23:55:03 +0000
committerKarl Heuer <kwzh@gnu.org>1994-11-15 23:55:03 +0000
commitb3f2e08dc3aa588ff2d7a2a6230a81f0dbc40b34 (patch)
treebf84b1806fd2c431bd856004a240373fd9d17f37 /src/buffer.h
parent6dfaaffa93520beca97bb98e82506ca7840e4411 (diff)
downloademacs-b3f2e08dc3aa588ff2d7a2a6230a81f0dbc40b34.tar.gz
(OVERLAY_POSITION): Use the new type-test macros.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 2adcd95b0cc..132db637eb7 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -426,9 +426,8 @@ extern Lisp_Object Vtransient_mark_mode;
/* Return the actual buffer position for the marker P.
We assume you know which buffer it's pointing into. */
-#define OVERLAY_POSITION(P) \
- (XGCTYPE ((P)) == Lisp_Misc && XMISC ((P))->type == Lisp_Misc_Marker \
- ? marker_position ((P)) : (abort (), 0))
+#define OVERLAY_POSITION(P) \
+ (GC_MARKERP (P) ? marker_position (P) : (abort (), 0))
/* Allocation of buffer text. */