From: Bill Wohler <wohler@newt.com>
Cc: mh-e-devel@lists.sourceforge.net, emacs-devel@gnu.org
Subject: Re: Why min-colors 88?
Date: Sun, 05 Feb 2006 14:31:07 -0800 [thread overview]
Message-ID: <20843.1139178667@olgas.newt.com> (raw)
In-Reply-To: Dan Nicolaescu's message of Sun, 05 Feb 2006 10:49:10 PST. <200602051849.k15InA6t013797@scanner2.ics.uci.edu>
Dan Nicolaescu <dann@ics.uci.edu> wrote:
> Bill Wohler <wohler@newt.com> writes:
>
> > Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> >
> > > >>> Can anyone explain the magic number 88 to me? Why is this used
> > > >>> throughout Emacs? Why is this the default generated when
> > > >>> customizing a face (on devices with lots of colors)?
> > > >>
> > > >> Because there's an 88-color xterm whose color set is rich enough to
> > > >> support all the colors we use in Emacs' faces.
> > >
> > > > Or in other words, Emacs' has 88 faces?
> > >
> > > Well, 88 foreground * 88 background * 2 slants * 2 darknesses * a bunch of
> > > sizes * a handful of fonts (* 89 colors of underlining * ...) is slightly
> > > more than 88.
> > > Then add to it the fact that many faces are identical.
> >
> > Whoops, I meant to say 88 different colors in all of its faces.
>
> No, (min-colors 88) means that the device that emacs uses for display
> guarantees that it can display at least 88 distinct colors.
Hi Dan, we weren't talking about the definition of min-color, but rather
the rationale between how 88 was chosen.
If Emacs uses less than 64 colors, and it looks good on Eric's device
where display-color-cells returns 64, and if Eric ensures that none of
the colors maps to the same device color*, then it's possible we might
consider lowering that number, eh? On the other hand, I think Eli was
implying that there was room for growth.
* I'm sure someone's written code to do perform this verification. Could
someone save me a few minutes by posting it or a pointer to it?
--
Bill Wohler <wohler@newt.com> http://www.newt.com/wohler/ GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.
next prev parent reply other threads:[~2006-02-05 22:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-03 19:50 Why min-colors 88? Bill Wohler
2006-02-04 11:11 ` Eli Zaretskii
2006-02-05 6:18 ` Bill Wohler
2006-02-05 13:42 ` Stefan Monnier
2006-02-05 17:05 ` Bill Wohler
2006-02-05 18:49 ` Dan Nicolaescu
2006-02-05 22:31 ` Bill Wohler [this message]
2006-02-06 1:41 ` Miles Bader
2006-02-06 2:32 ` Stefan Monnier
2006-02-05 19:55 ` Eli Zaretskii
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=20843.1139178667@olgas.newt.com \
--to=wohler@newt.com \
--cc=emacs-devel@gnu.org \
--cc=mh-e-devel@lists.sourceforge.net \
/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).