diff lisp/font-lock.el @ 25049:aa8c0196cf48

(turn-on-font-lock): Use tty-display-color-p.
author Dave Love <fx@gnu.org>
date Fri, 23 Jul 1999 16:44:54 +0000
parents 6d32371bea44
children 5ae84fc3bc96
line wrap: on
line diff
--- a/lisp/font-lock.el	Fri Jul 23 10:59:35 1999 +0000
+++ b/lisp/font-lock.el	Fri Jul 23 16:44:54 1999 +0000
@@ -714,7 +714,7 @@
 (defun turn-on-font-lock ()
   "Turn on Font Lock mode conditionally.
 Turn on only if the terminal can display it."
-  (when (and (not font-lock-mode) window-system)
+  (when (and (not font-lock-mode) (or window-system (tty-display-color-p)))
     (font-lock-mode)))
 
 ;;;###autoload