You are not logged in.

#1 2010-12-16 16:27:27

enn
Member
Registered: 2010-10-29
Posts: 10

Traditional X11 color names no longer work in emacs

Hello,

After pacman -Syu a few days ago, my emacs color theme (using emacs in a terminal) started displaying very different colors than intended. I've poked around a bit and it seems like this is due to the X11 colors no longer being defined from within emacs, e.g., this is what M-x list-colors-display now shows:

black                  black                                                                              #000000
red                    red                                                                                #cd0000
green                  green                                                                              #00cd00
yellow                 yellow                                                                             #cdcd00
blue                   blue                                                                               #0000cd
magenta                magenta                                                                            #cd00cd
cyan                   cyan                                                                               #00cdcd
white                  white                                                                              #e5e5e5
brightblack            brightblack                                                                        #4d4d4d
brightred              brightred                                                                          #ff0000
brightgreen            brightgreen                                                                        #00ff00
brightyellow           brightyellow                                                                       #ffff00
brightblue             brightblue                                                                         #0000ff
brightmagenta          brightmagenta                                                                      #ff00ff
brightcyan             brightcyan                                                                         #00ffff
brightwhite            brightwhite                                                                        #ffffff
color-16               color-16                                                                           #000000
color-17               color-17                                                                           #00008b
color-18               color-18                                                                           #0000cd

...up through color-87.

My color themes are all defined using the X11 color names listed at http://raebear.net/comp/emacscolors.html, which don't appear in the list of emacs colors anymore. I notice that /usr/lib/X11/rgb.txt is no longer present on my system -- Googling seems to indicate that Xorg no longer uses it, but I did track down a copy and try manually replacing it, to no effect.

What can I do to get the use of X11 color names back?

Last edited by enn (2010-12-16 16:33:08)

Offline

#2 2010-12-17 20:17:54

enn
Member
Registered: 2010-10-29
Posts: 10

Re: Traditional X11 color names no longer work in emacs

I can't be the only person having this problem. Does no one else run emacs -nw?

Offline

#3 2010-12-17 21:31:15

RevAaron
Member
Registered: 2009-11-24
Posts: 10

Re: Traditional X11 color names no longer work in emacs

I've never tried running list-colors-display in emacs -nw until today... But I only get black, red, green, yellow, blue, magenta, cyan, and white. This is in xterm, which supports 256 colors IIRC, verified this by checking the result of strings on the xterm binary.

However... I do get the complete list by running list-colors-display in emacs on X11.

I don't have  /usr/lib/X11/rgb but I do have /usr/share/emacs/23.2/etc/rgb.txt . I'd suggest you see if that's till there, but I doubt it'd make any difference as I only have a few colors listed when I'm in emacs -nw ...

Offline

#4 2010-12-17 21:55:55

enn
Member
Registered: 2010-10-29
Posts: 10

Re: Traditional X11 color names no longer work in emacs

Thanks -- I do have that file. The comments imply that it is meant to be used on Windows systems; I did try symlinking it to /usr/lib/X11 and a couple other places, but it didn't seem to do anything.

Offline

Board footer

Powered by FluxBB