aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-10-07 00:41:24 +0000
committerGerd Moellmann1999-10-07 00:41:24 +0000
commitfef04523bd8f281fd26a976e506a7372bdd7b12f (patch)
tree1c177dfc29c7ab2c9c716f2db2d610485d2337e4 /src
parent577d9e2f1dfbcfffbc1c1295635be3fc9a5adf19 (diff)
downloademacs-fef04523bd8f281fd26a976e506a7372bdd7b12f.tar.gz
emacs-fef04523bd8f281fd26a976e506a7372bdd7b12f.zip
(Qbitmap_spec_p): Replaces Qpixmap_spec_p.
(Fbitmap_spec_p): Replaces Fpixmap_spec_p. (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of Fpixmap_spec_p and Qpixmap_spec_p. (load_face_colors, check_lface_attrs, merge_face_vector_with_property, Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p. (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr Fbitmap_spec_p.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 48429fcb8e9..7e1c0799e79 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -350,7 +350,7 @@ extern Lisp_Object Qmouse_face;
350 350
351/* Error symbol for wrong_type_argument in load_pixmap. */ 351/* Error symbol for wrong_type_argument in load_pixmap. */
352 352
353Lisp_Object Qpixmap_spec_p; 353Lisp_Object Qbitmap_spec_p;
354 354
355/* Alist of global face definitions. Each element is of the form 355/* Alist of global face definitions. Each element is of the form
356 (FACE . LFACE) where FACE is a symbol naming a face and LFACE 356 (FACE . LFACE) where FACE is a symbol naming a face and LFACE
@@ -838,10 +838,10 @@ clear_font_table (f)
838 838
839#ifdef HAVE_X_WINDOWS 839#ifdef HAVE_X_WINDOWS
840 840
841DEFUN ("pixmap-spec-p", Fpixmap_spec_p, Spixmap_spec_p, 1, 1, 0, 841DEFUN ("bitmap-spec-p", Fbitmap_spec_p, Sbitmap_spec_p, 1, 1, 0,
842 "Value is non-nil if OBJECT is a valid pixmap specification.\n\ 842 "Value is non-nil if OBJECT is a valid bitmap specification.\n\
843A pixmap specification is either a string, a file name, or a list\n\ 843A bitmap specification is either a string, a file name, or a list\n\
844(WIDTH HEIGHT DATA) where WIDTH is the pixel width of the pixmap,\n\ 844(WIDTH HEIGHT DATA) where WIDTH is the pixel width of the bitmap,\n\
845HEIGHT is its height, and DATA is a string containing the bits of\n\ 845HEIGHT is its height, and DATA is a string containing the bits of\n\
846the pixmap. Bits are stored row by row, each row occupies\n\ 846the pixmap. Bits are stored row by row, each row occupies\n\
847(WIDTH + 7)/8 bytes.") 847(WIDTH + 7)/8 bytes.")
@@ -907,9 +907,9 @@ load_pixmap (f, name, w_ptr, h_ptr)
907 if (NILP (name)) 907 if (NILP (name))
908 return 0; 908 return 0;
909 909
910 tem = Fpixmap_spec_p (name); 910 tem = Fbitmap_spec_p (name);
911 if (NILP (tem)) 911 if (NILP (tem))
912 wrong_type_argument (Qpixmap_spec_p, name); 912 wrong_type_argument (Qbitmap_spec_p, name);
913 913
914 BLOCK_INPUT; 914 BLOCK_INPUT;
915 if (CONSP (name)) 915 if (CONSP (name))
@@ -1255,7 +1255,7 @@ load_face_colors (f, face, attrs)
1255 "supported" as background because we are supposed to use stipple 1255 "supported" as background because we are supposed to use stipple
1256 for them. */ 1256 for them. */
1257 if (!face_color_supported_p (f, XSTRING (bg)->data, 0) 1257 if (!face_color_supported_p (f, XSTRING (bg)->data, 0)
1258 && !NILP (Fpixmap_spec_p (Vface_default_stipple))) 1258 && !NILP (Fbitmap_spec_p (Vface_default_stipple)))
1259 { 1259 {
1260 x_destroy_bitmap (f, face->stipple); 1260 x_destroy_bitmap (f, face->stipple);
1261 face->stipple = load_pixmap (f, Vface_default_stipple, 1261 face->stipple = load_pixmap (f, Vface_default_stipple,
@@ -2568,7 +2568,7 @@ check_lface_attrs (attrs)
2568#ifdef HAVE_WINDOW_SYSTEM 2568#ifdef HAVE_WINDOW_SYSTEM
2569 xassert (UNSPECIFIEDP (attrs[LFACE_STIPPLE_INDEX]) 2569 xassert (UNSPECIFIEDP (attrs[LFACE_STIPPLE_INDEX])
2570 || SYMBOLP (attrs[LFACE_STIPPLE_INDEX]) 2570 || SYMBOLP (attrs[LFACE_STIPPLE_INDEX])
2571 || !NILP (Fpixmap_spec_p (attrs[LFACE_STIPPLE_INDEX]))); 2571 || !NILP (Fbitmap_spec_p (attrs[LFACE_STIPPLE_INDEX])));
2572#endif 2572#endif
2573} 2573}
2574 2574
@@ -2957,7 +2957,7 @@ merge_face_vector_with_property (f, to, prop)
2957 else if (EQ (keyword, QCstipple)) 2957 else if (EQ (keyword, QCstipple))
2958 { 2958 {
2959#ifdef HAVE_X_WINDOWS 2959#ifdef HAVE_X_WINDOWS
2960 Lisp_Object pixmap_p = Fpixmap_spec_p (value); 2960 Lisp_Object pixmap_p = Fbitmap_spec_p (value);
2961 if (!NILP (pixmap_p)) 2961 if (!NILP (pixmap_p))
2962 to[LFACE_STIPPLE_INDEX] = value; 2962 to[LFACE_STIPPLE_INDEX] = value;
2963 else 2963 else
@@ -3379,7 +3379,7 @@ frame.")
3379#ifdef HAVE_X_WINDOWS 3379#ifdef HAVE_X_WINDOWS
3380 if (!UNSPECIFIEDP (value) 3380 if (!UNSPECIFIEDP (value)
3381 && !NILP (value) 3381 && !NILP (value)
3382 && NILP (Fpixmap_spec_p (value))) 3382 && NILP (Fbitmap_spec_p (value)))
3383 signal_error ("Invalid stipple attribute", value); 3383 signal_error ("Invalid stipple attribute", value);
3384 old_value = LFACE_STIPPLE (lface); 3384 old_value = LFACE_STIPPLE (lface);
3385 LFACE_STIPPLE (lface) = value; 3385 LFACE_STIPPLE (lface) = value;
@@ -6474,8 +6474,8 @@ syms_of_xfaces ()
6474{ 6474{
6475 Qface = intern ("face"); 6475 Qface = intern ("face");
6476 staticpro (&Qface); 6476 staticpro (&Qface);
6477 Qpixmap_spec_p = intern ("pixmap-spec-p"); 6477 Qbitmap_spec_p = intern ("bitmap-spec-p");
6478 staticpro (&Qpixmap_spec_p); 6478 staticpro (&Qbitmap_spec_p);
6479 Qframe_update_face_colors = intern ("frame-update-face-colors"); 6479 Qframe_update_face_colors = intern ("frame-update-face-colors");
6480 staticpro (&Qframe_update_face_colors); 6480 staticpro (&Qframe_update_face_colors);
6481 6481
@@ -6666,7 +6666,7 @@ scaled if its name matches a regular expression in the list.");
6666#endif /* SCALABLE_FONTS */ 6666#endif /* SCALABLE_FONTS */
6667 6667
6668#ifdef HAVE_X_WINDOWS 6668#ifdef HAVE_X_WINDOWS
6669 defsubr (&Spixmap_spec_p); 6669 defsubr (&Sbitmap_spec_p);
6670 defsubr (&Sx_list_fonts); 6670 defsubr (&Sx_list_fonts);
6671 defsubr (&Sinternal_face_x_get_resource); 6671 defsubr (&Sinternal_face_x_get_resource);
6672 defsubr (&Sx_family_fonts); 6672 defsubr (&Sx_family_fonts);