diff options
| author | Dave Love | 1999-07-23 16:44:54 +0000 |
|---|---|---|
| committer | Dave Love | 1999-07-23 16:44:54 +0000 |
| commit | a33209e8ef4da4f1b7db38d87db7f8bbfec4ace6 (patch) | |
| tree | d090a0f38dd9bdd1a66c6bd93a392a3128d21ad1 | |
| parent | e7f07c2ccf56f5f6cc28c181146085c67c5f9ddc (diff) | |
| download | emacs-a33209e8ef4da4f1b7db38d87db7f8bbfec4ace6.tar.gz emacs-a33209e8ef4da4f1b7db38d87db7f8bbfec4ace6.zip | |
(turn-on-font-lock): Use tty-display-color-p.
| -rw-r--r-- | lisp/font-lock.el | 2 |
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. |
| 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 |