aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThien-Thi Nguyen2003-12-24 06:39:58 +0000
committerThien-Thi Nguyen2003-12-24 06:39:58 +0000
commit2d176448abfc1a9142437d05b7a356eaa8fe6670 (patch)
treed5b005fd17e9309fca102954bd913692afae62a7 /src
parentf74b529c5f57ee01ff437023ada6bd9f5f57c94b (diff)
downloademacs-2d176448abfc1a9142437d05b7a356eaa8fe6670.tar.gz
emacs-2d176448abfc1a9142437d05b7a356eaa8fe6670.zip
(Fcolor_gray_p): Fix omission bug:
In case `frame' is nil, consult the selected frame. (Fcolor_supported_p): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xfaces.c14
2 files changed, 16 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c9cf8c71531..f2277e54dc6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2
3 * xfaces.c (Fcolor_gray_p): Fix omission bug:
4 In case `frame' is nil, consult the selected frame.
5 (Fcolor_supported_p): Likewise.
6
12003-12-23 Luc Teirlinck <teirllm@auburn.edu> 72003-12-23 Luc Teirlinck <teirllm@auburn.edu>
2 8
3 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range): 9 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
diff --git a/src/xfaces.c b/src/xfaces.c
index 96a1d52b3c2..37a3cc1b0f0 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1526,8 +1526,11 @@ If FRAME is nil or omitted, use the selected frame. */)
1526{ 1526{
1527 struct frame *f; 1527 struct frame *f;
1528 1528
1529 CHECK_FRAME (frame);
1530 CHECK_STRING (color); 1529 CHECK_STRING (color);
1530 if (NILP (frame))
1531 frame = selected_frame;
1532 else
1533 CHECK_FRAME (frame);
1531 f = XFRAME (frame); 1534 f = XFRAME (frame);
1532 return face_color_gray_p (f, SDATA (color)) ? Qt : Qnil; 1535 return face_color_gray_p (f, SDATA (color)) ? Qt : Qnil;
1533} 1536}
@@ -1544,8 +1547,11 @@ COLOR must be a valid color name. */)
1544{ 1547{
1545 struct frame *f; 1548 struct frame *f;
1546 1549
1547 CHECK_FRAME (frame);
1548 CHECK_STRING (color); 1550 CHECK_STRING (color);
1551 if (NILP (frame))
1552 frame = selected_frame;
1553 else
1554 CHECK_FRAME (frame);
1549 f = XFRAME (frame); 1555 f = XFRAME (frame);
1550 if (face_color_supported_p (f, SDATA (color), !NILP (background_p))) 1556 if (face_color_supported_p (f, SDATA (color), !NILP (background_p)))
1551 return Qt; 1557 return Qt;
@@ -2252,7 +2258,7 @@ static double
2252font_rescale_ratio (name) 2258font_rescale_ratio (name)
2253 char *name; 2259 char *name;
2254{ 2260{
2255 Lisp_Object tail, elt; 2261 Lisp_Object tail, elt;
2256 2262
2257 for (tail = Vface_font_rescale_alist; CONSP (tail); tail = XCDR (tail)) 2263 for (tail = Vface_font_rescale_alist; CONSP (tail); tail = XCDR (tail))
2258 { 2264 {
@@ -2465,7 +2471,7 @@ x_face_list_fonts (f, pattern, pfonts, nfonts, try_alternatives_p)
2465 2471
2466 if (nfonts < 0 && CONSP (lfonts)) 2472 if (nfonts < 0 && CONSP (lfonts))
2467 num_fonts = XFASTINT (Flength (lfonts)); 2473 num_fonts = XFASTINT (Flength (lfonts));
2468 2474
2469 /* Make a copy of the font names we got from X, and 2475 /* Make a copy of the font names we got from X, and
2470 split them into fields. */ 2476 split them into fields. */
2471 n = nignored = 0; 2477 n = nignored = 0;