diff options
| author | Gerd Moellmann | 2000-03-21 16:13:31 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-21 16:13:31 +0000 |
| commit | d2cafc8c0ab73480c69068fbfe5b3f69ab05ef17 (patch) | |
| tree | 1fb78dca005cf3f8c8134b9fd29c204df48f0a9f /src | |
| parent | c7ea3acc6b1b88f21cbcbbdb369300279e109a98 (diff) | |
| download | emacs-d2cafc8c0ab73480c69068fbfe5b3f69ab05ef17.tar.gz emacs-d2cafc8c0ab73480c69068fbfe5b3f69ab05ef17.zip | |
(check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
(lface_fully_specified_p): Don't check contents of
LFACE_FONT_INDEX because that attribute is optional.
(realize_x_face): Remove now unwarranted xassert.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xfaces.c | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1f748139ff2..b34ba37ca29 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2000-03-21 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error. | ||
| 4 | (lface_fully_specified_p): Don't check contents of | ||
| 5 | LFACE_FONT_INDEX because that attribute is optional. | ||
| 6 | (realize_x_face): Remove now unwarranted xassert. | ||
| 7 | |||
| 1 | 2000-03-21 Kenichi HANDA <handa@etl.go.jp> | 8 | 2000-03-21 Kenichi HANDA <handa@etl.go.jp> |
| 2 | 9 | ||
| 3 | The following changes are to make font selection based on | 10 | The following changes are to make font selection based on |
diff --git a/src/xfaces.c b/src/xfaces.c index c3c4360f3b0..adfa1716c86 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -2711,8 +2711,8 @@ check_lface_attrs (attrs) | |||
| 2711 | || SYMBOLP (attrs[LFACE_STIPPLE_INDEX]) | 2711 | || SYMBOLP (attrs[LFACE_STIPPLE_INDEX]) |
| 2712 | || !NILP (Fbitmap_spec_p (attrs[LFACE_STIPPLE_INDEX]))); | 2712 | || !NILP (Fbitmap_spec_p (attrs[LFACE_STIPPLE_INDEX]))); |
| 2713 | xassert (UNSPECIFIEDP (attrs[LFACE_FONT_INDEX]) | 2713 | xassert (UNSPECIFIEDP (attrs[LFACE_FONT_INDEX]) |
| 2714 | || NILP (attr[LFACE_FONT_INDEX])); | 2714 | || NILP (attrs[LFACE_FONT_INDEX]) |
| 2715 | || STRINGP (attr[LFACE_FONT_INDEX])); | 2715 | || STRINGP (attrs[LFACE_FONT_INDEX])); |
| 2716 | #endif | 2716 | #endif |
| 2717 | } | 2717 | } |
| 2718 | 2718 | ||
| @@ -2838,7 +2838,7 @@ lface_fully_specified_p (attrs) | |||
| 2838 | int i; | 2838 | int i; |
| 2839 | 2839 | ||
| 2840 | for (i = 1; i < LFACE_VECTOR_SIZE; ++i) | 2840 | for (i = 1; i < LFACE_VECTOR_SIZE; ++i) |
| 2841 | if (UNSPECIFIEDP (attrs[i])) | 2841 | if (UNSPECIFIEDP (attrs[i]) && i != LFACE_FONT_INDEX) |
| 2842 | break; | 2842 | break; |
| 2843 | 2843 | ||
| 2844 | return i == LFACE_VECTOR_SIZE; | 2844 | return i == LFACE_VECTOR_SIZE; |
| @@ -5935,7 +5935,6 @@ realize_x_face (cache, attrs, c, base_face) | |||
| 5935 | if (!NILP (stipple)) | 5935 | if (!NILP (stipple)) |
| 5936 | face->stipple = load_pixmap (f, stipple, &face->pixmap_w, &face->pixmap_h); | 5936 | face->stipple = load_pixmap (f, stipple, &face->pixmap_w, &face->pixmap_h); |
| 5937 | 5937 | ||
| 5938 | xassert (face->fontset < 0); | ||
| 5939 | xassert (FACE_SUITABLE_FOR_CHAR_P (face, c)); | 5938 | xassert (FACE_SUITABLE_FOR_CHAR_P (face, c)); |
| 5940 | return face; | 5939 | return face; |
| 5941 | #endif /* HAVE_WINDOW_SYSTEM */ | 5940 | #endif /* HAVE_WINDOW_SYSTEM */ |