diff options
| author | Miles Bader | 2004-06-06 09:49:12 +0000 |
|---|---|---|
| committer | Miles Bader | 2004-06-06 09:49:12 +0000 |
| commit | 0722292b2057d8de5c4b845ef48508a6eceac5b8 (patch) | |
| tree | 5c07bdd6b13a9671c58a8ffd8972525f63baf1b9 /src | |
| parent | 2f9a6938e2b4e575ff59196c01b39031a13c2f68 (diff) | |
| download | emacs-0722292b2057d8de5c4b845ef48508a6eceac5b8.tar.gz emacs-0722292b2057d8de5c4b845ef48508a6eceac5b8.zip | |
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-377
(Fdisplay_supports_face_attributes_p): Work around bootstrapping problem
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xfaces.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8f1d7f3d54d..f639f384dcc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-06-06 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * xfaces.c (Fdisplay_supports_face_attributes_p): Give up | ||
| 4 | immediately if non-interactive or not initialized. | ||
| 5 | |||
| 1 | 2004-06-05 Richard M. Stallman <rms@gnu.org> | 6 | 2004-06-05 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * minibuf.c (Fcompleting_read): Doc fix. | 8 | * minibuf.c (Fcompleting_read): Doc fix. |
diff --git a/src/xfaces.c b/src/xfaces.c index fc665ce3bd5..d2cf2e24d08 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -6027,6 +6027,12 @@ face for italic. */) | |||
| 6027 | struct face *def_face; | 6027 | struct face *def_face; |
| 6028 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; | 6028 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; |
| 6029 | 6029 | ||
| 6030 | if (noninteractive || !initialized) | ||
| 6031 | /* We may not be able to access low-level face information in batch | ||
| 6032 | mode, or before being dumped, and this function is not going to | ||
| 6033 | be very useful in those cases anyway, so just give up. */ | ||
| 6034 | return Qnil; | ||
| 6035 | |||
| 6030 | if (NILP (display)) | 6036 | if (NILP (display)) |
| 6031 | frame = selected_frame; | 6037 | frame = selected_frame; |
| 6032 | else if (FRAMEP (display)) | 6038 | else if (FRAMEP (display)) |