Mercurial > hg > xemacs-beta
diff src/faces.c @ 173:8eaf7971accc r20-3b13
Import from CVS: tag r20-3b13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:49:09 +0200 |
parents | cca96a509cfe |
children | bfd6434d15b3 |
line wrap: on
line diff
--- a/src/faces.c Mon Aug 13 09:47:55 2007 +0200 +++ b/src/faces.c Mon Aug 13 09:49:09 2007 +0200 @@ -115,7 +115,7 @@ ((markobj) (face->charsets_warned_about)); - return (face->plist); + return face->plist; } static void @@ -339,7 +339,7 @@ face_validate (Lisp_Object data, Error_behavior errb) { int name_seen = 0; - Lisp_Object valw; + Lisp_Object valw = Qnil; data = Fcdr (data); /* skip over Qface */ while (!NILP (data)) @@ -528,9 +528,9 @@ for (; !NILP (values); values = XCDR (values)) { Lisp_Object value = XCDR (XCAR (values)); - if (VECTORP (value) && XVECTOR (value)->size) + if (VECTORP (value) && XVECTOR_LENGTH (value)) { - if (EQ (Ffind_face (vector_data (XVECTOR (value))[0]), inh_face)) + if (EQ (Ffind_face (XVECTOR_DATA (value)[0]), inh_face)) Fset_specifier_dirty_flag (FACE_PROPERTY_SPECIFIER (inh_face, property)); } @@ -641,7 +641,7 @@ */ (object)) { - return (FACEP (object) ? Qt : Qnil); + return FACEP (object) ? Qt : Qnil; } DEFUN ("find-face", Ffind_face, 1, 1, 0, /* @@ -686,7 +686,7 @@ */ (face)) { - return (XFACE (Fget_face (face))->name); + return XFACE (Fget_face (face))->name; } DEFUN ("built-in-face-specifiers", Fbuilt_in_face_specifiers, 0, 0, 0, /* @@ -1076,12 +1076,12 @@ for (i = 0; i < cachel->nfaces; i++) { struct face_cachel *oth; - + oth = Dynarr_atp (w->face_cachels, FACE_CACHEL_FINDEX_UNSAFE (cachel, i)); /* Tout le monde aime la recursion */ ensure_face_cachel_contains_charset (oth, domain, charset); - + if (oth->font_specified[offs]) { new_val = oth->font[offs]; @@ -1135,12 +1135,12 @@ Lisp_Object domain, unsigned char *charsets) { int i; - + for (i = 0; i < NUM_LEADING_BYTES; i++) if (charsets[i]) { Lisp_Object charset; - + charset = CHARSET_BY_LEADING_BYTE (i + MIN_LEADING_BYTE); assert (CHARSETP (charset)); ensure_face_cachel_contains_charset (cachel, domain, charset); @@ -1153,7 +1153,7 @@ struct font_metric_info *fm) { int i; - + fm->width = 1; fm->height = fm->ascent = 1; fm->descent = 0; @@ -1166,7 +1166,7 @@ Lisp_Object charset; Lisp_Object font_instance; struct Lisp_Font_Instance *fi; - + charset = CHARSET_BY_LEADING_BYTE (i + MIN_LEADING_BYTE); assert (CHARSETP (charset)); font_instance = FACE_CACHEL_FONT (cachel, charset); @@ -1216,7 +1216,7 @@ } \ cachel->field##_specified = (bound || default_face); \ } while (0) - + FROB (foreground); FROB (background); FROB (display_table); @@ -1514,7 +1514,7 @@ { struct face_cachel cachel; int len = Dynarr_length (ef->extents); - face_index findex; + face_index findex = 0; Lisp_Object window = Qnil; XSETWINDOW (window, w); @@ -1550,7 +1550,7 @@ { findex = get_builtin_face_cache_index (w, one_face); merge_face_cachel_data (w, findex, &cachel); - + /* code duplication here but there's no clean way to avoid it. */ if (cachel.nfaces >= NUM_STATIC_CACHEL_FACES) @@ -1565,7 +1565,7 @@ } face = XCDR (face); } - + if (has_findex) { if (cachel.nfaces >= NUM_STATIC_CACHEL_FACES) @@ -1604,7 +1604,7 @@ { Arg av[10]; int ac = 0; - + if (EQ (name, Qforeground)) { Lisp_Object color = FACE_FOREGROUND (Vdefault_face, frame); @@ -1688,7 +1688,7 @@ else if (EQ (locale, Qglobal) || EQ (locale, Qfallback)) { Lisp_Object frmcons, devcons, concons; - + FRAME_LOOP_NO_BREAK (frmcons, devcons, concons) update_EmacsFrame (XCAR (frmcons), name); } @@ -1734,11 +1734,11 @@ else { Lisp_Object devcons, concons; - + DEVICE_LOOP_NO_BREAK (devcons, concons) MARK_DEVICE_FRAMES_FACES_CHANGED (XDEVICE (XCAR (devcons))); } - + update_faces_inheritance (face, property); XFACE (face)->dirty = 1; } @@ -1975,7 +1975,7 @@ #endif set_specifier_fallback (Fget (Vdefault_face, Qfont, Qnil), inst_list); } - + set_specifier_fallback (Fget (Vdefault_face, Qunderline, Qnil), list1 (Fcons (Qnil, Qnil))); set_specifier_fallback (Fget (Vdefault_face, Qstrikethru, Qnil),