diff options
| author | Jim Blandy | 1993-05-24 15:03:32 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-24 15:03:32 +0000 |
| commit | c7e1d890aed499f70f07a421309da05fc8338858 (patch) | |
| tree | d3e976c6336a81475e4a81797f5275a295320ef1 | |
| parent | dad297617db181b1077d36e818948bba4eddcd08 (diff) | |
| download | emacs-c7e1d890aed499f70f07a421309da05fc8338858.tar.gz emacs-c7e1d890aed499f70f07a421309da05fc8338858.zip | |
* xterm.c (x_new_font): Reject fonts with varying spacing. We
don't support them yet.
* xfns.c (x_set_font): Report the error message properly.
* xfns.c (Fx_parse_geometry): No need to call check_x here; it
doesn't interact with the server at all, and we need it in order
to create our first frame.
| -rw-r--r-- | src/xfns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c index df2426f1e97..b4413e2e940 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -814,8 +814,10 @@ x_set_font (f, arg, oldval) | |||
| 814 | result = x_new_font (f, name); | 814 | result = x_new_font (f, name); |
| 815 | UNBLOCK_INPUT; | 815 | UNBLOCK_INPUT; |
| 816 | 816 | ||
| 817 | if (result) | 817 | if (result == 1) |
| 818 | error ("Font \"%s\" is not defined", name); | 818 | error ("Font \"%s\" is not defined", name); |
| 819 | if (result == 2) | ||
| 820 | error ("the characters of the given font have varying widths"); | ||
| 819 | } | 821 | } |
| 820 | 822 | ||
| 821 | void | 823 | void |
| @@ -1513,7 +1515,6 @@ Returns an alist of the form ((top . TOP), (left . LEFT) ... ).") | |||
| 1513 | unsigned int width, height; | 1515 | unsigned int width, height; |
| 1514 | Lisp_Object values[4]; | 1516 | Lisp_Object values[4]; |
| 1515 | 1517 | ||
| 1516 | check_x (); | ||
| 1517 | CHECK_STRING (string, 0); | 1518 | CHECK_STRING (string, 0); |
| 1518 | 1519 | ||
| 1519 | geometry = XParseGeometry ((char *) XSTRING (string)->data, | 1520 | geometry = XParseGeometry ((char *) XSTRING (string)->data, |