# HG changeset patch # User Gerd Moellmann # Date 986472770 0 # Node ID f4dc837b8ebb18fa01529dab17e5c29c36b4dcc8 # Parent 74427fab3e58e8cd9ba0bf1d0ce1db884088df19 (realizing_basic_faces_p): Renamed from realize_default_face_p. (realize_basic_faces): Set/clear realizing_basic_faces_p. (realize_default_face): Don't set the flag. diff -r 74427fab3e58 -r f4dc837b8ebb src/xfaces.c --- a/src/xfaces.c Thu Apr 05 12:01:19 2001 +0000 +++ b/src/xfaces.c Thu Apr 05 12:12:50 2001 +0000 @@ -489,7 +489,7 @@ /* Non-zero while realizing the default face. */ -static int realizing_default_face_p; +static int realizing_basic_faces_p; /* The total number of colors currently allocated. */ @@ -2362,7 +2362,7 @@ /* If someone specified a default font that's scalable, try to do the right thing. */ - if (realizing_default_face_p + if (realizing_basic_faces_p && try_alternatives_p && n == 0 && nignored > 0) @@ -5954,6 +5954,7 @@ /* Block input there so that we won't be surprised by an X expose event, for instance without having the faces set up. */ BLOCK_INPUT; + realizing_basic_faces_p = 1; if (realize_default_face (f)) { @@ -5979,6 +5980,7 @@ success_p = 1; } + realizing_basic_faces_p = 0; UNBLOCK_INPUT; return success_p; } @@ -6081,11 +6083,7 @@ xassert (lface_fully_specified_p (XVECTOR (lface)->contents)); check_lface (lface); bcopy (XVECTOR (lface)->contents, attrs, sizeof attrs); - - realizing_default_face_p = 1; face = realize_face (c, attrs, 0, NULL, DEFAULT_FACE_ID); - realizing_default_face_p = 0; - return 1; }