all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "В.Санников" <vsannikov20@yandex.ru>
Cc: 39590@debbugs.gnu.org
Subject: bug#39590: 25.2; Inconsistent color-values return values
Date: Thu, 13 Feb 2020 17:46:18 +0200	[thread overview]
Message-ID: <838sl6qylx.fsf@gnu.org> (raw)
In-Reply-To: <60971a50-14e2-1326-8fd1-8473ad536a60@ntcmks.ru> (vsannikov20@yandex.ru)

> From: В.Санников
>  <vsannikov20@yandex.ru>
> Date: Thu, 13 Feb 2020 16:43:00 +0300
> 
>      (color-values "white")
> 
> returns "(65535 65535 65535)" while
> 
>      (color-values "#ffffff")
> 
> returns "(65280 65280 65280)" which is very surprising, confused and
> inconsistent for me. Moreover, this leads to
> 
>      (color-name-to-rgb "white")
> 
> returns "(1.00390625 1.00390625 1.00390625)" which is looks wrong
> because color components must be in [0; 1]

This was changed for Emacs 27, which I think behaves as you want.
Please try the latest emacs-27 branch of the Emacs Git repository.





  reply	other threads:[~2020-02-13 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-13 13:43 bug#39590: 25.2; Inconsistent color-values return values В.Санников
2020-02-13 15:46 ` Eli Zaretskii [this message]
2020-02-26 12:53 ` Noam Postavsky

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

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

  git send-email \
    --in-reply-to=838sl6qylx.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=39590@debbugs.gnu.org \
    --cc=vsannikov20@yandex.ru \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.