From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#22343: 25.0.50; Incorrect rounding (?) when loading the Emacs.background attribute from Xresources Date: Mon, 11 Jan 2016 14:09:53 -0500 Message-ID: <5693FE01.5030106@live.com> References: <5692CAF6.20304@live.com> <837fjgkkr8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DGADvAGNKLF63MaVAReWhjb51Mi7CgK6U" X-Trace: ger.gmane.org 1452539485 5701 80.91.229.3 (11 Jan 2016 19:11:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2016 19:11:25 +0000 (UTC) Cc: 22343@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 11 20:11:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aIhrz-0000q8-BD for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jan 2016 20:11:11 +0100 Original-Received: from localhost ([::1]:56402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIhry-0007ws-FG for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jan 2016 14:11:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIhrt-0007wA-Kl for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 14:11:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIhrq-00070W-EY for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 14:11:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIhrq-00070O-B7 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 14:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aIhrq-0002ne-87 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2016 14:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 19:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22343-submit@debbugs.gnu.org id=B22343.145253940610677 (code B ref 22343); Mon, 11 Jan 2016 19:11:02 +0000 Original-Received: (at 22343) by debbugs.gnu.org; 11 Jan 2016 19:10:06 +0000 Original-Received: from localhost ([127.0.0.1]:46766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIhqw-0002m9-4q for submit@debbugs.gnu.org; Mon, 11 Jan 2016 14:10:06 -0500 Original-Received: from mout.kundenserver.de ([217.72.192.73]:56164) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIhqt-0002lZ-Jh for 22343@debbugs.gnu.org; Mon, 11 Jan 2016 14:10:04 -0500 Original-Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0MCZWc-1aQv3u2pYg-009RbK; Mon, 11 Jan 2016 20:09:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <837fjgkkr8.fsf@gnu.org> X-Provags-ID: V03:K0:G4qNo/FOcq9GxyTsvSEfwNdow7FJddEjZur0P/rvv+g2aEMhKF/ 8qffMZMqXKCsT/FVwFVRk1D9PO4vI9hotfd1xnYVfzKiu0JUtLX7Tmc2T4f4z2YdqqH8Aay K5/MCF0TiECn+uUzcfVOLSIlSpzt9X9VnNGzH9zZGAdTNv6bmS1urP2Z59mqhyoyC8Ob20U Sp01NbgOT+yR1MP93T/Rw== X-UI-Out-Filterresults: notjunk:1;V01:K0:FlHdB+Z2BVE=:rwCOkufFdM8LNq4INcF+VZ ubsFC5+g3CNVcCH1eE2Yt3IjL++gEg4czYI1vcDtQZ7A43TcJfG6cTrNWtPW1YFaMTRHgNbV+ IhrIXy7g/ICXeEMBtOfevfvXNch8vrPW+fEG058KnZSTdtBJiUasUXgze5o4g7Or7t5T96FrS GbjyIgtg64HAGiortaYT1s8HamqyRYI/HuP5Mh42bEbTy1YfWiMCFSPTgjuo68GHa5BwyUa1w XnNAEuRhluLwfi4I6/KoEC7/FN0YXNlz/ab0+9+tP+sQVkpmBWzIR1gGegx/Vd2rndPtFYDUn v6p+TYNIo51nr+NEdotjXjo2TkO8HB+BdD7urPwQo+7760w5RShBfsqxUPB1NIE5anhbYPj2u GWdb1ACQcGWkMod1/PfugQVmSI0ZpOu95n2IkB7d+o8Lojg0LAfTJkKqRqWCtjfpizH/tndZP 8ICEBdy2cQXTD2guQ6HzypR5BojnB/tXI4clyFtAbLEVPQjIfAclBZQZYYaGVAlUpgQ2Yt4lA M9gxLrTXXOXGra5O9X6HBrLGoi1xw/DmfNYwVnnPHGgHvNIGyJQeNOdoJOe/F3Rt49pY2V57f 4XthjRUCI6TeL+FAs2mtZL4z8x5vYLepu09WVi5vew6RqpZUc/HZ6sb8gFFxFnhw+XUZSVWRq 7K2Z0IY+A/Ve3vSzAA38soFCvUoOPdgOQ2xyQNQXlbIWI+WKiihjHdQBYM7SXpscZ4Co= 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111520 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --DGADvAGNKLF63MaVAReWhjb51Mi7CgK6U Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/11/2016 01:56 PM, Eli Zaretskii wrote: >> From: Cl=C3=A9ment Pit--Claudel >> Date: Sun, 10 Jan 2016 16:19:50 -0500 >> >> This is a cute bug. Run the following two commands (in bash): >> >> # Set Emacs.background in Xresources >> $ xrdb <(echo "Emacs.background: #2e3436") >> # Run Emacs with same background on default face >> $ emacs -q --eval "(set-face-attribute 'default nil :background \"#2e3= 436\")" >> >> On my machine, the two colors are not rendered the same. I've attached= a screenshot. What essentially happens is that anywhere where text is dr= awn the background is indeed #2e3436, but on the rest of the frame it's #= 2d3335. Amusingly, these two colors have distinct RGB and HSL values, but= their CMYK and HSB values are the same (or so says http://rgb.to/hex/2d3= 335 and http://rgb.to/hex/2e3436, at least). >> >> The reason I came across this is that I use Emacs' tango-dark theme, w= hich uses that background color. Since I didn't like Emacs popping up wit= h a white background and immediately switching, I set the same background= in my .Xresources. >> >> To observe the bug more clearly, just take a screenshot and open it in= your favourite image editor, then use the magic wand with a tolerance of= 0 (see other screenshot). Or use the color picker. >> >> What could cause this problem? A roundtripping issue with color conver= sions? >=20 > Could this be the distant-background feature at work? I don't know :) How can I check? I was not aware of the distant-backgroun= d feature; I'm only familiar with distant-foreground. Cl=C3=A9ment. --DGADvAGNKLF63MaVAReWhjb51Mi7CgK6U Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWk/4BAAoJEPqg+cTm90wj3HsP/Rse8VfgPscDcJe5dJikKyU2 ZvgQ8S//1D4v0fkbKmcRNR+8j1Y90zXZun8g8cp3pj3+1XUHCWDl2knpcDZZpv8E 1JpKz1F8JbKREn3LRJ+8aJ9srPqWac1tX3ijwwiaNAgs9C4vzuiZNj6DQEPOTSxA K5M5j5waUWZHEl0M0X+DjOblv6SXm7FRzFFKDkogdkoEuAFeMxWpz1VKEtptgTMm xz+DwwJUHqm2ZbsTpU1HfnrUbBaL2CBozJKvEsdbGRG+uuBbdqRSqQ0FHtAh10MU EERSks4gOK9uHaCofZUolRN5NTwv6BWKuPwvfRQetXMHxKuzwW0xf0XJ/GAW6J85 aNv6h1m2ZWdhXiVfzAmNydufL8+PIU+bhZ19WAzR6XxzRaocjO9ond35NbuRa2jo 6+Qgh7paQWEQxJtpdA58fgZZAWaQ+QIWFY1LgU9PJUvx9KeDlkdySMYgqWfO7tFA OA9hGwiWMi4vTdXsWR9s38bxslmxKsI2JGeF06lIVSHlsvQRR67wUunW2CfeyP0D ZTuNSyUihre3rWSKgF1rrmt0pNa1Zv7SvSKqrYs25CrfEm6yHOEFqvB9OFyDvSWb Vbx78bEgjdEA0LGEzDnpcxpDmreKikx7UVzO5fnn+YhFSLB6oHcqCO7wUBI8tBVv STEN5yEcF0eES6x/M72+ =FoHB -----END PGP SIGNATURE----- --DGADvAGNKLF63MaVAReWhjb51Mi7CgK6U--