diff options
| author | Stefan Monnier | 2012-10-28 11:52:42 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-10-28 11:52:42 -0400 |
| commit | e483264ca56201eb40858242aebd2c66419fb365 (patch) | |
| tree | a3cc0b19816a08fd6080d6b64d2f1bb3ba909329 /src/frame.c | |
| parent | 15a8af19f431e183d9842edb6f60b117cda77319 (diff) | |
| download | emacs-e483264ca56201eb40858242aebd2c66419fb365.tar.gz emacs-e483264ca56201eb40858242aebd2c66419fb365.zip | |
* src/frame.c (x_set_font): Catch internal error.
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index 6478ad1e06f..17a99000c9b 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -3242,6 +3242,9 @@ x_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 3242 | Lisp_Object ascii_font = fontset_ascii (fontset); | 3242 | Lisp_Object ascii_font = fontset_ascii (fontset); |
| 3243 | Lisp_Object spec = font_spec_from_name (ascii_font); | 3243 | Lisp_Object spec = font_spec_from_name (ascii_font); |
| 3244 | 3244 | ||
| 3245 | if (NILP (spec)) | ||
| 3246 | signal_error ("Invalid font name", ascii_font); | ||
| 3247 | |||
| 3245 | if (! font_match_p (spec, font_object)) | 3248 | if (! font_match_p (spec, font_object)) |
| 3246 | fontset = -1; | 3249 | fontset = -1; |
| 3247 | } | 3250 | } |