diff options
| author | Gerd Moellmann | 2001-10-14 10:36:32 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-14 10:36:32 +0000 |
| commit | 228299fa7111d1f2da3c2fa741bb27d7dc9c66af (patch) | |
| tree | 562b09ff191ebd71d426b5b2e33df3f7dcac4977 /src/xfaces.c | |
| parent | 37f6b5b6d246d36afcd658c8bdde1791eb790f63 (diff) | |
| download | emacs-228299fa7111d1f2da3c2fa741bb27d7dc9c66af.tar.gz emacs-228299fa7111d1f2da3c2fa741bb27d7dc9c66af.zip | |
Put doc strings in comments.
Diffstat (limited to 'src/xfaces.c')
| -rw-r--r-- | src/xfaces.c | 364 |
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 | ||
| 670 | DEFUN ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0, | 671 | DEFUN ("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 | ||
| 1018 | DEFUN ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0, | 1019 | DEFUN ("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. |
| 1020 | Optional THOROUGHLY non-nil means try to free unused fonts, too.") | 1021 | Optional 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 | ||
| 1099 | DEFUN ("bitmap-spec-p", Fbitmap_spec_p, Sbitmap_spec_p, 1, 1, 0, | 1100 | DEFUN ("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. |
| 1101 | A bitmap specification is either a string, a file name, or a list\n\ | 1102 | A 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, |
| 1103 | HEIGHT is its height, and DATA is a string containing the bits of\n\ | 1104 | HEIGHT is its height, and DATA is a string containing the bits of |
| 1104 | the pixmap. Bits are stored row by row, each row occupies\n\ | 1105 | the 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 | ||
| 1483 | DEFUN ("color-gray-p", Fcolor_gray_p, Scolor_gray_p, 1, 2, 0, | 1484 | DEFUN ("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). |
| 1485 | FRAME specifies the frame and thus the display for interpreting COLOR.\n\ | 1486 | FRAME specifies the frame and thus the display for interpreting COLOR. |
| 1486 | If FRAME is nil or omitted, use the selected frame.") | 1487 | If 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 | ||
| 1499 | DEFUN ("color-supported-p", Fcolor_supported_p, | 1500 | DEFUN ("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. |
| 1502 | BACKGROUND-P non-nil means COLOR is used as a background.\n\ | 1503 | BACKGROUND-P non-nil means COLOR is used as a background. |
| 1503 | If FRAME is nil or omitted, use the selected frame.\n\ | 1504 | If FRAME is nil or omitted, use the selected frame. |
| 1504 | COLOR must be a valid color name.") | 1505 | COLOR 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 | ||
| 2693 | DEFUN ("x-family-fonts", Fx_family_fonts, Sx_family_fonts, 0, 2, 0, | 2694 | DEFUN ("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. |
| 2695 | If FAMILY is omitted or nil, list all families.\n\ | 2696 | If FAMILY is omitted or nil, list all families. |
| 2696 | Otherwise, FAMILY must be a string, possibly containing wildcards\n\ | 2697 | Otherwise, FAMILY must be a string, possibly containing wildcards |
| 2697 | `?' and `*'.\n\ | 2698 | `?' and `*'. |
| 2698 | If FRAME is omitted or nil, use the selected frame.\n\ | 2699 | If FRAME is omitted or nil, use the selected frame. |
| 2699 | Each element of the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT\n\ | 2700 | Each element of the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT |
| 2700 | SLANT FIXED-P FULL REGISTRY-AND-ENCODING].\n\ | 2701 | SLANT FIXED-P FULL REGISTRY-AND-ENCODING]. |
| 2701 | FAMILY is the font family name. POINT-SIZE is the size of the\n\ | 2702 | FAMILY is the font family name. POINT-SIZE is the size of the |
| 2702 | font in 1/10 pt. WIDTH, WEIGHT, and SLANT are symbols describing the\n\ | 2703 | font in 1/10 pt. WIDTH, WEIGHT, and SLANT are symbols describing the |
| 2703 | width, weight and slant of the font. These symbols are the same as for\n\ | 2704 | width, weight and slant of the font. These symbols are the same as for |
| 2704 | face attributes. FIXED-P is non-nil if the font is fixed-pitch.\n\ | 2705 | face attributes. FIXED-P is non-nil if the font is fixed-pitch. |
| 2705 | FULL is the full name of the font, and REGISTRY-AND-ENCODING is a string\n\ | 2706 | FULL is the full name of the font, and REGISTRY-AND-ENCODING is a string |
| 2706 | giving the registry and encoding of the font.\n\ | 2707 | giving the registry and encoding of the font. |
| 2707 | The result list is sorted according to the current setting of\n\ | 2708 | The result list is sorted according to the current setting of |
| 2708 | the face font sort order.") | 2709 | the 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 | ||
| 2752 | DEFUN ("x-font-family-list", Fx_font_family_list, Sx_font_family_list, | 2753 | DEFUN ("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. |
| 2755 | If FRAME is omitted or nil, use the selected frame.\n\ | 2756 | If FRAME is omitted or nil, use the selected frame. |
| 2756 | Value is a list of conses (FAMILY . FIXED-P) where FAMILY\n\ | 2757 | Value is a list of conses (FAMILY . FIXED-P) where FAMILY |
| 2757 | is a font family, and FIXED-P is non-nil if fonts of that family\n\ | 2758 | is a font family, and FIXED-P is non-nil if fonts of that family |
| 2758 | are fixed-pitch.") | 2759 | are 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 | ||
| 2800 | DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 5, 0, | 2801 | DEFUN ("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. |
| 2802 | If optional arguments FACE and FRAME are specified, return only fonts\n\ | 2803 | If optional arguments FACE and FRAME are specified, return only fonts |
| 2803 | the same size as FACE on FRAME.\n\ | 2804 | the same size as FACE on FRAME. |
| 2804 | PATTERN is a string, perhaps with wildcard characters;\n\ | 2805 | PATTERN 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. |
| 2808 | FACE is a face name--a symbol.\n\ | 2809 | FACE is a face name--a symbol. |
| 2809 | \n\ | 2810 | |
| 2810 | The return value is a list of strings, suitable as arguments to\n\ | 2811 | The return value is a list of strings, suitable as arguments to |
| 2811 | set-face-font.\n\ | 2812 | set-face-font. |
| 2812 | \n\ | 2813 | |
| 2813 | Fonts Emacs can't use may or may not be excluded\n\ | 2814 | Fonts Emacs can't use may or may not be excluded |
| 2814 | even if they match PATTERN and FACE.\n\ | 2815 | even if they match PATTERN and FACE. |
| 2815 | The optional fourth argument MAXIMUM sets a limit on how many\n\ | 2816 | The optional fourth argument MAXIMUM sets a limit on how many |
| 2816 | fonts to match. The first MAXIMUM fonts are reported.\n\ | 2817 | fonts to match. The first MAXIMUM fonts are reported. |
| 2817 | The optional fifth argument WIDTH, if specified, is a number of columns\n\ | 2818 | The optional fifth argument WIDTH, if specified, is a number of columns |
| 2818 | occupied by a character of a font. In that case, return only fonts\n\ | 2819 | occupied by a character of a font. In that case, return only fonts |
| 2819 | the WIDTH times as wide as FACE on FRAME.") | 2820 | the 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 | ||
| 3624 | DEFUN ("internal-make-lisp-face", Finternal_make_lisp_face, | 3625 | DEFUN ("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. |
| 3627 | If FACE was not known as a face before, create a new one.\n\ | 3628 | If FACE was not known as a face before, create a new one. |
| 3628 | If optional argument FRAME is specified, make a frame-local face\n\ | 3629 | If optional argument FRAME is specified, make a frame-local face |
| 3629 | for that frame. Otherwise operate on the global face definition.\n\ | 3630 | for that frame. Otherwise operate on the global face definition. |
| 3630 | Value is a vector of face attributes.") | 3631 | Value 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 | ||
| 3702 | DEFUN ("internal-lisp-face-p", Finternal_lisp_face_p, | 3703 | DEFUN ("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. |
| 3705 | If optional second parameter FRAME is non-nil, check for the\n\ | 3706 | If optional second parameter FRAME is non-nil, check for the |
| 3706 | existence of a frame-local face with name FACE on that frame.\n\ | 3707 | existence of a frame-local face with name FACE on that frame. |
| 3707 | Otherwise check for the existence of a global face.") | 3708 | Otherwise 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 | ||
| 3725 | DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face, | 3726 | DEFUN ("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. |
| 3728 | If FRAME it t, copy the global face definition of FROM to the\n\ | 3729 | If FRAME it t, copy the global face definition of FROM to the |
| 3729 | global face definition of TO. Otherwise, copy the frame-local\n\ | 3730 | global face definition of TO. Otherwise, copy the frame-local |
| 3730 | definition of FROM on FRAME to the frame-local definition of TO\n\ | 3731 | definition of FROM on FRAME to the frame-local definition of TO |
| 3731 | on NEW-FRAME, or FRAME if NEW-FRAME is nil.\n\ | 3732 | on NEW-FRAME, or FRAME if NEW-FRAME is nil. |
| 3732 | \n\ | 3733 | |
| 3733 | Value is TO.") | 3734 | Value 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 | ||
| 3767 | DEFUN ("internal-set-lisp-face-attribute", Finternal_set_lisp_face_attribute, | 3768 | DEFUN ("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. |
| 3770 | FRAME being a frame means change the face on that frame.\n\ | 3771 | FRAME being a frame means change the face on that frame. |
| 3771 | FRAME nil means change the face of the selected frame.\n\ | 3772 | FRAME nil means change the face of the selected frame. |
| 3772 | FRAME t means change the default for new frames.\n\ | 3773 | FRAME t means change the default for new frames. |
| 3773 | FRAME 0 means change the face on all frames, and change the default\n\ | 3774 | FRAME 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 | ||
| 4312 | DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource, | 4313 | DEFUN ("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) | |||
| 4362 | DEFUN ("internal-set-lisp-face-attribute-from-resource", | 4364 | DEFUN ("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) | |||
| 4492 | DEFUN ("internal-get-lisp-face-attribute", Finternal_get_lisp_face_attribute, | 4495 | DEFUN ("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. |
| 4496 | If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid\n\ | 4499 | If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid |
| 4497 | face attribute name, signal an error.\n\ | 4500 | face attribute name, signal an error. |
| 4498 | If the optional argument FRAME is given, report on face FACE in that\n\ | 4501 | If the optional argument FRAME is given, report on face FACE in that |
| 4499 | frame. If FRAME is t, report on the defaults for face FACE (for new\n\ | 4502 | frame. If FRAME is t, report on the defaults for face FACE (for new |
| 4500 | frames). If FRAME is omitted or nil, use the selected frame.") | 4503 | frames). 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.") | |||
| 4557 | DEFUN ("internal-lisp-face-attribute-values", | 4560 | DEFUN ("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. |
| 4561 | Value is nil if ATTR doesn't have a discrete set of valid values.") | 4564 | Value 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 | ||
| 4610 | DEFUN ("internal-merge-in-global-face", Finternal_merge_in_global_face, | 4613 | DEFUN ("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. |
| 4613 | Default face attributes override any local face attributes.") | 4616 | Default 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 | ||
| 4646 | DEFUN ("face-font", Fface_font, Sface_font, 1, 2, 0, | 4649 | DEFUN ("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. |
| 4648 | If the optional argument FRAME is given, report on face FACE in that frame.\n\ | 4651 | If the optional argument FRAME is given, report on face FACE in that frame. |
| 4649 | If FRAME is t, report on the defaults for face FACE (for new frames).\n\ | 4652 | If 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). |
| 4652 | If FRAME is omitted or nil, use the selected frame.") | 4655 | If 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 | ||
| 4729 | DEFUN ("internal-lisp-face-equal-p", Finternal_lisp_face_equal_p, | 4732 | DEFUN ("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. |
| 4732 | If the optional argument FRAME is given, report on face FACE in that frame.\n\ | 4735 | If the optional argument FRAME is given, report on face FACE in that frame. |
| 4733 | If FRAME is t, report on the defaults for face FACE (for new frames).\n\ | 4736 | If FRAME is t, report on the defaults for face FACE (for new frames). |
| 4734 | If FRAME is omitted or nil, use the selected frame.") | 4737 | If 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 | ||
| 4759 | DEFUN ("internal-lisp-face-empty-p", Finternal_lisp_face_empty_p, | 4762 | DEFUN ("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. |
| 4762 | If the optional argument FRAME is given, report on face FACE in that frame.\n\ | 4765 | If the optional argument FRAME is given, report on face FACE in that frame. |
| 4763 | If FRAME is t, report on the defaults for face FACE (for new frames).\n\ | 4766 | If FRAME is t, report on the defaults for face FACE (for new frames). |
| 4764 | If FRAME is omitted or nil, use the selected frame.") | 4767 | If 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 | ||
| 4790 | DEFUN ("frame-face-alist", Fframe_face_alist, Sframe_face_alist, | 4793 | DEFUN ("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. |
| 4793 | For internal use only.") | 4796 | For 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) | |||
| 5468 | DEFUN ("internal-set-font-selection-order", | 5471 | DEFUN ("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. |
| 5472 | ORDER must be a list of length 4 containing the symbols `:width',\n\ | 5475 | ORDER 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 |
| 5474 | first in ORDER are matched first, e.g. if `:height' appears before\n\ | 5477 | first 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 |
| 5476 | a suitable height, and then tries to match the font weight.\n\ | 5479 | a suitable height, and then tries to match the font weight. |
| 5477 | Value is ORDER.") | 5480 | Value 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.") | |||
| 5528 | DEFUN ("internal-set-alternative-font-family-alist", | 5531 | DEFUN ("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. |
| 5532 | ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries.\n\ | 5535 | ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries. |
| 5533 | Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can\n\ | 5536 | Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can |
| 5534 | be found. Value is ALIST.") | 5537 | be 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.") | |||
| 5545 | DEFUN ("internal-set-alternative-font-registry-alist", | 5548 | DEFUN ("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. |
| 5549 | ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries.\n\ | 5552 | ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries. |
| 5550 | Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can\n\ | 5553 | Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can |
| 5551 | be found. Value is ALIST.") | 5554 | be 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) | |||
| 6656 | DEFUN ("tty-suppress-bold-inverse-default-colors", | 6659 | DEFUN ("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. |
| 6660 | SUPPRESS non-nil means suppress it.\n\ | 6663 | SUPPRESS non-nil means suppress it. |
| 6661 | This affects bold faces on TTYs whose foreground is the default background\n\ | 6664 | This affects bold faces on TTYs whose foreground is the default background |
| 6662 | color of the display and whose background is the default foreground color.\n\ | 6665 | color of the display and whose background is the default foreground color. |
| 6663 | For such faces, the bold face attribute is ignored if this variable\n\ | 6666 | For such faces, the bold face attribute is ignored if this variable |
| 6664 | is non-nil.") | 6667 | is 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 | ||
| 6981 | DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, "") | 6984 | DEFUN ("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 | ||
| 7015 | DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources, | 7018 | DEFUN ("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. |
| 7211 | If an integer > 0, font matching functions won't load more than\n\ | 7214 | If an integer > 0, font matching functions won't load more than |
| 7212 | that number of fonts when searching for a matching font."); | 7215 | that 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. |
| 7221 | This stipple pattern is used on monochrome displays\n\ | 7224 | This stipple pattern is used on monochrome displays |
| 7222 | instead of shades of gray for a face background color.\n\ | 7225 | instead of shades of gray for a face background color. |
| 7223 | See `set-face-stipple' for possible values for this variable."); | 7226 | See `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. |
| 7232 | A value of nil means don't allow any scalable fonts.\n\ | 7235 | A value of nil means don't allow any scalable fonts. |
| 7233 | A value of t means allow any scalable font.\n\ | 7236 | A value of t means allow any scalable font. |
| 7234 | Otherwise, value must be a list of regular expressions. A font may be\n\ | 7237 | Otherwise, value must be a list of regular expressions. A font may be |
| 7235 | scaled if its name matches a regular expression in the list.\n\ | 7238 | scaled if its name matches a regular expression in the list. |
| 7236 | Note that if value is nil, a scalable font might still be used, if no\n\ | 7239 | Note that if value is nil, a scalable font might still be used, if no |
| 7237 | other font of the appropriate family and registry is available."); | 7240 | other 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. |
| 7242 | Each element is a regular expression that matches names of fonts to ignore."); | 7245 | Each element is a regular expression that matches names of fonts to |
| 7246 | ignore. */); | ||
| 7243 | Vface_ignored_fonts = Qnil; | 7247 | Vface_ignored_fonts = Qnil; |
| 7244 | 7248 | ||
| 7245 | #ifdef HAVE_WINDOW_SYSTEM | 7249 | #ifdef HAVE_WINDOW_SYSTEM |