diff options
| author | Kenichi Handa | 2009-04-02 02:45:01 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-04-02 02:45:01 +0000 |
| commit | de0ad2f744d8d3feb4c5b8c5a3ba56c5472fbabb (patch) | |
| tree | 7431a2afb6fdf3cb313f2f58e49f5bcbbb3dea29 /src/fontset.c | |
| parent | 74ab01ffd8382d9112aa364b489b6fb84248f68b (diff) | |
| download | emacs-de0ad2f744d8d3feb4c5b8c5a3ba56c5472fbabb.tar.gz emacs-de0ad2f744d8d3feb4c5b8c5a3ba56c5472fbabb.zip | |
(fontset_font): Record no-font when a fontset
explicitly tells not to try another font-specs.
Diffstat (limited to 'src/fontset.c')
| -rw-r--r-- | src/fontset.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fontset.c b/src/fontset.c index f6c94f53e7e..6e2e34dac77 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -686,7 +686,7 @@ fontset_font (fontset, c, face, id) | |||
| 686 | if (VECTORP (rfont_def)) | 686 | if (VECTORP (rfont_def)) |
| 687 | return rfont_def; | 687 | return rfont_def; |
| 688 | if (EQ (rfont_def, Qt)) | 688 | if (EQ (rfont_def, Qt)) |
| 689 | return Qnil; | 689 | goto no_font; |
| 690 | 690 | ||
| 691 | /* Try a font-group of the default fontset. */ | 691 | /* Try a font-group of the default fontset. */ |
| 692 | base_fontset = FONTSET_BASE (fontset); | 692 | base_fontset = FONTSET_BASE (fontset); |
| @@ -699,7 +699,7 @@ fontset_font (fontset, c, face, id) | |||
| 699 | if (VECTORP (rfont_def)) | 699 | if (VECTORP (rfont_def)) |
| 700 | return rfont_def; | 700 | return rfont_def; |
| 701 | if (EQ (rfont_def, Qt)) | 701 | if (EQ (rfont_def, Qt)) |
| 702 | return Qnil; | 702 | goto no_font; |
| 703 | } | 703 | } |
| 704 | 704 | ||
| 705 | /* Try a fallback font-group of FONTSET. */ | 705 | /* Try a fallback font-group of FONTSET. */ |
| @@ -707,7 +707,7 @@ fontset_font (fontset, c, face, id) | |||
| 707 | if (VECTORP (rfont_def)) | 707 | if (VECTORP (rfont_def)) |
| 708 | return rfont_def; | 708 | return rfont_def; |
| 709 | if (EQ (rfont_def, Qt)) | 709 | if (EQ (rfont_def, Qt)) |
| 710 | return Qnil; | 710 | goto no_font; |
| 711 | 711 | ||
| 712 | /* Try a fallback font-group of the default fontset . */ | 712 | /* Try a fallback font-group of the default fontset . */ |
| 713 | if (! EQ (base_fontset, Vdefault_fontset)) | 713 | if (! EQ (base_fontset, Vdefault_fontset)) |
| @@ -717,6 +717,7 @@ fontset_font (fontset, c, face, id) | |||
| 717 | return rfont_def; | 717 | return rfont_def; |
| 718 | } | 718 | } |
| 719 | 719 | ||
| 720 | no_font: | ||
| 720 | /* Remember that we have no font for C. */ | 721 | /* Remember that we have no font for C. */ |
| 721 | FONTSET_SET (fontset, make_number (c), Qt); | 722 | FONTSET_SET (fontset, make_number (c), Qt); |
| 722 | 723 | ||