From: Kim F. Storm Date: Tue, 18 Jul 2006 13:30:13 +0000 (+0000) Subject: (x_decode_color): Use signal_error. X-Git-Tag: emacs-pretest-22.0.90~1355 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=93217cef09eec89554157b06b7d15a6c69f0694f;p=emacs.git (x_decode_color): Use signal_error. --- diff --git a/src/xfns.c b/src/xfns.c index dd0510cf0fa..47916fccb71 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -759,9 +759,7 @@ x_decode_color (f, color_name, mono_color) if (x_defined_color (f, SDATA (color_name), &cdef, 1)) return cdef.pixel; - Fsignal (Qerror, Fcons (build_string ("Undefined color"), - Fcons (color_name, Qnil))); - return 0; + signal_error ("Undefined color", color_name); }