From: Dave Love Date: Tue, 16 Jul 2002 15:10:44 +0000 (+0000) Subject: (fontset_ref, fontset_set, fs_load_font) X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~565 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9dba850d5989affa94aeb1d141ba40deafb2a3b3;p=emacs.git (fontset_ref, fontset_set, fs_load_font) (Ffontset_info): Convert Lisp types. --- diff --git a/src/fontset.c b/src/fontset.c index 34d27ce92a4..05db03e100c 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -231,7 +231,7 @@ fontset_ref (fontset, c) for (tail = FONTSET_CHARSET_ALIST (fontset); CONSP (tail); tail = XCDR (tail)) { - charset = CHARSET_FROM_ID (XCAR (XCAR (tail))); + charset = CHARSET_FROM_ID (XINT (XCAR (XCAR (tail)))); if (ENCODE_CHAR (charset, c) != CHARSET_INVALID_CODE (charset)) { elt = XCDR (XCAR (tail)); @@ -260,8 +260,8 @@ fontset_set (fontset, idx, elt) { Lisp_Object id, slot, tail; - id = make_number (CHARSET_SYMBOL_ID (idx)); - if (id == charset_ascii) + id = CHARSET_SYMBOL_ID (idx); + if (XFASTINT (id) == charset_ascii) Fset_char_table_range (fontset, Fcons (make_number (0), make_number (127)), elt); @@ -559,7 +559,7 @@ fs_load_font (f, fontname) if (STRINGP (XCAR (elt)) && CHARSETP (XCDR (elt)) && fast_c_string_match_ignore_case (XCAR (elt), fontname) >= 0) { - fontp->charset = CHARSET_SYMBOL_ID (XCDR (elt)); + fontp->charset = XFASTINT (CHARSET_SYMBOL_ID (XCDR (elt))); break; } } @@ -1173,7 +1173,7 @@ If FRAME is omitted, it defaults to the currently selected frame. */) { elt = XCAR (tail); elt = Fcons ((INTEGERP (XCAR (elt)) - ? CHARSET_NAME (CHARSET_FROM_ID (XCAR (elt))) + ? CHARSET_NAME (CHARSET_FROM_ID (XFASTINT (XCAR (elt)))) : XCAR (elt)), Fcons (XCDR (elt), Qnil)); XSETCDR (XCAR (val), Fcons (elt, Qnil));