From: Bill Wohler <wohler@newt.com>
Subject: Why min-colors 88?
Date: Fri, 03 Feb 2006 11:50:46 -0800 [thread overview]
Message-ID: <851.1138996246@olgas.newt.com> (raw)
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)?
I'd understand 16 (larger than the number of colors in the console and
the number of names defined by W3C HTML 4.0), 216 ("web-safe" or 256-40
colors reserved by the OS), and 256.
An MH-E developer has a device where (device-color-cells) returns 64.
What harm could there be in changing our specifications to use 64
instead of 88?
Finally, why are there a lot of faces with seemingly redundant
specifications such as this?
(defface highlight
'((((class color) (min-colors 88) (background light))
:background "darkseagreen2")
(((class color) (min-colors 88) (background dark))
:background "darkolivegreen")
(((class color) (min-colors 16) (background light))
:background "darkseagreen2")
(((class color) (min-colors 16) (background dark))
:background "darkolivegreen")
(((class color) (min-colors 8))
:background "green" :foreground "black")
(t :inverse-video t))
"Basic face for highlighting."
:group 'basic-faces)
Seems that this could be simply represented as:
(defface highlight
'((((class color) (min-colors 16) (background light))
:background "darkseagreen2")
(((class color) (min-colors 16) (background dark))
:background "darkolivegreen")
(((class color) (min-colors 8))
:background "green" :foreground "black")
(t :inverse-video t))
"Basic face for highlighting."
:group 'basic-faces)
Thanks.
--
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 reply other threads:[~2006-02-03 19:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-03 19:50 Bill Wohler [this message]
2006-02-04 11:11 ` Why min-colors 88? 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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=851.1138996246@olgas.newt.com \
--to=wohler@newt.com \
/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 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.