diff options
| author | Richard M. Stallman | 2006-07-29 01:57:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-07-29 01:57:38 +0000 |
| commit | 418ca4d22a6bb3aa5bd4584f21ed4c7da12e0b80 (patch) | |
| tree | a05d6833036cf553f07f5ec3e412fb7e1268a3f9 /src | |
| parent | 9e62c96292a11f1905fb45881c3996832f6265d1 (diff) | |
| download | emacs-418ca4d22a6bb3aa5bd4584f21ed4c7da12e0b80.tar.gz emacs-418ca4d22a6bb3aa5bd4584f21ed4c7da12e0b80.zip | |
(lookup_named_face, Fdisplay_supports_face_attributes_p):
Add conditional aborts for clarity.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index f67ea61b37a..99355cca6af 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -5717,6 +5717,8 @@ lookup_named_face (f, symbol, c, signal_p) | |||
| 5717 | if (!realize_basic_faces (f)) | 5717 | if (!realize_basic_faces (f)) |
| 5718 | return -1; | 5718 | return -1; |
| 5719 | default_face = FACE_FROM_ID (f, DEFAULT_FACE_ID); | 5719 | default_face = FACE_FROM_ID (f, DEFAULT_FACE_ID); |
| 5720 | if (default_face == NULL) | ||
| 5721 | abort (); /* realize_basic_faces must have set it up */ | ||
| 5720 | } | 5722 | } |
| 5721 | 5723 | ||
| 5722 | if (!get_lface_attributes (f, symbol, symbol_attrs, signal_p)) | 5724 | if (!get_lface_attributes (f, symbol, symbol_attrs, signal_p)) |
| @@ -6221,6 +6223,8 @@ face for italic. */) | |||
| 6221 | if (! realize_basic_faces (f)) | 6223 | if (! realize_basic_faces (f)) |
| 6222 | error ("Cannot realize default face"); | 6224 | error ("Cannot realize default face"); |
| 6223 | def_face = FACE_FROM_ID (f, DEFAULT_FACE_ID); | 6225 | def_face = FACE_FROM_ID (f, DEFAULT_FACE_ID); |
| 6226 | if (def_face == NULL) | ||
| 6227 | abort (); /* realize_basic_faces must have set it up */ | ||
| 6224 | } | 6228 | } |
| 6225 | 6229 | ||
| 6226 | /* Dispatch to the appropriate handler. */ | 6230 | /* Dispatch to the appropriate handler. */ |