From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.devel Subject: Why min-colors 88? Date: Fri, 03 Feb 2006 11:50:46 -0800 Organization: Newt Software Message-ID: <851.1138996246@olgas.newt.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1139006991 22963 80.91.229.2 (3 Feb 2006 22:49:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2006 22:49:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 03 23:49:48 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F59kN-0002Y1-MY for ged-emacs-devel@m.gmane.org; Fri, 03 Feb 2006 23:49:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F59iD-000491-PF for ged-emacs-devel@m.gmane.org; Fri, 03 Feb 2006 17:47:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F570g-0004uj-3G for emacs-devel@gnu.org; Fri, 03 Feb 2006 14:54:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F570c-0004tQ-LD for emacs-devel@gnu.org; Fri, 03 Feb 2006 14:54:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F570b-0004t5-Nr for emacs-devel@gnu.org; Fri, 03 Feb 2006 14:54:18 -0500 Original-Received: from [69.93.192.76] (helo=tassie.newt.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F56ze-0002lF-2i for emacs-devel@gnu.org; Fri, 03 Feb 2006 14:53:18 -0500 Original-Received: from olgas.newt.com (m110e36d0.tmodns.net [208.54.14.17]) by tassie.newt.com (Postfix) with ESMTP id D31FF2D4014 for ; Fri, 3 Feb 2006 11:50:50 -0800 (PST) Original-Received: by olgas.newt.com (Postfix, from userid 1000) id 64AA017002; Fri, 3 Feb 2006 11:50:46 -0800 (PST) Original-Received: from olgas.newt.com (localhost [127.0.0.1]) by olgas.newt.com (Postfix) with ESMTP id 6121D16FA9 for ; Fri, 3 Feb 2006 11:50:46 -0800 (PST) Original-To: emacs-devel@gnu.org X-Mailer: MH-E 7.90+cvs; nmh 1.1; GNU Emacs 22.0.50.4 X-Image-URL: http://www.newt.com/wohler/images/bill-diving.png Mail-Followup-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49985 Archived-At: 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 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.