all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why min-colors 88?
@ 2006-02-03 19:50 Bill Wohler
  2006-02-04 11:11 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Bill Wohler @ 2006-02-03 19:50 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-02-06  2:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-02-06  1:41             ` Miles Bader
2006-02-06  2:32         ` Stefan Monnier
2006-02-05 19:55     ` Eli Zaretskii

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.