bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Kangas
Subject: bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments
Date: Wed, 26 Aug 2020 07:57:20 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

唐治洋 <markta31@icloud.com> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]