Mercurial > emacs
diff src/buffer.h @ 9436:907353876b8b
(OVERLAY_POSITION): Marker assert now tests substructure.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 11 Oct 1994 07:45:41 +0000 |
parents | 698990d4feca |
children | 93977a321baa |
line wrap: on
line diff
--- a/src/buffer.h Tue Oct 11 07:45:20 1994 +0000 +++ b/src/buffer.h Tue Oct 11 07:45:41 1994 +0000 @@ -426,8 +426,9 @@ /* 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_Marker ? marker_position ((P)) : (abort (), 0)) +#define OVERLAY_POSITION(P) \ + (XGCTYPE ((P)) == Lisp_Misc && XMISC ((P))->type == Lisp_Misc_Marker \ + ? marker_position ((P)) : (abort (), 0)) /* Allocation of buffer text. */