aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-04-05 12:13:17 +0000
committerGerd Moellmann2001-04-05 12:13:17 +0000
commit441bf85699fa9dc69b29687b648aef355d95d6d5 (patch)
treea27399a0d32ea00c6f064687fd293b139cf6a92f /src
parent37a0ae84a49fcec4f13ea64187ecf3fcd4b6f95a (diff)
downloademacs-441bf85699fa9dc69b29687b648aef355d95d6d5.tar.gz
emacs-441bf85699fa9dc69b29687b648aef355d95d6d5.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/xfaces.c10
2 files changed, 11 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 36eac1ca486..96fbf3120d9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12001-04-05 Gerd Moellmann <gerd@gnu.org>
2
3 * xfaces.c (realizing_basic_faces_p): Renamed from
4 realize_default_face_p.
5 (realize_basic_faces): Set/clear realizing_basic_faces_p.
6 (realize_default_face): Don't set the flag.
7
12001-04-04 Gerd Moellmann <gerd@gnu.org> 82001-04-04 Gerd Moellmann <gerd@gnu.org>
2 9
3 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare. 10 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
diff --git a/src/xfaces.c b/src/xfaces.c
index caf69488145..ac8a771e847 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -489,7 +489,7 @@ static Lisp_Object Vparam_value_alist;
489 489
490/* Non-zero while realizing the default face. */ 490/* Non-zero while realizing the default face. */
491 491
492static int realizing_default_face_p; 492static int realizing_basic_faces_p;
493 493
494/* The total number of colors currently allocated. */ 494/* The total number of colors currently allocated. */
495 495
@@ -2362,7 +2362,7 @@ x_face_list_fonts (f, pattern, fonts, nfonts, try_alternatives_p)
2362 2362
2363 /* If someone specified a default font that's scalable, try 2363 /* If someone specified a default font that's scalable, try
2364 to do the right thing. */ 2364 to do the right thing. */
2365 if (realizing_default_face_p 2365 if (realizing_basic_faces_p
2366 && try_alternatives_p 2366 && try_alternatives_p
2367 && n == 0 2367 && n == 0
2368 && nignored > 0) 2368 && nignored > 0)
@@ -5954,6 +5954,7 @@ realize_basic_faces (f)
5954 /* Block input there so that we won't be surprised by an X expose 5954 /* Block input there so that we won't be surprised by an X expose
5955 event, for instance without having the faces set up. */ 5955 event, for instance without having the faces set up. */
5956 BLOCK_INPUT; 5956 BLOCK_INPUT;
5957 realizing_basic_faces_p = 1;
5957 5958
5958 if (realize_default_face (f)) 5959 if (realize_default_face (f))
5959 { 5960 {
@@ -5979,6 +5980,7 @@ realize_basic_faces (f)
5979 success_p = 1; 5980 success_p = 1;
5980 } 5981 }
5981 5982
5983 realizing_basic_faces_p = 0;
5982 UNBLOCK_INPUT; 5984 UNBLOCK_INPUT;
5983 return success_p; 5985 return success_p;
5984} 5986}
@@ -6081,11 +6083,7 @@ realize_default_face (f)
6081 xassert (lface_fully_specified_p (XVECTOR (lface)->contents)); 6083 xassert (lface_fully_specified_p (XVECTOR (lface)->contents));
6082 check_lface (lface); 6084 check_lface (lface);
6083 bcopy (XVECTOR (lface)->contents, attrs, sizeof attrs); 6085 bcopy (XVECTOR (lface)->contents, attrs, sizeof attrs);
6084
6085 realizing_default_face_p = 1;
6086 face = realize_face (c, attrs, 0, NULL, DEFAULT_FACE_ID); 6086 face = realize_face (c, attrs, 0, NULL, DEFAULT_FACE_ID);
6087 realizing_default_face_p = 0;
6088
6089 return 1; 6087 return 1;
6090} 6088}
6091 6089