Subject: Re: bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments
From: Stefan Kangas <[email-masked]>
To: 唐治洋 <[email-masked]>
Cc: [email-masked]
Date: Thu, 1 Oct 2020 05:50:31 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Stefan Kangas <[email-masked]> writes:

> 唐治洋 <[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.

More information was requested, but none was given within 5 weeks, so
I'm closing this bug.  If this is still an issue, please reply to this
email (use "Reply to all" in your email client) and we can reopen the
bug report.

Best regards,
Stefan Kangas