aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-14 10:36:32 +0000
committerGerd Moellmann2001-10-14 10:36:32 +0000
commit228299fa7111d1f2da3c2fa741bb27d7dc9c66af (patch)
tree562b09ff191ebd71d426b5b2e33df3f7dcac4977 /src/xfaces.c
parent37f6b5b6d246d36afcd658c8bdde1791eb790f63 (diff)
downloademacs-228299fa7111d1f2da3c2fa741bb27d7dc9c66af.tar.gz
emacs-228299fa7111d1f2da3c2fa741bb27d7dc9c66af.zip
Put doc strings in comments.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c364
1 files changed, 184 insertions, 180 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 867dcb8315a..476908e5b15 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -194,6 +194,7 @@ Boston, MA 02111-1307, USA. */
194#include <config.h> 194#include <config.h>
195#include <sys/types.h> 195#include <sys/types.h>
196#include <sys/stat.h> 196#include <sys/stat.h>
197#define DOC_STRINGS_IN_COMMENTS
197#include "lisp.h" 198#include "lisp.h"
198#include "charset.h" 199#include "charset.h"
199#include "keyboard.h" 200#include "keyboard.h"
@@ -668,8 +669,8 @@ unregister_colors (pixels, n)
668 669
669 670
670DEFUN ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0, 671DEFUN ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0,
671 "Dump currently allocated colors and their reference counts to stderr.") 672 /* Dump currently allocated colors to stderr. */
672 () 673 ())
673{ 674{
674 int i, n; 675 int i, n;
675 676
@@ -1016,9 +1017,9 @@ clear_face_cache (clear_fonts_p)
1016 1017
1017 1018
1018DEFUN ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0, 1019DEFUN ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0,
1019 "Clear face caches on all frames.\n\ 1020 /* Clear face caches on all frames.
1020Optional THOROUGHLY non-nil means try to free unused fonts, too.") 1021Optional THOROUGHLY non-nil means try to free unused fonts, too. */
1021 (thoroughly) 1022 (thoroughly))
1022 Lisp_Object thoroughly; 1023 Lisp_Object thoroughly;
1023{ 1024{
1024 clear_face_cache (!NILP (thoroughly)); 1025 clear_face_cache (!NILP (thoroughly));
@@ -1097,13 +1098,13 @@ clear_font_table (dpyinfo)
1097#ifdef HAVE_WINDOW_SYSTEM 1098#ifdef HAVE_WINDOW_SYSTEM
1098 1099
1099DEFUN ("bitmap-spec-p", Fbitmap_spec_p, Sbitmap_spec_p, 1, 1, 0, 1100DEFUN ("bitmap-spec-p", Fbitmap_spec_p, Sbitmap_spec_p, 1, 1, 0,
1100 "Value is non-nil if OBJECT is a valid bitmap specification.\n\ 1101 /* Value is non-nil if OBJECT is a valid bitmap specification.
1101A bitmap specification is either a string, a file name, or a list\n\ 1102A bitmap specification is either a string, a file name, or a list
1102(WIDTH HEIGHT DATA) where WIDTH is the pixel width of the bitmap,\n\ 1103\(WIDTH HEIGHT DATA) where WIDTH is the pixel width of the bitmap,
1103HEIGHT is its height, and DATA is a string containing the bits of\n\ 1104HEIGHT is its height, and DATA is a string containing the bits of
1104the pixmap. Bits are stored row by row, each row occupies\n\ 1105the pixmap. Bits are stored row by row, each row occupies
1105(WIDTH + 7)/8 bytes.") 1106\(WIDTH + 7)/8 bytes. */
1106 (object) 1107 (object))
1107 Lisp_Object object; 1108 Lisp_Object object;
1108{ 1109{
1109 int pixmap_p = 0; 1110 int pixmap_p = 0;
@@ -1481,10 +1482,10 @@ face_color_supported_p (f, color_name, background_p)
1481 1482
1482 1483
1483DEFUN ("color-gray-p", Fcolor_gray_p, Scolor_gray_p, 1, 2, 0, 1484DEFUN ("color-gray-p", Fcolor_gray_p, Scolor_gray_p, 1, 2, 0,
1484 "Return non-nil if COLOR is a shade of gray (or white or black).\n\ 1485 /* Return non-nil if COLOR is a shade of gray (or white or black).
1485FRAME specifies the frame and thus the display for interpreting COLOR.\n\ 1486FRAME specifies the frame and thus the display for interpreting COLOR.
1486If FRAME is nil or omitted, use the selected frame.") 1487If FRAME is nil or omitted, use the selected frame. */
1487 (color, frame) 1488 (color, frame))
1488 Lisp_Object color, frame; 1489 Lisp_Object color, frame;
1489{ 1490{
1490 struct frame *f; 1491 struct frame *f;
@@ -1498,11 +1499,11 @@ If FRAME is nil or omitted, use the selected frame.")
1498 1499
1499DEFUN ("color-supported-p", Fcolor_supported_p, 1500DEFUN ("color-supported-p", Fcolor_supported_p,
1500 Scolor_supported_p, 2, 3, 0, 1501 Scolor_supported_p, 2, 3, 0,
1501 "Return non-nil if COLOR can be displayed on FRAME.\n\ 1502 /* Return non-nil if COLOR can be displayed on FRAME.
1502BACKGROUND-P non-nil means COLOR is used as a background.\n\ 1503BACKGROUND-P non-nil means COLOR is used as a background.
1503If FRAME is nil or omitted, use the selected frame.\n\ 1504If FRAME is nil or omitted, use the selected frame.
1504COLOR must be a valid color name.") 1505COLOR must be a valid color name. */
1505 (color, frame, background_p) 1506 (color, frame, background_p))
1506 Lisp_Object frame, color, background_p; 1507 Lisp_Object frame, color, background_p;
1507{ 1508{
1508 struct frame *f; 1509 struct frame *f;
@@ -2691,22 +2692,22 @@ remove_duplicates (list)
2691 2692
2692 2693
2693DEFUN ("x-family-fonts", Fx_family_fonts, Sx_family_fonts, 0, 2, 0, 2694DEFUN ("x-family-fonts", Fx_family_fonts, Sx_family_fonts, 0, 2, 0,
2694 "Return a list of available fonts of family FAMILY on FRAME.\n\ 2695 /* Return a list of available fonts of family FAMILY on FRAME.
2695If FAMILY is omitted or nil, list all families.\n\ 2696If FAMILY is omitted or nil, list all families.
2696Otherwise, FAMILY must be a string, possibly containing wildcards\n\ 2697Otherwise, FAMILY must be a string, possibly containing wildcards
2697`?' and `*'.\n\ 2698`?' and `*'.
2698If FRAME is omitted or nil, use the selected frame.\n\ 2699If FRAME is omitted or nil, use the selected frame.
2699Each element of the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT\n\ 2700Each element of the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT
2700SLANT FIXED-P FULL REGISTRY-AND-ENCODING].\n\ 2701SLANT FIXED-P FULL REGISTRY-AND-ENCODING].
2701FAMILY is the font family name. POINT-SIZE is the size of the\n\ 2702FAMILY is the font family name. POINT-SIZE is the size of the
2702font in 1/10 pt. WIDTH, WEIGHT, and SLANT are symbols describing the\n\ 2703font in 1/10 pt. WIDTH, WEIGHT, and SLANT are symbols describing the
2703width, weight and slant of the font. These symbols are the same as for\n\ 2704width, weight and slant of the font. These symbols are the same as for
2704face attributes. FIXED-P is non-nil if the font is fixed-pitch.\n\ 2705face attributes. FIXED-P is non-nil if the font is fixed-pitch.
2705FULL is the full name of the font, and REGISTRY-AND-ENCODING is a string\n\ 2706FULL is the full name of the font, and REGISTRY-AND-ENCODING is a string
2706giving the registry and encoding of the font.\n\ 2707giving the registry and encoding of the font.
2707The result list is sorted according to the current setting of\n\ 2708The result list is sorted according to the current setting of
2708the face font sort order.") 2709the face font sort order. */
2709 (family, frame) 2710 (family, frame))
2710 Lisp_Object family, frame; 2711 Lisp_Object family, frame;
2711{ 2712{
2712 struct frame *f = check_x_frame (frame); 2713 struct frame *f = check_x_frame (frame);
@@ -2751,12 +2752,12 @@ the face font sort order.")
2751 2752
2752DEFUN ("x-font-family-list", Fx_font_family_list, Sx_font_family_list, 2753DEFUN ("x-font-family-list", Fx_font_family_list, Sx_font_family_list,
2753 0, 1, 0, 2754 0, 1, 0,
2754 "Return a list of available font families on FRAME.\n\ 2755 /* Return a list of available font families on FRAME.
2755If FRAME is omitted or nil, use the selected frame.\n\ 2756If FRAME is omitted or nil, use the selected frame.
2756Value is a list of conses (FAMILY . FIXED-P) where FAMILY\n\ 2757Value is a list of conses (FAMILY . FIXED-P) where FAMILY
2757is a font family, and FIXED-P is non-nil if fonts of that family\n\ 2758is a font family, and FIXED-P is non-nil if fonts of that family
2758are fixed-pitch.") 2759are fixed-pitch. */
2759 (frame) 2760 (frame))
2760 Lisp_Object frame; 2761 Lisp_Object frame;
2761{ 2762{
2762 struct frame *f = check_x_frame (frame); 2763 struct frame *f = check_x_frame (frame);
@@ -2798,26 +2799,26 @@ are fixed-pitch.")
2798 2799
2799 2800
2800DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 5, 0, 2801DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 5, 0,
2801 "Return a list of the names of available fonts matching PATTERN.\n\ 2802 /* Return a list of the names of available fonts matching PATTERN.
2802If optional arguments FACE and FRAME are specified, return only fonts\n\ 2803If optional arguments FACE and FRAME are specified, return only fonts
2803the same size as FACE on FRAME.\n\ 2804the same size as FACE on FRAME.
2804PATTERN is a string, perhaps with wildcard characters;\n\ 2805PATTERN is a string, perhaps with wildcard characters;
2805 the * character matches any substring, and\n\ 2806 the * character matches any substring, and
2806 the ? character matches any single character.\n\ 2807 the ? character matches any single character.
2807 PATTERN is case-insensitive.\n\ 2808 PATTERN is case-insensitive.
2808FACE is a face name--a symbol.\n\ 2809FACE is a face name--a symbol.
2809\n\ 2810
2810The return value is a list of strings, suitable as arguments to\n\ 2811The return value is a list of strings, suitable as arguments to
2811set-face-font.\n\ 2812set-face-font.
2812\n\ 2813
2813Fonts Emacs can't use may or may not be excluded\n\ 2814Fonts Emacs can't use may or may not be excluded
2814even if they match PATTERN and FACE.\n\ 2815even if they match PATTERN and FACE.
2815The optional fourth argument MAXIMUM sets a limit on how many\n\ 2816The optional fourth argument MAXIMUM sets a limit on how many
2816fonts to match. The first MAXIMUM fonts are reported.\n\ 2817fonts to match. The first MAXIMUM fonts are reported.
2817The optional fifth argument WIDTH, if specified, is a number of columns\n\ 2818The optional fifth argument WIDTH, if specified, is a number of columns
2818occupied by a character of a font. In that case, return only fonts\n\ 2819occupied by a character of a font. In that case, return only fonts
2819the WIDTH times as wide as FACE on FRAME.") 2820the WIDTH times as wide as FACE on FRAME. */
2820 (pattern, face, frame, maximum, width) 2821 (pattern, face, frame, maximum, width))
2821 Lisp_Object pattern, face, frame, maximum, width; 2822 Lisp_Object pattern, face, frame, maximum, width;
2822{ 2823{
2823 struct frame *f; 2824 struct frame *f;
@@ -3623,12 +3624,12 @@ merge_face_vector_with_property (f, to, prop)
3623 3624
3624DEFUN ("internal-make-lisp-face", Finternal_make_lisp_face, 3625DEFUN ("internal-make-lisp-face", Finternal_make_lisp_face,
3625 Sinternal_make_lisp_face, 1, 2, 0, 3626 Sinternal_make_lisp_face, 1, 2, 0,
3626 "Make FACE, a symbol, a Lisp face with all attributes nil.\n\ 3627 /* Make FACE, a symbol, a Lisp face with all attributes nil.
3627If FACE was not known as a face before, create a new one.\n\ 3628If FACE was not known as a face before, create a new one.
3628If optional argument FRAME is specified, make a frame-local face\n\ 3629If optional argument FRAME is specified, make a frame-local face
3629for that frame. Otherwise operate on the global face definition.\n\ 3630for that frame. Otherwise operate on the global face definition.
3630Value is a vector of face attributes.") 3631Value is a vector of face attributes. */
3631 (face, frame) 3632 (face, frame))
3632 Lisp_Object face, frame; 3633 Lisp_Object face, frame;
3633{ 3634{
3634 Lisp_Object global_lface, lface; 3635 Lisp_Object global_lface, lface;
@@ -3701,11 +3702,11 @@ Value is a vector of face attributes.")
3701 3702
3702DEFUN ("internal-lisp-face-p", Finternal_lisp_face_p, 3703DEFUN ("internal-lisp-face-p", Finternal_lisp_face_p,
3703 Sinternal_lisp_face_p, 1, 2, 0, 3704 Sinternal_lisp_face_p, 1, 2, 0,
3704 "Return non-nil if FACE names a face.\n\ 3705 /* Return non-nil if FACE names a face.
3705If optional second parameter FRAME is non-nil, check for the\n\ 3706If optional second parameter FRAME is non-nil, check for the
3706existence of a frame-local face with name FACE on that frame.\n\ 3707existence of a frame-local face with name FACE on that frame.
3707Otherwise check for the existence of a global face.") 3708Otherwise check for the existence of a global face. */
3708 (face, frame) 3709 (face, frame))
3709 Lisp_Object face, frame; 3710 Lisp_Object face, frame;
3710{ 3711{
3711 Lisp_Object lface; 3712 Lisp_Object lface;
@@ -3724,14 +3725,14 @@ Otherwise check for the existence of a global face.")
3724 3725
3725DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face, 3726DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face,
3726 Sinternal_copy_lisp_face, 4, 4, 0, 3727 Sinternal_copy_lisp_face, 4, 4, 0,
3727 "Copy face FROM to TO.\n\ 3728 /* Copy face FROM to TO.
3728If FRAME it t, copy the global face definition of FROM to the\n\ 3729If FRAME it t, copy the global face definition of FROM to the
3729global face definition of TO. Otherwise, copy the frame-local\n\ 3730global face definition of TO. Otherwise, copy the frame-local
3730definition of FROM on FRAME to the frame-local definition of TO\n\ 3731definition of FROM on FRAME to the frame-local definition of TO
3731on NEW-FRAME, or FRAME if NEW-FRAME is nil.\n\ 3732on NEW-FRAME, or FRAME if NEW-FRAME is nil.
3732\n\ 3733
3733Value is TO.") 3734Value is TO. */
3734 (from, to, frame, new_frame) 3735 (from, to, frame, new_frame))
3735 Lisp_Object from, to, frame, new_frame; 3736 Lisp_Object from, to, frame, new_frame;
3736{ 3737{
3737 Lisp_Object lface, copy; 3738 Lisp_Object lface, copy;
@@ -3766,13 +3767,13 @@ Value is TO.")
3766 3767
3767DEFUN ("internal-set-lisp-face-attribute", Finternal_set_lisp_face_attribute, 3768DEFUN ("internal-set-lisp-face-attribute", Finternal_set_lisp_face_attribute,
3768 Sinternal_set_lisp_face_attribute, 3, 4, 0, 3769 Sinternal_set_lisp_face_attribute, 3, 4, 0,
3769 "Set attribute ATTR of FACE to VALUE.\n\ 3770 /* Set attribute ATTR of FACE to VALUE.
3770FRAME being a frame means change the face on that frame.\n\ 3771FRAME being a frame means change the face on that frame.
3771FRAME nil means change the face of the selected frame.\n\ 3772FRAME nil means change the face of the selected frame.
3772FRAME t means change the default for new frames.\n\ 3773FRAME t means change the default for new frames.
3773FRAME 0 means change the face on all frames, and change the default\n\ 3774FRAME 0 means change the face on all frames, and change the default
3774 for new frames.") 3775 for new frames. */
3775 (face, attr, value, frame) 3776 (face, attr, value, frame))
3776 Lisp_Object face, attr, value, frame; 3777 Lisp_Object face, attr, value, frame;
3777{ 3778{
3778 Lisp_Object lface; 3779 Lisp_Object lface;
@@ -4310,8 +4311,9 @@ update_face_from_frame_parameter (f, param, new_value)
4310 doesn't take a frame argument. */ 4311 doesn't take a frame argument. */
4311 4312
4312DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource, 4313DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource,
4313 Sinternal_face_x_get_resource, 3, 3, 0, "") 4314 Sinternal_face_x_get_resource, 3, 3, 0,
4314 (resource, class, frame) 4315 /* */
4316 (resource, class, frame))
4315 Lisp_Object resource, class, frame; 4317 Lisp_Object resource, class, frame;
4316{ 4318{
4317 Lisp_Object value = Qnil; 4319 Lisp_Object value = Qnil;
@@ -4362,8 +4364,9 @@ face_boolean_x_resource_value (value, signal_p)
4362DEFUN ("internal-set-lisp-face-attribute-from-resource", 4364DEFUN ("internal-set-lisp-face-attribute-from-resource",
4363 Finternal_set_lisp_face_attribute_from_resource, 4365 Finternal_set_lisp_face_attribute_from_resource,
4364 Sinternal_set_lisp_face_attribute_from_resource, 4366 Sinternal_set_lisp_face_attribute_from_resource,
4365 3, 4, 0, "") 4367 3, 4, 0,
4366 (face, attr, value, frame) 4368 /* */
4369 (face, attr, value, frame))
4367 Lisp_Object face, attr, value, frame; 4370 Lisp_Object face, attr, value, frame;
4368{ 4371{
4369 CHECK_SYMBOL (face, 0); 4372 CHECK_SYMBOL (face, 0);
@@ -4492,13 +4495,13 @@ x_update_menu_appearance (f)
4492DEFUN ("internal-get-lisp-face-attribute", Finternal_get_lisp_face_attribute, 4495DEFUN ("internal-get-lisp-face-attribute", Finternal_get_lisp_face_attribute,
4493 Sinternal_get_lisp_face_attribute, 4496 Sinternal_get_lisp_face_attribute,
4494 2, 3, 0, 4497 2, 3, 0,
4495 "Return face attribute KEYWORD of face SYMBOL.\n\ 4498 /* Return face attribute KEYWORD of face SYMBOL.
4496If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid\n\ 4499If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid
4497face attribute name, signal an error.\n\ 4500face attribute name, signal an error.
4498If the optional argument FRAME is given, report on face FACE in that\n\ 4501If the optional argument FRAME is given, report on face FACE in that
4499frame. If FRAME is t, report on the defaults for face FACE (for new\n\ 4502frame. If FRAME is t, report on the defaults for face FACE (for new
4500frames). If FRAME is omitted or nil, use the selected frame.") 4503frames). If FRAME is omitted or nil, use the selected frame. */
4501 (symbol, keyword, frame) 4504 (symbol, keyword, frame))
4502 Lisp_Object symbol, keyword, frame; 4505 Lisp_Object symbol, keyword, frame;
4503{ 4506{
4504 Lisp_Object lface, value = Qnil; 4507 Lisp_Object lface, value = Qnil;
@@ -4557,9 +4560,9 @@ frames). If FRAME is omitted or nil, use the selected frame.")
4557DEFUN ("internal-lisp-face-attribute-values", 4560DEFUN ("internal-lisp-face-attribute-values",
4558 Finternal_lisp_face_attribute_values, 4561 Finternal_lisp_face_attribute_values,
4559 Sinternal_lisp_face_attribute_values, 1, 1, 0, 4562 Sinternal_lisp_face_attribute_values, 1, 1, 0,
4560 "Return a list of valid discrete values for face attribute ATTR.\n\ 4563 /* Return a list of valid discrete values for face attribute ATTR.
4561Value is nil if ATTR doesn't have a discrete set of valid values.") 4564Value is nil if ATTR doesn't have a discrete set of valid values. */
4562 (attr) 4565 (attr))
4563 Lisp_Object attr; 4566 Lisp_Object attr;
4564{ 4567{
4565 Lisp_Object result = Qnil; 4568 Lisp_Object result = Qnil;
@@ -4609,9 +4612,9 @@ Value is nil if ATTR doesn't have a discrete set of valid values.")
4609 4612
4610DEFUN ("internal-merge-in-global-face", Finternal_merge_in_global_face, 4613DEFUN ("internal-merge-in-global-face", Finternal_merge_in_global_face,
4611 Sinternal_merge_in_global_face, 2, 2, 0, 4614 Sinternal_merge_in_global_face, 2, 2, 0,
4612 "Add attributes from frame-default definition of FACE to FACE on FRAME.\n\ 4615 /* Add attributes from frame-default definition of FACE to FACE on FRAME.
4613Default face attributes override any local face attributes.") 4616Default face attributes override any local face attributes. */
4614 (face, frame) 4617 (face, frame))
4615 Lisp_Object face, frame; 4618 Lisp_Object face, frame;
4616{ 4619{
4617 int i; 4620 int i;
@@ -4644,13 +4647,13 @@ Default face attributes override any local face attributes.")
4644 done in fontset.el. */ 4647 done in fontset.el. */
4645 4648
4646DEFUN ("face-font", Fface_font, Sface_font, 1, 2, 0, 4649DEFUN ("face-font", Fface_font, Sface_font, 1, 2, 0,
4647 "Return the font name of face FACE, or nil if it is unspecified.\n\ 4650 /* Return the font name of face FACE, or nil if it is unspecified.
4648If the optional argument FRAME is given, report on face FACE in that frame.\n\ 4651If the optional argument FRAME is given, report on face FACE in that frame.
4649If FRAME is t, report on the defaults for face FACE (for new frames).\n\ 4652If FRAME is t, report on the defaults for face FACE (for new frames).
4650 The font default for a face is either nil, or a list\n\ 4653 The font default for a face is either nil, or a list
4651 of the form (bold), (italic) or (bold italic).\n\ 4654 of the form (bold), (italic) or (bold italic).
4652If FRAME is omitted or nil, use the selected frame.") 4655If FRAME is omitted or nil, use the selected frame. */
4653 (face, frame) 4656 (face, frame))
4654 Lisp_Object face, frame; 4657 Lisp_Object face, frame;
4655{ 4658{
4656 if (EQ (frame, Qt)) 4659 if (EQ (frame, Qt))
@@ -4728,11 +4731,11 @@ lface_equal_p (v1, v2)
4728 4731
4729DEFUN ("internal-lisp-face-equal-p", Finternal_lisp_face_equal_p, 4732DEFUN ("internal-lisp-face-equal-p", Finternal_lisp_face_equal_p,
4730 Sinternal_lisp_face_equal_p, 2, 3, 0, 4733 Sinternal_lisp_face_equal_p, 2, 3, 0,
4731 "True if FACE1 and FACE2 are equal.\n\ 4734 /* True if FACE1 and FACE2 are equal.
4732If the optional argument FRAME is given, report on face FACE in that frame.\n\ 4735If the optional argument FRAME is given, report on face FACE in that frame.
4733If FRAME is t, report on the defaults for face FACE (for new frames).\n\ 4736If FRAME is t, report on the defaults for face FACE (for new frames).
4734If FRAME is omitted or nil, use the selected frame.") 4737If FRAME is omitted or nil, use the selected frame. */
4735 (face1, face2, frame) 4738 (face1, face2, frame))
4736 Lisp_Object face1, face2, frame; 4739 Lisp_Object face1, face2, frame;
4737{ 4740{
4738 int equal_p; 4741 int equal_p;
@@ -4758,11 +4761,11 @@ If FRAME is omitted or nil, use the selected frame.")
4758 4761
4759DEFUN ("internal-lisp-face-empty-p", Finternal_lisp_face_empty_p, 4762DEFUN ("internal-lisp-face-empty-p", Finternal_lisp_face_empty_p,
4760 Sinternal_lisp_face_empty_p, 1, 2, 0, 4763 Sinternal_lisp_face_empty_p, 1, 2, 0,
4761 "True if FACE has no attribute specified.\n\ 4764 /* True if FACE has no attribute specified.
4762If the optional argument FRAME is given, report on face FACE in that frame.\n\ 4765If the optional argument FRAME is given, report on face FACE in that frame.
4763If FRAME is t, report on the defaults for face FACE (for new frames).\n\ 4766If FRAME is t, report on the defaults for face FACE (for new frames).
4764If FRAME is omitted or nil, use the selected frame.") 4767If FRAME is omitted or nil, use the selected frame. */
4765 (face, frame) 4768 (face, frame))
4766 Lisp_Object face, frame; 4769 Lisp_Object face, frame;
4767{ 4770{
4768 struct frame *f; 4771 struct frame *f;
@@ -4789,9 +4792,9 @@ If FRAME is omitted or nil, use the selected frame.")
4789 4792
4790DEFUN ("frame-face-alist", Fframe_face_alist, Sframe_face_alist, 4793DEFUN ("frame-face-alist", Fframe_face_alist, Sframe_face_alist,
4791 0, 1, 0, 4794 0, 1, 0,
4792 "Return an alist of frame-local faces defined on FRAME.\n\ 4795 /* Return an alist of frame-local faces defined on FRAME.
4793For internal use only.") 4796For internal use only. */
4794 (frame) 4797 (frame))
4795 Lisp_Object frame; 4798 Lisp_Object frame;
4796{ 4799{
4797 struct frame *f = frame_or_selected_frame (frame, 0); 4800 struct frame *f = frame_or_selected_frame (frame, 0);
@@ -5468,15 +5471,15 @@ lookup_derived_face (f, symbol, c, face_id)
5468DEFUN ("internal-set-font-selection-order", 5471DEFUN ("internal-set-font-selection-order",
5469 Finternal_set_font_selection_order, 5472 Finternal_set_font_selection_order,
5470 Sinternal_set_font_selection_order, 1, 1, 0, 5473 Sinternal_set_font_selection_order, 1, 1, 0,
5471 "Set font selection order for face font selection to ORDER.\n\ 5474 /* Set font selection order for face font selection to ORDER.
5472ORDER must be a list of length 4 containing the symbols `:width',\n\ 5475ORDER must be a list of length 4 containing the symbols `:width',
5473`:height', `:weight', and `:slant'. Face attributes appearing\n\ 5476`:height', `:weight', and `:slant'. Face attributes appearing
5474first in ORDER are matched first, e.g. if `:height' appears before\n\ 5477first in ORDER are matched first, e.g. if `:height' appears before
5475`:weight' in ORDER, font selection first tries to find a font with\n\ 5478`:weight' in ORDER, font selection first tries to find a font with
5476a suitable height, and then tries to match the font weight.\n\ 5479a suitable height, and then tries to match the font weight.
5477Value is ORDER.") 5480Value is ORDER. */
5478 (order) 5481 (order))
5479 Lisp_Object order; 5482 Lisp_Object order;
5480{ 5483{
5481 Lisp_Object list; 5484 Lisp_Object list;
5482 int i; 5485 int i;
@@ -5528,11 +5531,11 @@ Value is ORDER.")
5528DEFUN ("internal-set-alternative-font-family-alist", 5531DEFUN ("internal-set-alternative-font-family-alist",
5529 Finternal_set_alternative_font_family_alist, 5532 Finternal_set_alternative_font_family_alist,
5530 Sinternal_set_alternative_font_family_alist, 1, 1, 0, 5533 Sinternal_set_alternative_font_family_alist, 1, 1, 0,
5531 "Define alternative font families to try in face font selection.\n\ 5534 /* Define alternative font families to try in face font selection.
5532ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries.\n\ 5535ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries.
5533Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can\n\ 5536Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can
5534be found. Value is ALIST.") 5537be found. Value is ALIST. */
5535 (alist) 5538 (alist))
5536 Lisp_Object alist; 5539 Lisp_Object alist;
5537{ 5540{
5538 CHECK_LIST (alist, 0); 5541 CHECK_LIST (alist, 0);
@@ -5545,11 +5548,11 @@ be found. Value is ALIST.")
5545DEFUN ("internal-set-alternative-font-registry-alist", 5548DEFUN ("internal-set-alternative-font-registry-alist",
5546 Finternal_set_alternative_font_registry_alist, 5549 Finternal_set_alternative_font_registry_alist,
5547 Sinternal_set_alternative_font_registry_alist, 1, 1, 0, 5550 Sinternal_set_alternative_font_registry_alist, 1, 1, 0,
5548 "Define alternative font registries to try in face font selection.\n\ 5551 /* Define alternative font registries to try in face font selection.
5549ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries.\n\ 5552ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries.
5550Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can\n\ 5553Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can
5551be found. Value is ALIST.") 5554be found. Value is ALIST. */
5552 (alist) 5555 (alist))
5553 Lisp_Object alist; 5556 Lisp_Object alist;
5554{ 5557{
5555 CHECK_LIST (alist, 0); 5558 CHECK_LIST (alist, 0);
@@ -6656,13 +6659,13 @@ realize_tty_face (cache, attrs, c)
6656DEFUN ("tty-suppress-bold-inverse-default-colors", 6659DEFUN ("tty-suppress-bold-inverse-default-colors",
6657 Ftty_suppress_bold_inverse_default_colors, 6660 Ftty_suppress_bold_inverse_default_colors,
6658 Stty_suppress_bold_inverse_default_colors, 1, 1, 0, 6661 Stty_suppress_bold_inverse_default_colors, 1, 1, 0,
6659 "Suppress/allow boldness of faces with inverse default colors.\n\ 6662 /* Suppress/allow boldness of faces with inverse default colors.
6660SUPPRESS non-nil means suppress it.\n\ 6663SUPPRESS non-nil means suppress it.
6661This affects bold faces on TTYs whose foreground is the default background\n\ 6664This affects bold faces on TTYs whose foreground is the default background
6662color of the display and whose background is the default foreground color.\n\ 6665color of the display and whose background is the default foreground color.
6663For such faces, the bold face attribute is ignored if this variable\n\ 6666For such faces, the bold face attribute is ignored if this variable
6664is non-nil.") 6667is non-nil. */
6665 (suppress) 6668 (suppress))
6666 Lisp_Object suppress; 6669 Lisp_Object suppress;
6667{ 6670{
6668 tty_suppress_bold_inverse_default_colors_p = !NILP (suppress); 6671 tty_suppress_bold_inverse_default_colors_p = !NILP (suppress);
@@ -6978,8 +6981,8 @@ dump_realized_face (face)
6978} 6981}
6979 6982
6980 6983
6981DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, "") 6984DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, /* */
6982 (n) 6985 (n))
6983 Lisp_Object n; 6986 Lisp_Object n;
6984{ 6987{
6985 if (NILP (n)) 6988 if (NILP (n))
@@ -7013,8 +7016,8 @@ DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, "")
7013 7016
7014 7017
7015DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources, 7018DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources,
7016 0, 0, 0, "") 7019 0, 0, 0, /* */
7017 () 7020 ())
7018{ 7021{
7019 fprintf (stderr, "number of colors = %d\n", ncolors_allocated); 7022 fprintf (stderr, "number of colors = %d\n", ncolors_allocated);
7020 fprintf (stderr, "number of pixmaps = %d\n", npixmaps_allocated); 7023 fprintf (stderr, "number of pixmaps = %d\n", npixmaps_allocated);
@@ -7206,40 +7209,41 @@ syms_of_xfaces ()
7206 defsubr (&Sdump_colors); 7209 defsubr (&Sdump_colors);
7207#endif 7210#endif
7208 7211
7209 DEFVAR_LISP ("font-list-limit", &Vfont_list_limit, 7212 DEFVAR_LISP ("font-list-limit", &Vfont_list_limit
7210 "*Limit for font matching.\n\ 7213 /* *Limit for font matching.
7211If an integer > 0, font matching functions won't load more than\n\ 7214If an integer > 0, font matching functions won't load more than
7212that number of fonts when searching for a matching font."); 7215that number of fonts when searching for a matching font. */);
7213 Vfont_list_limit = make_number (DEFAULT_FONT_LIST_LIMIT); 7216 Vfont_list_limit = make_number (DEFAULT_FONT_LIST_LIMIT);
7214 7217
7215 DEFVAR_LISP ("face-new-frame-defaults", &Vface_new_frame_defaults, 7218 DEFVAR_LISP ("face-new-frame-defaults", &Vface_new_frame_defaults
7216 "List of global face definitions (for internal use only.)"); 7219 /* List of global face definitions (for internal use only.) */);
7217 Vface_new_frame_defaults = Qnil; 7220 Vface_new_frame_defaults = Qnil;
7218 7221
7219 DEFVAR_LISP ("face-default-stipple", &Vface_default_stipple, 7222 DEFVAR_LISP ("face-default-stipple", &Vface_default_stipple
7220 "*Default stipple pattern used on monochrome displays.\n\ 7223 /* *Default stipple pattern used on monochrome displays.
7221This stipple pattern is used on monochrome displays\n\ 7224This stipple pattern is used on monochrome displays
7222instead of shades of gray for a face background color.\n\ 7225instead of shades of gray for a face background color.
7223See `set-face-stipple' for possible values for this variable."); 7226See `set-face-stipple' for possible values for this variable. */);
7224 Vface_default_stipple = build_string ("gray3"); 7227 Vface_default_stipple = build_string ("gray3");
7225 7228
7226 DEFVAR_LISP ("tty-defined-color-alist", &Vtty_defined_color_alist, 7229 DEFVAR_LISP ("tty-defined-color-alist", &Vtty_defined_color_alist
7227 "An alist of defined terminal colors and their RGB values."); 7230 /* An alist of defined terminal colors and their RGB values. */);
7228 Vtty_defined_color_alist = Qnil; 7231 Vtty_defined_color_alist = Qnil;
7229 7232
7230 DEFVAR_LISP ("scalable-fonts-allowed", &Vscalable_fonts_allowed, 7233 DEFVAR_LISP ("scalable-fonts-allowed", &Vscalable_fonts_allowed
7231 "Allowed scalable fonts.\n\ 7234 /* Allowed scalable fonts.
7232A value of nil means don't allow any scalable fonts.\n\ 7235A value of nil means don't allow any scalable fonts.
7233A value of t means allow any scalable font.\n\ 7236A value of t means allow any scalable font.
7234Otherwise, value must be a list of regular expressions. A font may be\n\ 7237Otherwise, value must be a list of regular expressions. A font may be
7235scaled if its name matches a regular expression in the list.\n\ 7238scaled if its name matches a regular expression in the list.
7236Note that if value is nil, a scalable font might still be used, if no\n\ 7239Note that if value is nil, a scalable font might still be used, if no
7237other font of the appropriate family and registry is available."); 7240other font of the appropriate family and registry is available. */);
7238 Vscalable_fonts_allowed = Qnil; 7241 Vscalable_fonts_allowed = Qnil;
7239 7242
7240 DEFVAR_LISP ("face-ignored-fonts", &Vface_ignored_fonts, 7243 DEFVAR_LISP ("face-ignored-fonts", &Vface_ignored_fonts
7241 "List of ignored fonts.\n\ 7244 /* List of ignored fonts.
7242Each element is a regular expression that matches names of fonts to ignore."); 7245Each element is a regular expression that matches names of fonts to
7246ignore. */);
7243 Vface_ignored_fonts = Qnil; 7247 Vface_ignored_fonts = Qnil;
7244 7248
7245#ifdef HAVE_WINDOW_SYSTEM 7249#ifdef HAVE_WINDOW_SYSTEM