comparison src/xfaces.c @ 55560:f262795a9004

(Ftty_supports_face_attributes_p, Finternal_copy_lisp_face): Fix typo in docstring. (Finternal_get_lisp_face_attribute): Fix docstring.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 13 May 2004 00:21:20 +0000
parents 45f74adeb581
children edc2b57535e5
comparison
equal deleted inserted replaced
55559:a4d697f046db 55560:f262795a9004
3855 3855
3856 3856
3857 DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face, 3857 DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face,
3858 Sinternal_copy_lisp_face, 4, 4, 0, 3858 Sinternal_copy_lisp_face, 4, 4, 0,
3859 doc: /* Copy face FROM to TO. 3859 doc: /* Copy face FROM to TO.
3860 If FRAME it t, copy the global face definition of FROM to the 3860 If FRAME is t, copy the global face definition of FROM to the
3861 global face definition of TO. Otherwise, copy the frame-local 3861 global face definition of TO. Otherwise, copy the frame-local
3862 definition of FROM on FRAME to the frame-local definition of TO 3862 definition of FROM on FRAME to the frame-local definition of TO
3863 on NEW-FRAME, or FRAME if NEW-FRAME is nil. 3863 on NEW-FRAME, or FRAME if NEW-FRAME is nil.
3864 3864
3865 Value is TO. */) 3865 Value is TO. */)
4682 Sinternal_get_lisp_face_attribute, 4682 Sinternal_get_lisp_face_attribute,
4683 2, 3, 0, 4683 2, 3, 0,
4684 doc: /* Return face attribute KEYWORD of face SYMBOL. 4684 doc: /* Return face attribute KEYWORD of face SYMBOL.
4685 If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid 4685 If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid
4686 face attribute name, signal an error. 4686 face attribute name, signal an error.
4687 If the optional argument FRAME is given, report on face FACE in that 4687 If the optional argument FRAME is given, report on face SYMBOL in that
4688 frame. If FRAME is t, report on the defaults for face FACE (for new 4688 frame. If FRAME is t, report on the defaults for face SYMBOL (for new
4689 frames). If FRAME is omitted or nil, use the selected frame. */) 4689 frames). If FRAME is omitted or nil, use the selected frame. */)
4690 (symbol, keyword, frame) 4690 (symbol, keyword, frame)
4691 Lisp_Object symbol, keyword, frame; 4691 Lisp_Object symbol, keyword, frame;
4692 { 4692 {
4693 Lisp_Object lface, value = Qnil; 4693 Lisp_Object lface, value = Qnil;
5233 with the default face for display, can be represented in a way that's 5233 with the default face for display, can be represented in a way that's
5234 5234
5235 \(1) different in appearance than the default face, and 5235 \(1) different in appearance than the default face, and
5236 \(2) `close in spirit' to what the attributes specify, if not exact. 5236 \(2) `close in spirit' to what the attributes specify, if not exact.
5237 5237
5238 Point (2) implies that a `:weight black' attribute will be satisified 5238 Point (2) implies that a `:weight black' attribute will be satisfied
5239 by any terminal that can display bold, and a `:foreground "yellow"' as 5239 by any terminal that can display bold, and a `:foreground "yellow"' as
5240 long as the terminal can display a yellowish color, but `:slant italic' 5240 long as the terminal can display a yellowish color, but `:slant italic'
5241 will _not_ be satisified by the tty display code's automatic 5241 will _not_ be satisfied by the tty display code's automatic
5242 substitution of a `dim' face for italic. */) 5242 substitution of a `dim' face for italic. */)
5243 (attributes, frame) 5243 (attributes, frame)
5244 Lisp_Object attributes, frame; 5244 Lisp_Object attributes, frame;
5245 { 5245 {
5246 int weight, i; 5246 int weight, i;
5444 #endif /* HAVE_WINDOW_SYSTEM */ 5444 #endif /* HAVE_WINDOW_SYSTEM */
5445 } 5445 }
5446 } 5446 }
5447 5447
5448 5448
5449 /* Free all realized faces in face cache C, including basic faces. C 5449 /* Free all realized faces in face cache C, including basic faces.
5450 may be null. If faces are freed, make sure the frame's current 5450 C may be null. If faces are freed, make sure the frame's current
5451 matrix is marked invalid, so that a display caused by an expose 5451 matrix is marked invalid, so that a display caused by an expose
5452 event doesn't try to use faces we destroyed. */ 5452 event doesn't try to use faces we destroyed. */
5453 5453
5454 static void 5454 static void
5455 free_realized_faces (c) 5455 free_realized_faces (c)