# HG changeset patch # User Dave Love # Date 932748294 0 # Node ID aa8c0196cf486f059861b93b07f55fe0c54c8954 # Parent 6d32371bea44777d3a50195a6ee27cf07047c711 (turn-on-font-lock): Use tty-display-color-p. diff -r 6d32371bea44 -r aa8c0196cf48 lisp/font-lock.el --- 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