GNU bug report logs - #78504
31.0.50; tty-colors.el color-name-rgb-alist doesn't match rgb.txt

Previous Next

Package: emacs;

Reported by: ana_hallia <at> asmae.pink

Date: Tue, 20 May 2025 04:30:07 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: ana_hallia <at> asmae.pink
Cc: 78504 <at> debbugs.gnu.org
Subject: bug#78504: 31.0.50; tty-colors.el color-name-rgb-alist doesn't match rgb.txt
Date: Tue, 20 May 2025 15:12:59 +0300
> Date: Tue, 20 May 2025 01:00:30 +0000
> From: ana_hallia--- via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> While reading tty-colors.el with colorful-mode turned on, several colors were not being highlighted, I tried with rainbow-mode to see if it was an "issue" with colorful-mode but it gave me the same result.

Are you saying that the problems with colorful-mode are due to
differences in spelling of the color names in tty-colors.el?  If so,
please show the details.

> Comparing the list of tty-colors and of rbg.txt shows that the former
> lacks spaces / lacks capitalization.

This should not matter because we canonicalize the color names before
accessing the color-name-rgb-alist:

  (tty-color-canonicalize "Ghost White")
    => "ghostwhite"

> I ultimately do not think this is very important but in case this is due
> to recent changes in either rbg.txt or tty-colors, I am reporting it.

Thanks.  Unless you have a situation where this causes some problems,
this is not a bug.




This bug report was last modified 14 days ago.

Previous Next


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