comparison 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
comparison
equal deleted inserted replaced
25048:6d32371bea44 25049:aa8c0196cf48
712 712
713 ;;;###autoload 713 ;;;###autoload
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.
716 Turn on only if the terminal can display it." 716 Turn 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
721 (defun font-lock-add-keywords (major-mode keywords &optional append) 721 (defun font-lock-add-keywords (major-mode keywords &optional append)
722 "Add highlighting KEYWORDS for MAJOR-MODE. 722 "Add highlighting KEYWORDS for MAJOR-MODE.