Mercurial > hg > xemacs-beta
diff lisp/faces.el @ 5373:b6e59ea11533
Add min-colors specifier to defface, and document it.
author | Jeff Sparkes <jsparkes@gmail.com> |
---|---|
date | Thu, 17 Mar 2011 14:35:02 -0400 |
parents | ed74d2ca7082 |
children | 4f0a1f4cc111 ac37a5f7e5be |
line wrap: on
line diff
--- a/lisp/faces.el Mon Mar 14 21:04:45 2011 +0000 +++ b/lisp/faces.el Thu Mar 17 14:35:02 2011 -0400 @@ -1702,6 +1702,7 @@ (type (plist-get props 'type)) (class (plist-get props 'class)) (background (plist-get props 'background)) + (min-colors (plist-get props 'min-colors)) (match t) (entries display) entry req options) @@ -1714,6 +1715,8 @@ (type (memq type options)) (class (memq class options)) (background (memq background options)) + (min-colors (>= (display-color-cells frame) + (car options))) (t (warn "Unknown req `%S' with options `%S'" req options) nil))))