aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1999-07-23 16:44:54 +0000
committerDave Love1999-07-23 16:44:54 +0000
commita33209e8ef4da4f1b7db38d87db7f8bbfec4ace6 (patch)
treed090a0f38dd9bdd1a66c6bd93a392a3128d21ad1
parente7f07c2ccf56f5f6cc28c181146085c67c5f9ddc (diff)
downloademacs-a33209e8ef4da4f1b7db38d87db7f8bbfec4ace6.tar.gz
emacs-a33209e8ef4da4f1b7db38d87db7f8bbfec4ace6.zip
(turn-on-font-lock): Use tty-display-color-p.
-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 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."
714(defun turn-on-font-lock () 714(defun turn-on-font-lock ()
715 "Turn on Font Lock mode conditionally. 715 "Turn on Font Lock mode conditionally.
716Turn on only if the terminal can display it." 716Turn on only if the terminal can display it."
717 (when (and (not font-lock-mode) window-system) 717 (when (and (not font-lock-mode) (or window-system (tty-display-color-p)))
718 (font-lock-mode))) 718 (font-lock-mode)))
719 719
720;;;###autoload 720;;;###autoload