Subject: Re: bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments

From: Stefan Kangas <[email-masked]>
Date: Wed, 26 Aug 2020 07:57:20 -0700

唐治洋 <[email-masked]> writes:

> hi,
>
> I have a color name called "alternateSelectedControlColor", which has
> nil color value if called with color-values function. when I click the
> Color button in customize-create-themes, it will finally call
> list-color-print function, and this function has some lisp lines as
> follow:
>
>       (let* ((opoint (point))
> 	     (color-values (color-values (car color)))
> 	     (light-p (>= (apply 'max color-values)
> 			  (* (car (color-values "white")) .5))))
>
> color-values got a nil value, which cause max function called with a nil
> value, and then throw wrong-number-of-arguments error.

What is the bug in Emacs here?  Is it the return value of color-values?

Could you please show a minimal example of the error, without any
reference to your own code?  Thanks.

Best regards,
Stefan Kangas