summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-01-24 05:40:21 +0000
committerRichard M. Stallman <rms@gnu.org>1996-01-24 05:40:21 +0000
commite1e96327451eec70f2c9926bf67da45a5d7b2261 (patch)
tree7fecc71fa7a636efd37b81f17d199198fa499bfb /lisp/font-lock.el
parentac0b848d06b7e77b568c9968e04ee75c764abed3 (diff)
downloademacs-e1e96327451eec70f2c9926bf67da45a5d7b2261.tar.gz
(turn-on-font-lock): Test window-system.
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r--lisp/font-lock.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 8121b406979..ff0ede34e6e 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -411,8 +411,9 @@ syntactic change on other lines, you can use \\[font-lock-fontify-window]."
;;;###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 ()