unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Philip Kaludercic <philipk@posteo.net>
Cc: 54263@debbugs.gnu.org
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	[thread overview]
Message-ID: <87fsnwfccq.fsf@gnus.org> (raw)
In-Reply-To: <87v8wswcsf.fsf@posteo.net> (Philip Kaludercic's message of "Sat,  05 Mar 2022 17:05:04 +0000")

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	other threads:[~2022-03-05 19:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-05 17:05 bug#54263: 29.0.50; color-values-from-color-spec accepts whitespace in rgbi: specifications Philip Kaludercic
2022-03-05 19:06 ` Lars Ingebrigtsen [this message]
2022-03-05 20:28   ` Philip Kaludercic
2022-03-06  9:56 ` Mattias Engdegård
2022-03-06 10:45   ` Philip Kaludercic
2022-03-06 11:12     ` Mattias Engdegård
2022-03-06 11:23       ` Mattias Engdegård
2022-03-06 12:47         ` Eli Zaretskii
2022-03-06 13:08           ` Mattias Engdegård
2022-03-06 14:06             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsnwfccq.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=54263@debbugs.gnu.org \
    --cc=philipk@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).