From a33209e8ef4da4f1b7db38d87db7f8bbfec4ace6 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Fri, 23 Jul 1999 16:44:54 +0000 Subject: [PATCH] (turn-on-font-lock): Use tty-display-color-p. --- lisp/font-lock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 6dac89577ba..f0257182eef 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -714,7 +714,7 @@ buffer local value for `font-lock-defaults', via its mode hook." (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 -- 2.39.5