diff options
| author | Jim Blandy | 1993-07-18 08:07:18 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-07-18 08:07:18 +0000 |
| commit | 6817eab40505c7a9dc545eeba4b833b4868f4b41 (patch) | |
| tree | 5d20c39dfcd73953760b5ed4c89a178b4bd4c1ae /src | |
| parent | 431e6a264b74d7a71215c6d013851bea23dd23da (diff) | |
| download | emacs-6817eab40505c7a9dc545eeba4b833b4868f4b41.tar.gz emacs-6817eab40505c7a9dc545eeba4b833b4868f4b41.zip | |
* xfns.c (Fx_create_frame): Block input around call to
x_new_font. Test if the return value is a string, not if it's
nil; x_new_font can return things besides nil and strings, to
indicate error conditions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 54dd80ee480..cc0464f8d1d 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1754,8 +1754,10 @@ be shared by the new frame.") | |||
| 1754 | Lisp_Object font; | 1754 | Lisp_Object font; |
| 1755 | 1755 | ||
| 1756 | /* Try out a font which we know has bold and italic variations. */ | 1756 | /* Try out a font which we know has bold and italic variations. */ |
| 1757 | BLOCK_INPUT; | ||
| 1757 | font = x_new_font (f, "-*-*-medium-r-*-*-*-*-*-*-c-*-iso8859-1"); | 1758 | font = x_new_font (f, "-*-*-medium-r-*-*-*-*-*-*-c-*-iso8859-1"); |
| 1758 | if (NILP (font)) | 1759 | UNBLOCK_INPUT; |
| 1760 | if (! STRINGP (font)) | ||
| 1759 | font = build_string ("-*-fixed-*-*-*-*-*-120-*-*-c-*-iso8859-1"); | 1761 | font = build_string ("-*-fixed-*-*-*-*-*-120-*-*-c-*-iso8859-1"); |
| 1760 | 1762 | ||
| 1761 | x_default_parameter (f, parms, Qfont, font, | 1763 | x_default_parameter (f, parms, Qfont, font, |