From a124bbb629ec951495d00d5f2b462b055a70c71d Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 27 Jan 2009 05:07:04 +0000 Subject: [PATCH] (font_for_char): Use assq_no_quit, not assoc_no_quit. (Ffontset_font): Adjusted for the change of fontset entry. --- src/fontset.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/fontset.c b/src/fontset.c index cd375683083..2eabef8cfc0 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -898,7 +898,7 @@ face_for_char (f, face, c, pos, object) { Lisp_Object val; - val = assoc_no_quit (charset, Vfont_encoding_charset_alist); + val = assq_no_quit (charset, Vfont_encoding_charset_alist); if (CONSP (val) && CHARSETP (XCDR (val))) charset = XCDR (val); id = XINT (CHARSET_SYMBOL_ID (charset)); @@ -1955,6 +1955,8 @@ patterns. */) if (VECTORP (elt)) for (j = 0; j < ASIZE (elt); j++) { + Lisp_Object family, registry; + val = AREF (elt, j); repertory = AREF (val, 1); if (INTEGERP (repertory)) @@ -1970,7 +1972,14 @@ patterns. */) continue; } val = AREF (val, 0); - val = Fcons (AREF (val, 0), AREF (val, 5)); + /* VAL is a FONT-SPEC */ + family = AREF (val, FONT_FAMILY_INDEX); + if (! NILP (family)) + family = SYMBOL_NAME (family); + registry = AREF (val, FONT_REGISTRY_INDEX); + if (! NILP (registry)) + registry = SYMBOL_NAME (registry); + val = Fcons (family, registry); if (NILP (all)) return val; list = Fcons (val, list);