aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorKarl Heuer1994-10-11 07:45:41 +0000
committerKarl Heuer1994-10-11 07:45:41 +0000
commite11a302f2682635c574b0e25359ba89626f9c990 (patch)
treeca3a3c3581e1f02b2a33b8fe0afeaa7de5891b86 /src/buffer.h
parent84d1833ed83fa7899e8d50379b52914d16415ba0 (diff)
downloademacs-e11a302f2682635c574b0e25359ba89626f9c990.tar.gz
emacs-e11a302f2682635c574b0e25359ba89626f9c990.zip
(OVERLAY_POSITION): Marker assert now tests substructure.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 4e2a6495886..d456e1bd68e 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -426,8 +426,9 @@ extern Lisp_Object Vtransient_mark_mode;
426/* Return the actual buffer position for the marker P. 426/* Return the actual buffer position for the marker P.
427 We assume you know which buffer it's pointing into. */ 427 We assume you know which buffer it's pointing into. */
428 428
429#define OVERLAY_POSITION(P) \ 429#define OVERLAY_POSITION(P) \
430 (XGCTYPE ((P)) == Lisp_Marker ? marker_position ((P)) : (abort (), 0)) 430 (XGCTYPE ((P)) == Lisp_Misc && XMISC ((P))->type == Lisp_Misc_Marker \
431 ? marker_position ((P)) : (abort (), 0))
431 432
432/* Allocation of buffer text. */ 433/* Allocation of buffer text. */
433 434