# HG changeset patch # User Kim F. Storm # Date 1084834166 0 # Node ID edc2b57535e5dffb8c33e9a6118393930a7eed97 # Parent 5b5102265ed82c14373ac2516a2da12db2eda049 (face_at_buffer_position): Use GET_OVERLAYS_AT. diff -r 5b5102265ed8 -r edc2b57535e5 src/xfaces.c --- a/src/xfaces.c Mon May 17 22:48:56 2004 +0000 +++ b/src/xfaces.c Mon May 17 22:49:26 2004 +0000 @@ -7297,24 +7297,8 @@ /* Look at properties from overlays. */ { int next_overlay; - int len; - - /* First try with room for 40 overlays. */ - len = 40; - overlay_vec = (Lisp_Object *) alloca (len * sizeof (Lisp_Object)); - noverlays = overlays_at (pos, 0, &overlay_vec, &len, - &next_overlay, NULL, 0); - - /* If there are more than 40, make enough space for all, and try - again. */ - if (noverlays > len) - { - len = noverlays; - overlay_vec = (Lisp_Object *) alloca (len * sizeof (Lisp_Object)); - noverlays = overlays_at (pos, 0, &overlay_vec, &len, - &next_overlay, NULL, 0); - } - + + GET_OVERLAYS_AT (pos, overlay_vec, noverlays, &next_overlay, 0); if (next_overlay < endpos) endpos = next_overlay; }