GNU bug report logs - #8250
23.3; set-backrgound-color sets incorrect color

Previous Next

Package: emacs;

Reported by: "David J. Biesack" <David.Biesack <at> sas.com>

Date: Mon, 14 Mar 2011 16:43:02 UTC

Severity: normal

Found in version 23.3

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #44 received at 8250 <at> debbugs.gnu.org (full text, mbox):

From: "David J. Biesack" <David.Biesack <at> sas.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 8250 <at> debbugs.gnu.org
Subject: Re: bug#8250: 23.3; set-backrgound-color sets incorrect color
Date: Thu, 17 Mar 2011 09:46:57 -0400
yes, I did have a $HOME/rbg.txt 
My HOME is C:/djb so the file is c:/djb/rgb.txt

(length (x-load-color-file "c:/gnu/emacs/etc/rgb.txt")) 
752
(length (x-load-color-file "c:/djb/rgb.txt")) 
752

My HOME is not my Windows $USERPROFILE directory, c:/users/... )
However, even if $HOME/rbg.txt is the same as my emacs/etc/rbg.txt file:

$ cp c:/gnu/emacs/etc/rgb.txt ~/rgb.txt 

I still get the same abbreviated color list !

If I remove $HOME/rgb.txt and restart emacs, then M-x list-colors-display 
lists all the expected colors. I'm not sure why it fails with that file there,
since it is the same as the Emacs version; it is readable, etc.

I also tried with HOME pointing to me Windows USERPROFILE :

# export HOME=c:/users/sasdjb
$ cp c:/gnu/emacs/etc/rgb.txt $HOME
$ c:/gnu/emacs/bin/runemacs -q 

and Emacs still does not read the full color list.

**************************

Thanks for your assistance. I consider this issue resolved,
but you may want to pursue why it would fail to properly
load from ~/rgb.txt under Windows 7, and perhaps add documentation on how the 
color list is populated:

w32-default-color-map:
Return the default color map.

list-colors-display:
Display names of defined colors, and show what they look like.
If the optional argument LIST is non-nil, it should be a list of
colors to display.  Otherwise, this command computes a list of
colors that the current display can handle.  If the optional
argument BUFFER-NAME is nil, it defaults to *Colors*.

I can contiue to try things on my end if you need additional
diagnosis (i.e. if there are other environmental factors
that you cannot reproduce).

-- 
David J. Biesack, SAS
SAS Campus Dr. Cary, NC 27513
www.sas.com    (919) 531-7771





This bug report was last modified 14 years and 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.