From: "David J. Biesack" <David.Biesack@sas.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 8250@debbugs.gnu.org
Subject: bug#8250: 23.3; set-backrgound-color sets incorrect color
Date: Wed, 16 Mar 2011 10:15:55 -0400 [thread overview]
Message-ID: <ytbsjun6tic.fsf@sas.com> (raw)
In-Reply-To: <834o73r9j6.fsf@gnu.org> (message from Eli Zaretskii on Wed, 16 Mar 2011 06:09:33 +0200)
Eli Zaretskii <eliz@gnu.org> writes:
>> From: "David J. Biesack" <David.Biesack@sas.com>
>> CC: <8250@debbugs.gnu.org>
>> Date: Tue, 15 Mar 2011 08:43:08 -0400
>>
>>
>> There are 167 colors listed, only 9 "gray" colors:
>
> ??? I have no less than 680 colors listed, including 101 gray colors
> named gray0 to gray100, and several others like those you mention.
>
> What's going on that system from the color point of view? How many
> colors do you have in your settings?
>
> Can you step through list-colors-display with Edebug, and see why you
> get so few colors listed?
My system is running dual monitors at 1600x1200x32bit
primary display is a VGA connection; second is DVI-D
After starting
runemace -q
then stepping into list-colors-display and defined-colors in faces.el
abd xw-defined-colors in term/w3-win.el I've isolated the problem
to w32-color-map
(display-visual-class)
true-color
(length w32-color-map)
271
w32-color-map
(("SystemMenuBar" . 11055248) ("SystemMenuHilight" . 0) ("SystemGradientInactiveTitle" . 10789024) ("SystemGradientActiveTitle" . 6831878) ("SystemHotTrackingColor" . 14399637) ("SystemButtonAlternateFace" . 12632256) ("SystemInfoWindow" . 12632256) ("SystemInfoText" . 6831878) ("SystemButtonLight" . 3947580) ("SystemButtonDkShadow" . 0) ("SystemButtonHilight" . 10329501) ("SystemInactiveTitleText" . 15066597) ...)
(assoc "grey30" w32-color-map)
nil
(assoc "black" w32-color-map)
("black" . 33554432)
However:
(color-supported-p "grey30" (selected-frame) t)
t
(defvar w32-color-map) is defined in w32fns.c
so I can't step into that to find out where the colors are coming from.
I did find another Windows 7 system where the gray colors *are* working
and w32-color-map has 783 elements:
(assoc "grey30" w32-color-map)
("grey30" . 5066061)
That is a laptop with 32 bit color 1440x900 (single monitor)
running Windows 7 x64
As a workaround, I can copy the full 32-color-map from the
other system and eval it on this system, then
(set-background-color "grey10")
(set-background-color "grey20")
(set-background-color "grey30")
all work as expected (I use the same Windows color theme
on both, so the System* colors in w32-color-map are OK for me)
I don't know why w32-color-map (w32fns.c) is so short on my system.
(I've have rebooted - no change.)
--
David J. Biesack, SAS
SAS Campus Dr. Cary, NC 27513
www.sas.com (919) 531-7771
next prev parent reply other threads:[~2011-03-16 14:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 15:52 bug#8250: 23.3; set-backrgound-color sets incorrect color David J. Biesack
2011-03-14 21:31 ` Eli Zaretskii
2011-03-14 21:46 ` David J. Biesack
2011-03-14 22:19 ` Eli Zaretskii
2011-03-15 12:43 ` David J. Biesack
2011-03-16 4:09 ` Eli Zaretskii
2011-03-16 14:15 ` David J. Biesack [this message]
2011-03-16 14:54 ` Juanma Barranquero
2011-03-16 14:56 ` Juanma Barranquero
2011-03-16 16:07 ` David J. Biesack
2011-03-16 19:04 ` Eli Zaretskii
2011-03-14 23:38 ` David Biesack
2011-03-14 23:12 ` Juanma Barranquero
2011-03-17 13:46 ` David J. Biesack
2011-03-17 17:55 ` Juanma Barranquero
2011-03-17 20:10 ` Juanma Barranquero
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=ytbsjun6tic.fsf@sas.com \
--to=david.biesack@sas.com \
--cc=8250@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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.