From 9dc951871640a56262fa3a0e52fdf8119f8cafb6 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Tue, 18 Jul 2006 13:28:09 +0000 Subject: [PATCH] (x_set_line_spacing, x_set_screen_gamma): Use signal_error. --- src/frame.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frame.c b/src/frame.c index 6e2a1a21e55..1fdeb129f89 100644 --- a/src/frame.c +++ b/src/frame.c @@ -3030,8 +3030,7 @@ x_set_line_spacing (f, new_value, old_value) 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 @@ x_set_screen_gamma (f, new_value, old_value) /* 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); } -- 2.39.2