[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: supporting more faces on 256 colors xterms

From: Dan Nicolaescu
Subject: Re: supporting more faces on 256 colors xterms
Date: Sun, 08 Feb 2004 15:52:36 -0800

"Eli Zaretskii" <address@hidden> writes:

  > > From: Andreas Schwab <address@hidden>
  > > 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.

(defface foo-face
  '((((class color)(ncolors>= 88)) (:foreground "Firebrick"))
    (((class color)(ncolors>= 16)) (:foreground "red"))
    (t (:weight bold :slant italic)))
  :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'. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]