changeset 14266:a8bd2aaa0d8c

(turn-on-font-lock): Test window-system.
author Richard M. Stallman <rms@gnu.org>
date Wed, 24 Jan 1996 05:40:21 +0000
parents 9bc9be522a4d
children da2d268f737f
files lisp/font-lock.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Tue Jan 23 18:56:15 1996 +0000
+++ b/lisp/font-lock.el	Wed Jan 24 05:40:21 1996 +0000
@@ -411,8 +411,9 @@
 
 ;;;###autoload
 (defun turn-on-font-lock ()
-  "Unconditionally turn on Font Lock mode."
-  (font-lock-mode 1))
+  "Turn on Font Lock mode, if the terminal can display it."
+  (if window-system
+      (font-lock-mode 1)))
 
 ;;;###autoload
 (defun font-lock-fontify-buffer ()