* bug#8250: 23.3; set-backrgound-color sets incorrect color @ 2011-03-14 15:52 David J. Biesack 2011-03-14 21:31 ` Eli Zaretskii 0 siblings, 1 reply; 16+ messages in thread From: David J. Biesack @ 2011-03-14 15:52 UTC (permalink / raw) To: 8250 start runemacs -q In the *scratch* buffer, evaluate any of the following: (set-background-color "gray10") (set-background-color "gray20") (set-background-color "gray30") this should set the background to a dark gray color. Instead, all three forms set the background color to a light grey (using an external color picker shows it to be #BEBEBE). Even (set-background-color "gray90") sets it to BEBEBE. Other colors work better (set-background-color "black") (set-background-color "white") (set-background-color "blue") all work. But the failure to honor gray30 or anything close to it seriously breaks (color-theme-gray30) or similar packages. In GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600) of 2011-03-10 on 3249CTO Windowing system distributor `Microsoft Corp.', version 6.1.7600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/imagesupport/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t shell-dirtrack-mode: t delete-selection-mode: t pc-selection-mode: t show-paren-mode: t iswitchb-mode: t nxhtml-menu-mode: t nxhtml-tag-do-also: t popcmp-group-alternatives: t popcmp-short-help-beside-alts: t mlinks-active-links: t rngalt-minimal-validation-header: t rngalt-display-validation-header: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t hs-minor-mode: t Recent input: n C-x <escape> <escape> C-y <return> M-x r e p o r t - e m SPC <return> Recent messages: No optional library nil [2 times] Loading sdsenv...done SDSLOOK=dev/vert-v920m3:dev/vert-d2ft92m301; SDSBOX=devd; SDSTLS=/sasgen/dev/tls-v920m:/sasgen/dev/tls; SDSTLSPC=/sasgen/dev/htls:/sasgen/dev/tls; SDSVER=none; SDSLANG=en; Loading transient (compiled; note, source file is newer)...done Loading c:/djb/emacs/emacs.elc...done Warning: desktop file appears to be in use by PID 3708. Using it may cause conflicts. Use it anyway? (y or n) Desktop file in use; not loaded. For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Load-path shadows: c:/djb/emacs/nxhtml/related/wikipedia-mode hides c:/djb/emacs/wikipedia-mode c:/djb/emacs/nxhtml/web-vcs hides c:/djb/emacs/web-vcs c:/djb/emacs/nxhtml/nxhtml-web-vcs hides c:/djb/emacs/nxhtml-web-vcs c:/djb/emacs/xml hides c:/gnu/emacs/lisp/xml c:/djb/emacs/whitespace hides c:/gnu/emacs/lisp/whitespace c:/djb/emacs/wdired hides c:/gnu/emacs/lisp/wdired c:/djb/emacs/v20/sort hides c:/gnu/emacs/lisp/sort c:/djb/emacs/ls-lisp hides c:/gnu/emacs/lisp/ls-lisp c:/djb/emacs/indent hides c:/gnu/emacs/lisp/indent c:/djb/emacs/ibuffer hides c:/gnu/emacs/lisp/ibuffer c:/djb/emacs/autoinsert hides c:/gnu/emacs/lisp/autoinsert c:/djb/emacs/align hides c:/gnu/emacs/lisp/align c:/djb/emacs/table hides c:/gnu/emacs/lisp/textmodes/table c:/djb/emacs/xscheme hides c:/gnu/emacs/lisp/progmodes/xscheme c:/djb/emacs/sh-script hides c:/gnu/emacs/lisp/progmodes/sh-script c:/djb/emacs/icon hides c:/gnu/emacs/lisp/progmodes/icon c:/djb/emacs/hideshow hides c:/gnu/emacs/lisp/progmodes/hideshow c:/djb/emacs/glasses hides c:/gnu/emacs/lisp/progmodes/glasses c:/djb/emacs/cpp hides c:/gnu/emacs/lisp/progmodes/cpp c:/djb/emacs/zone hides c:/gnu/emacs/lisp/play/zone c:/djb/emacs/solitaire hides c:/gnu/emacs/lisp/play/solitaire c:/djb/emacs/metamail hides c:/gnu/emacs/lisp/mail/metamail c:/djb/emacs/trace hides c:/gnu/emacs/lisp/emacs-lisp/trace c:/djb/emacs/re-builder hides c:/gnu/emacs/lisp/emacs-lisp/re-builder c:/djb/emacs/elp hides c:/gnu/emacs/lisp/emacs-lisp/elp c:/djb/emacs/eldoc hides c:/gnu/emacs/lisp/emacs-lisp/eldoc Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mailabbrev nnheader gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug sdsenv time color-themes color-theme edmacro kmacro sendmail reporter color-theme-autoloads cygwin32-mount resizing browse-region-as-html bg shell thing mosaic-client edit-server server jka-compr-ccrypt jka-compr andersl-java-font-lock delsel pc-select complete paren iswitchb msb ascii-conversion javadecomp autobrowse last-mod quickurl browse-url thingatpt midnight cygwin-mount ange-ftp nxhtml-autostart nxhtml-autoload moz cc-cmds majmodpri nxhtml-menu udev-rinari udev-ecb udev flymake-js flymake css-color nxhtml-mode html-quote tidy-xhtml ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff html-imenu imenu loadhist popcmp xhtml-help mlinks html-toc xml fupd html-pagetoc foldit appmenu-fold appmenu mumamo sgml-mode rngalt rng-nxml nxml-mode nxml-outln nxml-rap nxml-glyph rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-util nxml-enc xmltok desktop cc-engine cc-vars cc-defs help-mode view flyspell ispell fold-dwim hideshow html-upl html-site derived ourcomments-util uniquify recentf tree-widget org byte-opt warnings org-footnote org-src org-list org-faces org-compat org-macs noutline outline ido bookmark pp apropos grep ffip compile comint ring gimpedit dired regexp-opt web-vcs bytecomp byte-compile rx url-http tls url url-proxy url-privacy url-expand url-methods url-history url-auth url-cookie url-util url-parse url-gw url-vars mm-decode gnus-util netrc mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mm-util time-date mail-prsvr cus-edit easymenu cus-start cus-load wid-edit cl cl-19 web-autoload nxhtml-base easy-mmode advice help-fns advice-preload tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) -- David J. Biesack, SAS SAS Campus Dr. Cary, NC 27513 www.sas.com (919) 531-7771 ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 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 ` (2 more replies) 0 siblings, 3 replies; 16+ messages in thread From: Eli Zaretskii @ 2011-03-14 21:31 UTC (permalink / raw) To: David J. Biesack; +Cc: 8250 > From: "David J. Biesack" <David.Biesack@sas.com> > Date: Mon, 14 Mar 2011 11:52:14 -0400 > Cc: > > start > > runemacs -q > > In the *scratch* buffer, evaluate any of the following: > (set-background-color "gray10") > (set-background-color "gray20") > (set-background-color "gray30") > > this should set the background to a dark gray color. Instead, all > three forms set the background color to a light grey (using an external > color picker shows it to be #BEBEBE). Even (set-background-color "gray90") > sets it to BEBEBE. I cannot reproduce it. I see distinctly different colors for each one of gray10, gray20, gray30, and they all are indeed dark gray, as I'd expect. But I'm on XP SP2, whereas you seem to be on WIndows 7, is that right? Maybe it's something specific to Windows 7? ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-14 21:31 ` Eli Zaretskii @ 2011-03-14 21:46 ` David J. Biesack 2011-03-14 22:19 ` Eli Zaretskii 2011-03-14 23:38 ` David Biesack 2011-03-14 23:12 ` Juanma Barranquero 2011-03-17 13:46 ` David J. Biesack 2 siblings, 2 replies; 16+ messages in thread From: David J. Biesack @ 2011-03-14 21:46 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 8250 Yes, I think it may be Windows 7 specific. It occurs on two separate Windows 7 PC that I have access to. I'll try on a Vista system and report back thanks -- David J. Biesack, SAS SAS Campus Dr. Cary, NC 27513 www.sas.com (919) 531-7771 ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 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-14 23:38 ` David Biesack 1 sibling, 1 reply; 16+ messages in thread From: Eli Zaretskii @ 2011-03-14 22:19 UTC (permalink / raw) To: David J. Biesack; +Cc: 8250 > From: "David J. Biesack" <David.Biesack@sas.com> > CC: <8250@debbugs.gnu.org> > Date: Mon, 14 Mar 2011 17:46:02 -0400 > > > Yes, I think it may be Windows 7 specific. It occurs on two separate > Windows 7 PC that I have access to. > > I'll try on a Vista system and report back Please also tell what you see in the "grayNN" area in the buffer displayed by "M-x list-colors-display". How many distinct gray colors do you see there? ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-14 22:19 ` Eli Zaretskii @ 2011-03-15 12:43 ` David J. Biesack 2011-03-16 4:09 ` Eli Zaretskii 0 siblings, 1 reply; 16+ messages in thread From: David J. Biesack @ 2011-03-15 12:43 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 8250 There are 167 colors listed, only 9 "gray" colors: 28:dark slate gray dark slate grey, DarkSlateGray, DarkSlateGrey #2f4f4f 29:dim gray dim grey, DimGray, DimGrey #696969 30:slate gray slate grey, SlateGray, SlateGrey #708090 31:light slate gray light slate grey, LightSlateGray, LightSlateGrey #778899 32:gray grey #bebebe 33:light gray light grey, LightGray, LightGrey #d3d3d3 130:gray0 grey0 #000000 131:dark gray dark grey, DarkGray, DarkGrey #a9a9a9 154:SystemGrayText SystemGrayText #c0c0c0 and 8 "grey" 8 matches for "grey" in buffer: *Colors* 28:dark slate gray dark slate grey, DarkSlateGray, DarkSlateGrey #2f4f4f 29:dim gray dim grey, DimGray, DimGrey #696969 30:slate gray slate grey, SlateGray, SlateGrey #708090 31:light slate gray light slate grey, LightSlateGray, LightSlateGrey #778899 32:gray grey #bebebe 33:light gray light grey, LightGray, LightGrey #d3d3d3 130:gray0 grey0 #000000 131:dark gray dark grey, DarkGray, DarkGrey #a9a9a9 When I try to set (set-background-color "DarkGray") or (set-background-color "SystemGrayText") I end up with the lighter bebebe grey instead. Note that I have also turned off Windows 7 Aero color themes on my desktop because it is impossible to configure windows colors with a dark grey window background and white text unless you disable Aero themes and then start from the High Contrast #1 theme to set Windows system colors. -- David J. Biesack, SAS SAS Campus Dr. Cary, NC 27513 www.sas.com (919) 531-7771 ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-15 12:43 ` David J. Biesack @ 2011-03-16 4:09 ` Eli Zaretskii 2011-03-16 14:15 ` David J. Biesack 0 siblings, 1 reply; 16+ messages in thread From: Eli Zaretskii @ 2011-03-16 4:09 UTC (permalink / raw) To: David J. Biesack; +Cc: 8250 > 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? ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-16 4:09 ` Eli Zaretskii @ 2011-03-16 14:15 ` David J. Biesack 2011-03-16 14:54 ` Juanma Barranquero 0 siblings, 1 reply; 16+ messages in thread From: David J. Biesack @ 2011-03-16 14:15 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 8250 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 ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-16 14:15 ` David J. Biesack @ 2011-03-16 14:54 ` Juanma Barranquero 2011-03-16 14:56 ` Juanma Barranquero 0 siblings, 1 reply; 16+ messages in thread From: Juanma Barranquero @ 2011-03-16 14:54 UTC (permalink / raw) To: David J. Biesack; +Cc: 8250 On Wed, Mar 16, 2011 at 15:15, David J. Biesack <David.Biesack@sas.com> wrote: > (length w32-color-map) > 271 > I don't know why w32-color-map (w32fns.c) is so short on my system. > (I've have rebooted - no change.) In x-open-connection, w32-color-map is set from the etc/rgb.txt file (the trunk version of it has 788 entries). If that fails, w32-color-map is set from the w32_color_map variable in w32fns.c, which has 241. Add to that a few system colors that are added afterwards, and 271 seems about right. So please check that your etc/ directory has an rgb.txt file and that it is OK. Juanma ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 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 0 siblings, 2 replies; 16+ messages in thread From: Juanma Barranquero @ 2011-03-16 14:56 UTC (permalink / raw) To: David J. Biesack; +Cc: 8250 On Wed, Mar 16, 2011 at 15:54, Juanma Barranquero <lekktu@gmail.com> wrote: > In x-open-connection, w32-color-map is set from the etc/rgb.txt file To be precise, it is loaded from the rgb.txt file in the `data-directory' dir, so check also `data-directory' to see where does it point to. Juanma ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-16 14:56 ` Juanma Barranquero @ 2011-03-16 16:07 ` David J. Biesack 2011-03-16 19:04 ` Eli Zaretskii 1 sibling, 0 replies; 16+ messages in thread From: David J. Biesack @ 2011-03-16 16:07 UTC (permalink / raw) To: Juanma Barranquero; +Cc: 8250 Juanma Barranquero <lekktu@gmail.com> writes: > On Wed, Mar 16, 2011 at 15:54, Juanma Barranquero <lekktu@gmail.com> wrote: > >> In x-open-connection, w32-color-map is set from the etc/rgb.txt file > > To be precise, it is loaded from the rgb.txt file in the > `data-directory' dir, so check also `data-directory' to see where does > it point to. data-directory "c:/gnu/emacs/etc/" (emacs 23.3.1 is installed in c:/gnu/emacs) % wc -l c:/gnu/emacs/etc/rgb.txt 788 c:/gnu/emacs/etc/rgb.txt Note: On my Windows 7, c:/gnu/emacs is a Windows 7 link to c:/gnu/emacs-23.3 (so that I can easily install new versions of Emacs without editing my shortcuts, environment, etc. - just switch the link.) I don't think this affects anything because if I run c:\gnu\emacs-23.3\bin\runemacs.exe -q M-x list-colors-display is still only 167 colors when data-directory is "c:/gnu/emacs-23.3/etc/" fyi, I installed from http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/emacs/windows/emacs-23.3-bin-i386.zip -- David J. Biesack, SAS SAS Campus Dr. Cary, NC 27513 www.sas.com (919) 531-7771 ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-16 14:56 ` Juanma Barranquero 2011-03-16 16:07 ` David J. Biesack @ 2011-03-16 19:04 ` Eli Zaretskii 1 sibling, 0 replies; 16+ messages in thread From: Eli Zaretskii @ 2011-03-16 19:04 UTC (permalink / raw) To: Juanma Barranquero; +Cc: David.Biesack, 8250 > From: Juanma Barranquero <lekktu@gmail.com> > Date: Wed, 16 Mar 2011 15:56:15 +0100 > Cc: Eli Zaretskii <eliz@gnu.org>, 8250@debbugs.gnu.org > > On Wed, Mar 16, 2011 at 15:54, Juanma Barranquero <lekktu@gmail.com> wrote: > > > In x-open-connection, w32-color-map is set from the etc/rgb.txt file > > To be precise, it is loaded from the rgb.txt file in the > `data-directory' dir, so check also `data-directory' to see where does > it point to. Actually, it first looks in the home directory, and only then in data-directory. David, do you happen to have an rgb.txt in your home directory? (Try "C-x C-f ~/rgb.txt RET".) If you do, could it be the culprit? Also, can you try, in "emacs -Q", to type this: M-: (length (x-load-color-file "c:/gnu/emacs/etc/rgb.txt")) RET and tell the result? ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-14 21:46 ` David J. Biesack 2011-03-14 22:19 ` Eli Zaretskii @ 2011-03-14 23:38 ` David Biesack 1 sibling, 0 replies; 16+ messages in thread From: David Biesack @ 2011-03-14 23:38 UTC (permalink / raw) To: David J. Biesack, eliz, 8250 On 3/14/2011 5:46 PM, David J. Biesack wrote: > Yes, I think it may be Windows 7 specific. It occurs on two separate > Windows 7 PC that I have access to. > > I'll try on a Vista system and report back > > thanks (set-background-color) works as expected with emacs 23.1 and 23.3 on Vista 64, so perhaps it is a Windows 7 specific problem. Let me know if there is something I can do to help diagnose/fix the problem. ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-14 21:31 ` Eli Zaretskii 2011-03-14 21:46 ` David J. Biesack @ 2011-03-14 23:12 ` Juanma Barranquero 2011-03-17 13:46 ` David J. Biesack 2 siblings, 0 replies; 16+ messages in thread From: Juanma Barranquero @ 2011-03-14 23:12 UTC (permalink / raw) To: Eli Zaretskii; +Cc: David J. Biesack, 8250 On Mon, Mar 14, 2011 at 22:31, Eli Zaretskii <eliz@gnu.org> wrote: > I cannot reproduce it. I see distinctly different colors for each one > of gray10, gray20, gray30, and they all are indeed dark gray, as I'd > expect. > > But I'm on XP SP2, whereas you seem to be on WIndows 7, is that right? > Maybe it's something specific to Windows 7? If so, it's not universal, because I'm on Windows 7 and I also see three different, dark gray colors. Juanma ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-14 21:31 ` Eli Zaretskii 2011-03-14 21:46 ` David J. Biesack 2011-03-14 23:12 ` Juanma Barranquero @ 2011-03-17 13:46 ` David J. Biesack 2011-03-17 17:55 ` Juanma Barranquero 2 siblings, 1 reply; 16+ messages in thread From: David J. Biesack @ 2011-03-17 13:46 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 8250 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 ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-17 13:46 ` David J. Biesack @ 2011-03-17 17:55 ` Juanma Barranquero 2011-03-17 20:10 ` Juanma Barranquero 0 siblings, 1 reply; 16+ messages in thread From: Juanma Barranquero @ 2011-03-17 17:55 UTC (permalink / raw) To: David J. Biesack; +Cc: 8250 On Thu, Mar 17, 2011 at 14:46, David J. Biesack <David.Biesack@sas.com> wrote: > 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. [...] > 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 It is unrelated to Windows 7, but it is indeed a bug. x-load-color-file was converting its argument to an absolute pathname, and then forgetting to use it, so it was unable to find "~/rgb.txt" and defaulted to a built-in table of colors. Should be fixed now on emacs-23 and will be merged into the trunk soon, I suppose. Juanma ^ permalink raw reply [flat|nested] 16+ messages in thread
* bug#8250: 23.3; set-backrgound-color sets incorrect color 2011-03-17 17:55 ` Juanma Barranquero @ 2011-03-17 20:10 ` Juanma Barranquero 0 siblings, 0 replies; 16+ messages in thread From: Juanma Barranquero @ 2011-03-17 20:10 UTC (permalink / raw) To: David J. Biesack; +Cc: 8250-done > Should be fixed now on emacs-23 and will be merged into the trunk > soon, I suppose. I'm closing this bug. Please re-open if the fix does not work for you. Juanma ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2011-03-17 20:10 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
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.