diff options
author | Kenichi Handa <handa@m17n.org> | 1999-04-10 02:21:00 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1999-04-10 02:21:00 +0000 |
commit | 79091e9c64514eeb6dad7a7c245a453d8fa08227 (patch) | |
tree | 492c34949987e5102a91578ac37987dd0c6cce93 /src/fontset.c | |
parent | b1b77d620ebb61a26cce5867f100ed7fc2bc6a5d (diff) | |
download | emacs-79091e9c64514eeb6dad7a7c245a453d8fa08227.tar.gz emacs-79091e9c64514eeb6dad7a7c245a453d8fa08227.tar.bz2 emacs-79091e9c64514eeb6dad7a7c245a453d8fa08227.zip |
(Fquery_fontset): Check for fontset aliases here.
(Fnew_fontset, Fset_fontset_font): Don't check for them here.
Diffstat (limited to 'src/fontset.c')
-rw-r--r-- | src/fontset.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fontset.c b/src/fontset.c index 453c56673e4..a3da47bc520 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -464,6 +464,10 @@ If REGEXPP is non-nil, PATTERN is a regular expression.") if (XSTRING (pattern)->size == 0) return Qnil; + tem = Frassoc (pattern, Vfontset_alias_alist); + if (!NILP (tem)) + return Fcar (tem); + if (NILP (regexpp)) regexp = fontset_pattern_regexp (pattern); else @@ -557,16 +561,15 @@ FONTLIST is an alist of charsets vs corresponding font names.") Lisp_Object name, fontlist; { Lisp_Object fullname, fontset_info; - Lisp_Object tail, tem; + Lisp_Object tail; (*check_window_system_func) (); CHECK_STRING (name, 0); CHECK_LIST (fontlist, 1); - tem = Frassoc (name, Vfontset_alias_alist); fullname = Fquery_fontset (name, Qnil); - if (!NILP (tem) || !NILP (fullname)) + if (!NILP (fullname)) error ("Fontset `%s' matches the existing fontset `%s'", XSTRING (name)->data, XSTRING (fullname)->data); @@ -608,7 +611,6 @@ If FRAME is omitted or nil, all frames are affected.") { int charset; Lisp_Object fullname, fontlist; - Lisp_Object tem; (*check_window_system_func) (); @@ -621,9 +623,8 @@ If FRAME is omitted or nil, all frames are affected.") if ((charset = get_charset_id (charset_symbol)) < 0) error ("Invalid charset: %s", XSYMBOL (charset_symbol)->name->data); - tem = Frassoc (name, Vfontset_alias_alist); fullname = Fquery_fontset (name, Qnil); - if (!NILP (tem) || !NILP (fullname)) + if (!NILP (fullname)) error ("Fontset `%s' does not exist", XSTRING (name)->data); /* If FRAME is not specified, we must, at first, update contents of |