summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-22 16:51:43 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-22 16:51:43 +0000
commit936f837ef4097df55fe3b10b60a7f8bbc331f742 (patch)
treeebf940518db7ff7237cf3be5e60474763f8287f2 /lisp/font-lock.el
parent4a6f186932f2eedfd302528bad63fd14655828fa (diff)
downloademacs-936f837ef4097df55fe3b10b60a7f8bbc331f742.tar.gz
(font-lock-make-faces): Set threshold for "light color"
at .6 of the total for white.
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r--lisp/font-lock.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 388efef6d6c..f97722ac311 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1181,7 +1181,7 @@ See `font-lock-make-face' and `list-faces-display'."
'dark))
((< (apply '+ (x-color-values
(cdr (assq 'background-color params))))
- (/ (apply '+ (x-color-values "white")) 3))
+ (* (apply '+ (x-color-values "white")) .6))
'dark)
(t 'light)))))
(if (null font-lock-face-attributes)