From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: supporting more faces on 256 colors xterms Date: Sun, 08 Feb 2004 15:52:36 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200402082352.i18NqY6M003350@gremlin.ics.uci.edu> References: <200402080413.i184DH6M015994@gremlin.ics.uci.edu> <200402080815.i188F46M001654@gremlin.ics.uci.edu> <9003-Sun08Feb2004202425+0200-eliz@elta.co.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076286396 15007 80.91.224.253 (9 Feb 2004 00:26:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2004 00:26:36 +0000 (UTC) Cc: Andreas Schwab , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Feb 09 01:26:26 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ApzFq-0004WT-00 for ; Mon, 09 Feb 2004 01:26:26 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ApzFq-0002Us-00 for ; Mon, 09 Feb 2004 01:26:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Apz7k-0005qc-SE for emacs-devel@quimby.gnus.org; Sun, 08 Feb 2004 19:18:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Apz1b-0008Mu-Id for emacs-devel@gnu.org; Sun, 08 Feb 2004 19:11:43 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Apyys-0007Kl-PW for emacs-devel@gnu.org; Sun, 08 Feb 2004 19:09:26 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1Apyys-0007KP-2u for emacs-devel@gnu.org; Sun, 08 Feb 2004 19:08:54 -0500 Original-Received: from [128.195.1.70] (helo=gremlin.ics.uci.edu) by mx20.gnu.org with esmtp (Exim 4.24) id 1ApyuW-0001mY-9F for emacs-devel@gnu.org; Sun, 08 Feb 2004 19:04:24 -0500 Original-Received: from vino.ics.uci.edu (vino.ics.uci.edu [128.195.11.198]) by gremlin.ics.uci.edu (8.12.10/8.12.10) with ESMTP id i18NqY6M003350; Sun, 8 Feb 2004 15:52:35 -0800 (PST) Original-To: Eli Zaretskii In-Reply-To: <9003-Sun08Feb2004202425+0200-eliz@elta.co.il> Original-Lines: 31 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-120.6, required 5, EMAIL_ATTRIBUTION, IN_REP_TO, MIME_EXCESSIVE_QP, REFERENCES, REPLY_WITH_QUOTES, USER_IN_WHITELIST) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19811 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19811 "Eli Zaretskii" writes: > > From: Andreas Schwab > > Date: Sun, 08 Feb 2004 14:45:28 +0100 > > > > How about min-colors? > > Okay, but what to do with the opposite clause, `ncolors<='? That > would be handy for color-challenged devices. We don't really need both `ncolors>=' and `ncolors<=', `ncolors>=' (or whatever we decide to call it) is enough. Ordering the `ncolors>=' clauses in decreasing order should be enough. Example: (defface foo-face '((((class color)(ncolors>= 88)) (:foreground "Firebrick")) (((class color)(ncolors>= 16)) (:foreground "red")) (t (:weight bold :slant italic))) "Foo." :group 'foo) The screenshot at http://www.ics.uci.edu/~dann/emacs.jpg shows of 2 emacs sessions: emacs -nw -q --no-site-file emacs -q --no-site-file& that show the font-lock faces changed to use the ncolors>= attribute. As for the name. I would vote for `min-colors'.