Subject: Re: bug#54263: 29.0.50; color-values-from-color-spec accepts whitespace in rgbi: specifications

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 05 Mar 2022 20:06:29 +0100

Philip Kaludercic <[email-masked]> writes:

> I am not certain if this is intended, but the "rgbi:" specifications
> appear to tolerate whitespace
>
>        (color-values-from-color-spec "rgbi:0/0/ 0")
>
> despite not being documented.

If we were designing this function now, then being stricter here would
be a good idea.  But if there's code out there that relies on the
current sloppy parsing, then it'd be problematic to make it stricter.

On the other hand, I think that function was introduced in emacs-28, so
perhaps that's not a concern in practice?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no