From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David J. Biesack" Newsgroups: gmane.emacs.bugs Subject: bug#8250: 23.3; set-backrgound-color sets incorrect color Date: Wed, 16 Mar 2011 10:15:55 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: dough.gmane.org 1300286244 18836 80.91.229.12 (16 Mar 2011 14:37:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2011 14:37:24 +0000 (UTC) Cc: 8250@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 15:37:19 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pzrqh-0007WK-3H for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 15:37:19 +0100 Original-Received: from localhost ([127.0.0.1]:33406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pzrqa-0004Xc-So for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 10:37:12 -0400 Original-Received: from [140.186.70.92] (port=58521 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzrqP-0004Nv-74 for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2011 10:37:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzrqN-0007Ez-VG for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2011 10:37:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzrqN-0007Et-PQ for bug-gnu-emacs@gnu.org; Wed, 16 Mar 2011 10:36:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PzrX4-0001FA-AL; Wed, 16 Mar 2011 10:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "David J. Biesack" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Mar 2011 14:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8250-submit@debbugs.gnu.org id=B8250.13002849704714 (code B ref 8250); Wed, 16 Mar 2011 14:17:02 +0000 Original-Received: (at 8250) by debbugs.gnu.org; 16 Mar 2011 14:16:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzrWD-0001Dz-4F for submit@debbugs.gnu.org; Wed, 16 Mar 2011 10:16:09 -0400 Original-Received: from ch1outboundpool.messaging.microsoft.com ([216.32.181.181] helo=CH1EHSOBE001.bigfish.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzrWA-0001DS-B3 for 8250@debbugs.gnu.org; Wed, 16 Mar 2011 10:16:07 -0400 Original-Received: from mail136-ch1-R.bigfish.com (216.32.181.172) by CH1EHSOBE001.bigfish.com (10.43.70.51) with Microsoft SMTP Server id 14.1.225.22; Wed, 16 Mar 2011 14:16:00 +0000 Original-Received: from mail136-ch1 (localhost.localdomain [127.0.0.1]) by mail136-ch1-R.bigfish.com (Postfix) with ESMTP id BBBD71A035F for <8250@debbugs.gnu.org>; Wed, 16 Mar 2011 14:16:00 +0000 (UTC) X-SpamScore: -6 X-BigFish: S-6(zz1432Nzz1202hzz8275bh8275dhz2fh2a8h668h61h) X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:mercav04d.na.sas.com; RD:mercav04d.na.sas.com; EFVD:NLI Original-Received: from mail136-ch1 (localhost.localdomain [127.0.0.1]) by mail136-ch1 (MessageSwitch) id 1300284960512068_16071; Wed, 16 Mar 2011 14:16:00 +0000 (UTC) Original-Received: from CH1EHSMHS024.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.253]) by mail136-ch1.bigfish.com (Postfix) with ESMTP id 71056157804C for <8250@debbugs.gnu.org>; Wed, 16 Mar 2011 14:16:00 +0000 (UTC) Original-Received: from mercav04d.na.sas.com (149.173.6.147) by CH1EHSMHS024.bigfish.com (10.43.70.24) with Microsoft SMTP Server (TLS) id 14.1.225.8; Wed, 16 Mar 2011 14:15:59 +0000 X-TM-IMSS-Message-ID: <296d94520004bd23@mercav04d.na.sas.com> Original-Received: from D72933.us.sas.com ([10.40.16.229]) by mercav04d.na.sas.com ([10.36.10.9]) with ESMTP (TREND IMSS SMTP Service 7.1) id 296d94520004bd23 ; Wed, 16 Mar 2011 10:15:56 -0400 In-Reply-To: <834o73r9j6.fsf@gnu.org> (message from Eli Zaretskii on Wed, 16 Mar 2011 06:09:33 +0200) X-OriginatorOrg: sas.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 16 Mar 2011 10:17:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45069 Archived-At: Eli Zaretskii writes: >> From: "David J. Biesack" >> 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