diff options
| author | Kenichi Handa | 2009-01-28 11:50:18 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-01-28 11:50:18 +0000 |
| commit | f088b054762a1efde71f64690d0418811812dd59 (patch) | |
| tree | bfe0bfac59fe64e2cdfa72aae431342647754f1f /src | |
| parent | 147135ac93c12750c9dc12ce83fa1365225a57ef (diff) | |
| download | emacs-f088b054762a1efde71f64690d0418811812dd59.tar.gz emacs-f088b054762a1efde71f64690d0418811812dd59.zip | |
(font_for_char): Use assq_no_quit, not assoc_no_quit.
(fontset_get_font_group): Remember that no font-group is specified
for C.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/fontset.c | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9b359f166c3..ee6b952e435 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | 2009-01-28 Kenichi Handa <handa@m17n.org> | 1 | 2009-01-28 Kenichi Handa <handa@m17n.org> |
| 2 | 2 | ||
| 3 | * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit. | 3 | * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit. |
| 4 | (fontset_get_font_group): Remember that no font-group is specified | ||
| 5 | for C. | ||
| 4 | 6 | ||
| 5 | 2009-01-27 Chong Yidong <cyd@stupidchicken.com> | 7 | 2009-01-27 Chong Yidong <cyd@stupidchicken.com> |
| 6 | 8 | ||
diff --git a/src/fontset.c b/src/fontset.c index b69c650c7c5..701ab66e89e 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -89,7 +89,8 @@ EXFUN (Fclear_face_cache, 1); | |||
| 89 | An element of a base fontset is a vector of FONT-DEFs which itself | 89 | An element of a base fontset is a vector of FONT-DEFs which itself |
| 90 | is a vector [ FONT-SPEC ENCODING REPERTORY ]. | 90 | is a vector [ FONT-SPEC ENCODING REPERTORY ]. |
| 91 | 91 | ||
| 92 | An element of a realized fontset is nil, t, or a vector of this form: | 92 | An element of a realized fontset is nil, t, 0, or a vector of this |
| 93 | form: | ||
| 93 | 94 | ||
| 94 | [ CHARSET-ORDERED-LIST-TICK PREFERRED-RFONT-DEF | 95 | [ CHARSET-ORDERED-LIST-TICK PREFERRED-RFONT-DEF |
| 95 | RFONT-DEF0 RFONT-DEF1 ... ] | 96 | RFONT-DEF0 RFONT-DEF1 ... ] |
| @@ -107,6 +108,10 @@ EXFUN (Fclear_face_cache, 1); | |||
| 107 | The value t means that no font is available for the corresponding | 108 | The value t means that no font is available for the corresponding |
| 108 | range of characters. | 109 | range of characters. |
| 109 | 110 | ||
| 111 | The value 0 means that no font is available for the corresponding | ||
| 112 | range of characters in this fontset, but may be available in the | ||
| 113 | default fontset. | ||
| 114 | |||
| 110 | 115 | ||
| 111 | A fontset has 9 extra slots. | 116 | A fontset has 9 extra slots. |
| 112 | 117 | ||
| @@ -474,7 +479,11 @@ fontset_get_font_group (Lisp_Object fontset, int c) | |||
| 474 | else | 479 | else |
| 475 | font_group = FONTSET_FALLBACK (base_fontset); | 480 | font_group = FONTSET_FALLBACK (base_fontset); |
| 476 | if (NILP (font_group)) | 481 | if (NILP (font_group)) |
| 477 | return Qnil; | 482 | { |
| 483 | if (c >= 0) | ||
| 484 | char_table_set_range (fontset, from, to, make_number (0)); | ||
| 485 | return Qnil; | ||
| 486 | } | ||
| 478 | font_group = Fcopy_sequence (font_group); | 487 | font_group = Fcopy_sequence (font_group); |
| 479 | for (i = 0; i < ASIZE (font_group); i++) | 488 | for (i = 0; i < ASIZE (font_group); i++) |
| 480 | if (! NILP (AREF (font_group, i))) | 489 | if (! NILP (AREF (font_group, i))) |