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

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

bug#54263: 29.0.50; color-values-from-color-spec accepts whitespace in r


From: Lars Ingebrigtsen
Subject: bug#54263: 29.0.50; color-values-from-color-spec accepts whitespace in rgbi: specifications
Date: Sat, 05 Mar 2022 20:06:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Philip Kaludercic <philipk@posteo.net> 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





reply via email to

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