comparison src/faces.c @ 444:576fb035e263 r21-2-37

Import from CVS: tag r21-2-37
author cvs
date Mon, 13 Aug 2007 11:36:19 +0200
parents abe6d1db359e
children 1ccc32a20af4
comparison
equal deleted inserted replaced
443:a8296e22da4e 444:576fb035e263
594 return retval; 594 return retval;
595 } 595 }
596 596
597 597
598 DEFUN ("facep", Ffacep, 1, 1, 0, /* 598 DEFUN ("facep", Ffacep, 1, 1, 0, /*
599 Return non-nil if OBJECT is a face. 599 Return t if OBJECT is a face.
600 */ 600 */
601 (object)) 601 (object))
602 { 602 {
603 return FACEP (object) ? Qt : Qnil; 603 return FACEP (object) ? Qt : Qnil;
604 } 604 }
760 760
761 return face_list; 761 return face_list;
762 } 762 }
763 763
764 DEFUN ("make-face", Fmake_face, 1, 3, 0, /* 764 DEFUN ("make-face", Fmake_face, 1, 3, 0, /*
765 Define and return a new FACE described by DOC-STRING. 765 Define a new face with name NAME (a symbol), described by DOC-STRING.
766 You can modify the font, color, etc of a face with the set-face-* functions. 766 You can modify the font, color, etc. of a face with the set-face-* functions.
767 If the face already exists, it is unmodified. 767 If the face already exists, it is unmodified.
768 If TEMPORARY is non-nil, this face will cease to exist if not in use. 768 If TEMPORARY is non-nil, this face will cease to exist if not in use.
769 */ 769 */
770 (name, doc_string, temporary)) 770 (name, doc_string, temporary))
771 { 771 {
1573 1573
1574 /* Now finally merge in the default face. */ 1574 /* Now finally merge in the default face. */
1575 findex = get_builtin_face_cache_index (w, Vdefault_face); 1575 findex = get_builtin_face_cache_index (w, Vdefault_face);
1576 merge_face_cachel_data (w, findex, &cachel); 1576 merge_face_cachel_data (w, findex, &cachel);
1577 1577
1578 return get_merged_face_cache_index (w, &cachel); 1578 findex = get_merged_face_cache_index (w, &cachel);
1579 if (cachel.merged_faces &&
1580 /* merged_faces did not get stored and available via return value */
1581 Dynarr_at (w->face_cachels, findex).merged_faces !=
1582 cachel.merged_faces)
1583 {
1584 Dynarr_free (cachel.merged_faces);
1585 cachel.merged_faces = 0;
1586 }
1587 return findex;
1579 } 1588 }
1580 } 1589 }
1581 1590
1582 1591
1583 /***************************************************************************** 1592 /*****************************************************************************