Subject: bug#50094: 27.2; `M-x list-colors-display` fails with an error

From: "Basil L. Contovounesios" <[email-masked]>
Date: Tue, 17 Aug 2021 21:03:56 +0100

Simon Katz [2021-08-17 14:57 +0100] wrote:

> `M-x list-colors-display` fails with an error.
>
> I produced this bug report in Emacs 27.2.2 with no additional packages loaded.
>
> I also tried with Emacs 26.3, with the same result.
>
> The error is caused by `(apply 'max color-values)` being called when
> `color-values` is null.

FWIW, this code has been removed in the latest development version of
Emacs:

Improved light/dark colour predicate (bug#41544)
68ae6faa7f 2020-06-10 20:11:13 +0200
https://git.sv.gnu.org/cgit/emacs.git/commit/?id=68ae6faa7f1b4c348740667f98fbf1d1ce5a7979

-- 
Basil