unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: RE: list-colors-display: display all color names
Date: Wed, 5 Jan 2005 10:12:31 -0800	[thread overview]
Message-ID: <FDELKNEBLPKKDCEBEJCBKEONCKAA.drew.adams@oracle.com> (raw)
In-Reply-To: <874qhwzb8r.fsf@jurta.org>

    With #RRGGBB values printed in the *Colors* buffer it would be possible
    to find closer color names even without a function, simply with a regexp
    isearch like M-C-s #f.[fe].e.  It will not find the closest color name,
    but it is good enough to help to find all closer colors.

    Even better would be if the *Colors* buffer was sorted by RGB values.
    I don't suggest to do that by default, but different sorting order would
    be useful, e.g. by color name, by color intensity.  The latter is good
    for finding a darker or brighter color than a given color, but it is not
    so obvious since there are too many variants of projecting a color value
    from 3-D color space into a 1-D color list.  Perhaps the most useful is
    sorting by hue into a rainbow, and inside every hue sorting by
    value*saturation.

Great idea. There are usually so many colors in `list-colors-display' that
it is hard to find a "good" ordering - what is good for one user at one time
is different from what it is otherwise.

Being able to sort the colors in different ways would be a definite
improvement.
In terms of a default order, I do think that RGB order would be generally
more useful than color name. The current order is ad hoc, BTW - colors are
currently not sorted by name (the order is implementation-dependent, and is
essentially whatever `xw-defined-colors' returns, which is `w32-color-map'
or `x-colors').

    >>> gray         grey               bebebe
    >>> light gray   light grey, LightGray, LightGrey    d3d3d3
    >> First, if we do that, I'd suggest to use #BE12BE34BE56, i.e. prefix
    >> with # and use 4 digits per color.
    > I agree on the `#'.

    I omitted the `#' to save more space.  But OK, one character is not
    too much to remind the users about the proper format.

The # is important for 1) recognition of what this is about and 2)
copy+pasting to Lisp code or to commands that ask for a color.

  reply	other threads:[~2005-01-05 18:12 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-26 19:45 list-colors-display: display all color names Juri Linkov
2004-12-28  4:57 ` Richard Stallman
2005-01-04  9:07   ` Juri Linkov
2005-01-04 16:37     ` Drew Adams
2005-01-04 21:09     ` Eli Zaretskii
2005-01-04 21:57       ` Stefan Monnier
2005-01-05  5:38         ` Juri Linkov
2005-01-05 18:12           ` Drew Adams [this message]
2005-01-05 19:11           ` Eli Zaretskii
2005-01-05 19:21             ` Edward O'Connor
2005-01-06  4:35               ` Eli Zaretskii
2005-01-05  5:32       ` Juri Linkov
2005-01-05 18:12         ` Drew Adams
2005-01-05 19:13           ` Eli Zaretskii
2005-01-05 18:59         ` Eli Zaretskii
2005-01-05 19:46           ` Drew Adams
2005-01-06  4:50             ` Eli Zaretskii
2005-01-06  8:27           ` Juri Linkov
2005-01-06  9:05             ` Miles Bader
2005-01-06 10:44               ` Juri Linkov
2005-01-05 20:08       ` Richard Stallman
2005-01-05  3:30     ` Richard Stallman
2005-01-06  8:29       ` Juri Linkov
2004-12-29 14:46 ` Michael Mauger
2004-12-29 19:02   ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FDELKNEBLPKKDCEBEJCBKEONCKAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).