diff options
Diffstat (limited to 'src/fontset.c')
| -rw-r--r-- | src/fontset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fontset.c b/src/fontset.c index 33d1d24e5b3..850558b08a0 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1677,11 +1677,10 @@ FONT-SPEC is a vector, a cons, or a string. See the documentation of | |||
| 1677 | `set-fontset-font' for the meaning. */) | 1677 | `set-fontset-font' for the meaning. */) |
| 1678 | (Lisp_Object name, Lisp_Object fontlist) | 1678 | (Lisp_Object name, Lisp_Object fontlist) |
| 1679 | { | 1679 | { |
| 1680 | Lisp_Object fontset; | 1680 | Lisp_Object fontset, tail; |
| 1681 | int id; | 1681 | int id; |
| 1682 | 1682 | ||
| 1683 | CHECK_STRING (name); | 1683 | CHECK_STRING (name); |
| 1684 | CHECK_LIST (fontlist); | ||
| 1685 | 1684 | ||
| 1686 | name = Fdowncase (name); | 1685 | name = Fdowncase (name); |
| 1687 | id = fs_query_fontset (name, 0); | 1686 | id = fs_query_fontset (name, 0); |
| @@ -1714,11 +1713,11 @@ FONT-SPEC is a vector, a cons, or a string. See the documentation of | |||
| 1714 | Fset_char_table_range (fontset, Qt, Qnil); | 1713 | Fset_char_table_range (fontset, Qt, Qnil); |
| 1715 | } | 1714 | } |
| 1716 | 1715 | ||
| 1717 | for (; CONSP (fontlist); fontlist = XCDR (fontlist)) | 1716 | for (tail = fontlist; CONSP (tail); tail = XCDR (tail)) |
| 1718 | { | 1717 | { |
| 1719 | Lisp_Object elt, script; | 1718 | Lisp_Object elt, script; |
| 1720 | 1719 | ||
| 1721 | elt = XCAR (fontlist); | 1720 | elt = XCAR (tail); |
| 1722 | script = Fcar (elt); | 1721 | script = Fcar (elt); |
| 1723 | elt = Fcdr (elt); | 1722 | elt = Fcdr (elt); |
| 1724 | if (CONSP (elt) && (NILP (XCDR (elt)) || CONSP (XCDR (elt)))) | 1723 | if (CONSP (elt) && (NILP (XCDR (elt)) || CONSP (XCDR (elt)))) |
| @@ -1727,6 +1726,7 @@ FONT-SPEC is a vector, a cons, or a string. See the documentation of | |||
| 1727 | else | 1726 | else |
| 1728 | Fset_fontset_font (name, script, elt, Qnil, Qappend); | 1727 | Fset_fontset_font (name, script, elt, Qnil, Qappend); |
| 1729 | } | 1728 | } |
| 1729 | CHECK_LIST_END (tail, fontlist); | ||
| 1730 | return name; | 1730 | return name; |
| 1731 | } | 1731 | } |
| 1732 | 1732 | ||