diff options
| -rw-r--r-- | lisp/international/fontset.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index c6c62ef0a0c..b7511d90b41 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el | |||
| @@ -1147,10 +1147,14 @@ given from DEFAULT-SPEC." | |||
| 1147 | (defun fontset-name-p (fontset) | 1147 | (defun fontset-name-p (fontset) |
| 1148 | "Return non-nil if FONTSET is valid as fontset name. | 1148 | "Return non-nil if FONTSET is valid as fontset name. |
| 1149 | A valid fontset name should conform to XLFD (X Logical Font Description) | 1149 | A valid fontset name should conform to XLFD (X Logical Font Description) |
| 1150 | with \"fontset\" in `<CHARSET_REGISTRY>' field." | 1150 | with \"fontset-SOMETHING\" in `<CHARSET_REGISTRY>' field. |
| 1151 | (and (string-match xlfd-tight-regexp fontset) | 1151 | A fontset alias name recorded in `fontset-alias-alist' is also a valid |
| 1152 | (string= (match-string (1+ xlfd-regexp-registry-subnum) fontset) | 1152 | fontset name." |
| 1153 | "fontset"))) | 1153 | (or (and (string-match xlfd-tight-regexp fontset) |
| 1154 | (let ((registry | ||
| 1155 | (match-string (1+ xlfd-regexp-registry-subnum) fontset))) | ||
| 1156 | (= 0 (string-match "\\`fontset-" registry)))) | ||
| 1157 | (consp (rassoc fontset fontset-alias-alist)))) | ||
| 1154 | 1158 | ||
| 1155 | (declare-function fontset-list "fontset.c" ()) | 1159 | (declare-function fontset-list "fontset.c" ()) |
| 1156 | 1160 | ||