Mercurial > emacs
changeset 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 | 3a157cdf395c |
children | c7d7fb56b42d |
files | src/buffer.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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. */