comparison src/xfns.c @ 71993:3f1637b3adcb

(x_decode_color): Use signal_error.
author Kim F. Storm <storm@cua.dk>
date Tue, 18 Jul 2006 13:30:13 +0000
parents ae1e5666e49f
children 892ea79efee6 02e39decdc84 8a8e69664178
comparison
equal deleted inserted replaced
71992:760807463226 71993:3f1637b3adcb
757 /* x_defined_color is responsible for coping with failures 757 /* x_defined_color is responsible for coping with failures
758 by looking for a near-miss. */ 758 by looking for a near-miss. */
759 if (x_defined_color (f, SDATA (color_name), &cdef, 1)) 759 if (x_defined_color (f, SDATA (color_name), &cdef, 1))
760 return cdef.pixel; 760 return cdef.pixel;
761 761
762 Fsignal (Qerror, Fcons (build_string ("Undefined color"), 762 signal_error ("Undefined color", color_name);
763 Fcons (color_name, Qnil)));
764 return 0;
765 } 763 }
766 764
767 765
768 766
769 /* Change the `wait-for-wm' frame parameter of frame F. OLD_VALUE is 767 /* Change the `wait-for-wm' frame parameter of frame F. OLD_VALUE is