+2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
+
+ * xfaces.c (Fcolor_gray_p): Fix omission bug:
+ In case `frame' is nil, consult the selected frame.
+ (Fcolor_supported_p): Likewise.
+
2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
* fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
{
struct frame *f;
- CHECK_FRAME (frame);
CHECK_STRING (color);
+ if (NILP (frame))
+ frame = selected_frame;
+ else
+ CHECK_FRAME (frame);
f = XFRAME (frame);
return face_color_gray_p (f, SDATA (color)) ? Qt : Qnil;
}
{
struct frame *f;
- CHECK_FRAME (frame);
CHECK_STRING (color);
+ if (NILP (frame))
+ frame = selected_frame;
+ else
+ CHECK_FRAME (frame);
f = XFRAME (frame);
if (face_color_supported_p (f, SDATA (color), !NILP (background_p)))
return Qt;
font_rescale_ratio (name)
char *name;
{
- Lisp_Object tail, elt;
+ Lisp_Object tail, elt;
for (tail = Vface_font_rescale_alist; CONSP (tail); tail = XCDR (tail))
{
if (nfonts < 0 && CONSP (lfonts))
num_fonts = XFASTINT (Flength (lfonts));
-
+
/* Make a copy of the font names we got from X, and
split them into fields. */
n = nignored = 0;