Mercurial > emacs
comparison src/xfaces.c @ 40278:6ee20fddfbc5
(Fface_attributes_as_vector): New function.
(syms_of_xfaces): defsubr it.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 24 Oct 2001 22:57:22 +0000 |
parents | afcadaf71d6f |
children | 560b1c474b1a |
comparison
equal
deleted
inserted
replaced
40277:61a533745adf | 40278:6ee20fddfbc5 |
---|---|
5464 bcopy (default_face->lface, attrs, sizeof attrs); | 5464 bcopy (default_face->lface, attrs, sizeof attrs); |
5465 merge_face_vectors (f, symbol_attrs, attrs, Qnil); | 5465 merge_face_vectors (f, symbol_attrs, attrs, Qnil); |
5466 return lookup_face (f, attrs, c, default_face); | 5466 return lookup_face (f, attrs, c, default_face); |
5467 } | 5467 } |
5468 | 5468 |
5469 DEFUN ("face-attributes-as-vector", Fface_attributes_as_vector, | |
5470 Sface_attributes_as_vector, 1, 1, 0, | |
5471 doc: /* Return a vector of face attributes corresponding to PLIST. */) | |
5472 (plist) | |
5473 Lisp_Object plist; | |
5474 { | |
5475 Lisp_Object lface; | |
5476 lface = Fmake_vector (make_number (LFACE_VECTOR_SIZE), | |
5477 Qunspecified); | |
5478 merge_face_vector_with_property (XFRAME (selected_frame), | |
5479 XVECTOR (lface)->contents, | |
5480 plist); | |
5481 return lface; | |
5482 } | |
5483 | |
5469 | 5484 |
5470 | 5485 |
5471 /*********************************************************************** | 5486 /*********************************************************************** |
5472 Font selection | 5487 Font selection |
5473 ***********************************************************************/ | 5488 ***********************************************************************/ |
6711 face_id = lookup_face (f, attrs, ch, NULL); | 6726 face_id = lookup_face (f, attrs, ch, NULL); |
6712 } | 6727 } |
6713 | 6728 |
6714 return face_id; | 6729 return face_id; |
6715 } | 6730 } |
6716 | |
6717 | 6731 |
6718 /* Return the face ID associated with buffer position POS for | 6732 /* Return the face ID associated with buffer position POS for |
6719 displaying ASCII characters. Return in *ENDPTR the position at | 6733 displaying ASCII characters. Return in *ENDPTR the position at |
6720 which a different face is needed, as far as text properties and | 6734 which a different face is needed, as far as text properties and |
6721 overlays are concerned. W is a window displaying current_buffer. | 6735 overlays are concerned. W is a window displaying current_buffer. |
7200 defsubr (&Sface_font); | 7214 defsubr (&Sface_font); |
7201 defsubr (&Sframe_face_alist); | 7215 defsubr (&Sframe_face_alist); |
7202 defsubr (&Sinternal_set_font_selection_order); | 7216 defsubr (&Sinternal_set_font_selection_order); |
7203 defsubr (&Sinternal_set_alternative_font_family_alist); | 7217 defsubr (&Sinternal_set_alternative_font_family_alist); |
7204 defsubr (&Sinternal_set_alternative_font_registry_alist); | 7218 defsubr (&Sinternal_set_alternative_font_registry_alist); |
7219 defsubr (&Sface_attributes_as_vector); | |
7205 #if GLYPH_DEBUG | 7220 #if GLYPH_DEBUG |
7206 defsubr (&Sdump_face); | 7221 defsubr (&Sdump_face); |
7207 defsubr (&Sshow_face_resources); | 7222 defsubr (&Sshow_face_resources); |
7208 #endif /* GLYPH_DEBUG */ | 7223 #endif /* GLYPH_DEBUG */ |
7209 defsubr (&Sclear_face_cache); | 7224 defsubr (&Sclear_face_cache); |