From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Newsgroups: gmane.emacs.bugs Subject: bug#24273: 25.1.50; Unexpected return value from `color-name-to-rgb' Date: Sat, 20 Aug 2016 11:47:19 +0200 Message-ID: <87wpjbydp4.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1471686507 26146 195.159.176.226 (20 Aug 2016 09:48:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2016 09:48:27 +0000 (UTC) Cc: julien@danjou.info To: 24273@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 20 11:48:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bb2sz-0006Ib-VP for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2016 11:48:18 +0200 Original-Received: from localhost ([::1]:60437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb2sx-0005VU-1D for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2016 05:48:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb2sp-0005Su-1T for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 05:48:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bb2sk-0007pP-3C for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 05:48:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb2sk-0007pL-0U for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 05:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bb2sj-0005X3-SU for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 05:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Aug 2016 09:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24273 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147168645921232 (code B ref -1); Sat, 20 Aug 2016 09:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Aug 2016 09:47:39 +0000 Original-Received: from localhost ([127.0.0.1]:34716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bb2sN-0005WN-I6 for submit@debbugs.gnu.org; Sat, 20 Aug 2016 05:47:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bb2sL-0005WB-KT for submit@debbugs.gnu.org; Sat, 20 Aug 2016 05:47:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bb2sF-0007nL-CF for submit@debbugs.gnu.org; Sat, 20 Aug 2016 05:47:32 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb2sF-0007n9-8X for submit@debbugs.gnu.org; Sat, 20 Aug 2016 05:47:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb2sC-00059v-NU for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 05:47:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bb2s6-0007mC-Qy for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 05:47:27 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:33124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bb2s6-0007m8-IZ for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2016 05:47:22 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id b199so47873707lfe.0 for ; Sat, 20 Aug 2016 02:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cQzzldlBIC4AP8/AXipUY9QWsa7XcgmzuISfTObCyBw=; b=VE4GxzBkgbjf7WXFCe0c/KOZw4r8VgmQPF3SUPXhJEHLV9Q6etdD/Ip09QmsINYLsu GpaFOvbKvCOjDEMW0mRMLClsQ6wxVbQXYRJrki6+mnu8lUxlR95XBILpomev+ZKt0Cmm A2W7LKEJ4L+kXKbfgVJnRISYM8rpIrD1M7x2AUSj5izpvomZ+7uYSeeVFnGeozGgzSyW AdkRSVHFIT/dif2hy0SDIrAZqEhCjtsOxsruWmeaqPf92cs72U5MhRxQ426RDvOoCEMv 0483+F/GGq+smicuMqa/wb/jfT4Xoie1Nyu1+hzQPqTgjOYJpVFCm7o40J2ONOzb18PF Kujw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cQzzldlBIC4AP8/AXipUY9QWsa7XcgmzuISfTObCyBw=; b=BALqpkqDgExyTxg4ZjAp0RR8Ho0SPo7O03vEZaDvFD7ePQ2DfJw+l+3cX5OqUTYaEa t7h3I+QBt3qc7mVW4mTdOMZE79Z96+VqXkxWPKq52Vjy/d1N9QY5MPQxXqQ+OJEWs+RS RTPqj3yADOzOgxEaMpGq6FYujZsYeCJ8QHphKEBjEpwns8s6wrgLrciiAF2B6khK2poq ddCZeiBEognJZPTHboBBIuvffmUbnAgixne1muUkg7Q9+QkI+rz2SNac8UbVA3LAgBUI YZGAUl0l4C5Xj6HLEOy5Sv1N1ljLbb7gr5s+wHWl1Zs6WRlVCNoYFHt3ApBjXCv7rGFd +U+Q== X-Gm-Message-State: AEkoousbYSDf+D9YBbWNkp+HGY9e7oVNIF5wLSeg4W0uCjhUxbM+/Mo4oeLk/FZjSErgdg== X-Received: by 10.25.31.9 with SMTP id f9mr3204045lff.34.1471686441191; Sat, 20 Aug 2016 02:47:21 -0700 (PDT) Original-Received: from x240 (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id g3sm1879855lfe.14.2016.08.20.02.47.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 Aug 2016 02:47:20 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122414 Archived-At: The docstring for `color-name-to-rgb' states the following: "Normally the return value is a list of three floating-point numbers, (RED GREEN BLUE), each between 0.0 and 1.0 inclusive." When passing the hex value for white the return value is as expected: (color-name-to-rgb "#ffffff") =E2=87=92 (1.0 1.0 1.0) But when passing the name of the same color, the return value becomes different: (color-name-to-rgb "white") =E2=87=92 (1.00390625 1.00390625 1.00390625) In GNU Emacs 25.1.50.134 (x86_64-pc-linux-gnu, GTK+ Version 3.20.7) of 2016-08-20 built on x240 Repository revision: a4ba426d25bd6a5cbe11d81b82a789b8a2c948ed Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Debian GNU/Linux testing (stretch) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr ispell emacsbug message subr-x puny seq byte-opt gv bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 99389 6019) (symbols 48 20750 0) (miscs 40 46 109) (strings 32 18640 5788) (string-bytes 1 591726) (vectors 16 13763) (vector-slots 8 450400 3027) (floats 8 183 16) (intervals 56 195 0) (buffers 976 11) (heap 1024 35065 1072))