unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
Cc: 22343@debbugs.gnu.org
Subject: bug#22343: 25.0.50; Incorrect rounding (?) when loading the Emacs.background attribute from Xresources
Date: Mon, 11 Jan 2016 20:56:43 +0200	[thread overview]
Message-ID: <837fjgkkr8.fsf@gnu.org> (raw)
In-Reply-To: <5692CAF6.20304@live.com> (message from Clément Pit--Claudel on Sun, 10 Jan 2016 16:19:50 -0500)

> From: Clément Pit--Claudel <clement.pitclaudel@live.com>
> 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 \"#2e3436\")"
> 
> 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 drawn 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/2d3335 and http://rgb.to/hex/2e3436, at least).
> 
> The reason I came across this is that I use Emacs' tango-dark theme, which uses that background color. Since I didn't like Emacs popping up with 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 conversions?

Could this be the distant-background feature at work?





  reply	other threads:[~2016-01-11 18:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-10 21:19 bug#22343: 25.0.50; Incorrect rounding (?) when loading the Emacs.background attribute from Xresources Clément Pit--Claudel
2016-01-11 18:56 ` Eli Zaretskii [this message]
2016-01-11 19:09   ` Clément Pit--Claudel
2016-01-11 19:14     ` Eli Zaretskii
2016-01-12  2:20       ` Clément Pit--Claudel
2016-01-12 16:46         ` Eli Zaretskii
2021-12-02  9:03 ` Lars Ingebrigtsen
2021-12-03  4:29   ` Clément Pit-Claudel
2021-12-03 16:27     ` Lars Ingebrigtsen

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=837fjgkkr8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22343@debbugs.gnu.org \
    --cc=clement.pitclaudel@live.com \
    /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).