GNU bug report logs - #54263
29.0.50; color-values-from-color-spec accepts whitespace in rgbi: specifications

Previous Next

Package: emacs;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Sat, 5 Mar 2022 17:06:01 UTC

Severity: normal

Found in version 29.0.50

Done: Mattias EngdegÄrd <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 54263 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 54263 <at> debbugs.gnu.org
Subject: Re: bug#54263: 29.0.50; color-values-from-color-spec accepts
 whitespace in rgbi: specifications
Date: Sat, 05 Mar 2022 20:28:32 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Philip Kaludercic <philipk <at> 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?

I haven't seen the function being used anywhere up until now (which
doesn't have to mean anything), but considering that this is a
relatively niche edge-case I would say that the bug should either be
solved now or never.

-- 
	Philip Kaludercic




This bug report was last modified 3 years and 76 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.