diff options
| author | Kenichi Handa | 2004-12-08 23:42:20 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-12-08 23:42:20 +0000 |
| commit | 9683749a0473b4b6b9987922faf0c3615809a3bc (patch) | |
| tree | 1ede6a304e4f8d105da00f6931841ab0f662a43f /src | |
| parent | 80cc9c8108fd48b04d6114c3a73596a0d596d8af (diff) | |
| download | emacs-9683749a0473b4b6b9987922faf0c3615809a3bc.tar.gz emacs-9683749a0473b4b6b9987922faf0c3615809a3bc.zip | |
(Fset_fontset_font): Call find_font_encoding with
concatenation of family and registry.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fontset.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fontset.c b/src/fontset.c index baa56ad3a6f..27412558aad 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1410,7 +1410,7 @@ appended. By default, FONT-SPEC overrides the previous settings. */) | |||
| 1410 | Lisp_Object name, target, font_spec, frame, add; | 1410 | Lisp_Object name, target, font_spec, frame, add; |
| 1411 | { | 1411 | { |
| 1412 | Lisp_Object fontset; | 1412 | Lisp_Object fontset; |
| 1413 | Lisp_Object font_def, registry; | 1413 | Lisp_Object font_def, registry, family; |
| 1414 | Lisp_Object encoding, repertory; | 1414 | Lisp_Object encoding, repertory; |
| 1415 | Lisp_Object range_list; | 1415 | Lisp_Object range_list; |
| 1416 | struct charset *charset = NULL; | 1416 | struct charset *charset = NULL; |
| @@ -1449,8 +1449,6 @@ appended. By default, FONT-SPEC overrides the previous settings. */) | |||
| 1449 | } | 1449 | } |
| 1450 | else if (CONSP (font_spec)) | 1450 | else if (CONSP (font_spec)) |
| 1451 | { | 1451 | { |
| 1452 | Lisp_Object family; | ||
| 1453 | |||
| 1454 | family = XCAR (font_spec); | 1452 | family = XCAR (font_spec); |
| 1455 | registry = XCDR (font_spec); | 1453 | registry = XCDR (font_spec); |
| 1456 | 1454 | ||
| @@ -1474,7 +1472,7 @@ appended. By default, FONT-SPEC overrides the previous settings. */) | |||
| 1474 | if (STRINGP (font_spec)) | 1472 | if (STRINGP (font_spec)) |
| 1475 | encoding = find_font_encoding (font_spec); | 1473 | encoding = find_font_encoding (font_spec); |
| 1476 | else | 1474 | else |
| 1477 | encoding = find_font_encoding (registry); | 1475 | encoding = find_font_encoding (concat2 (family, registry)); |
| 1478 | if (SYMBOLP (encoding)) | 1476 | if (SYMBOLP (encoding)) |
| 1479 | { | 1477 | { |
| 1480 | CHECK_CHARSET (encoding); | 1478 | CHECK_CHARSET (encoding); |