Mercurial > emacs
changeset 71980:423c880b693f
(x_set_line_spacing, x_set_screen_gamma): Use signal_error.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 18 Jul 2006 13:28:09 +0000 |
parents | dd7e7d68e3b0 |
children | 802436ff7a47 |
files | src/frame.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/frame.c Tue Jul 18 13:28:02 2006 +0000 +++ b/src/frame.c Tue Jul 18 13:28:09 2006 +0000 @@ -3030,8 +3030,7 @@ else if (NATNUMP (new_value)) f->extra_line_spacing = XFASTINT (new_value); else - Fsignal (Qerror, Fcons (build_string ("Invalid line-spacing"), - Fcons (new_value, Qnil))); + signal_error ("Invalid line-spacing", new_value); if (FRAME_VISIBLE_P (f)) redraw_frame (f); } @@ -3051,8 +3050,7 @@ /* The value 0.4545 is the normal viewing gamma. */ f->gamma = 1.0 / (0.4545 * XFLOATINT (new_value)); else - Fsignal (Qerror, Fcons (build_string ("Invalid screen-gamma"), - Fcons (new_value, Qnil))); + signal_error ("Invalid screen-gamma", new_value); clear_face_cache (0); }