diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-01-24 05:40:21 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-01-24 05:40:21 +0000 |
commit | e1e96327451eec70f2c9926bf67da45a5d7b2261 (patch) | |
tree | 7fecc71fa7a636efd37b81f17d199198fa499bfb /lisp/font-lock.el | |
parent | ac0b848d06b7e77b568c9968e04ee75c764abed3 (diff) | |
download | emacs-e1e96327451eec70f2c9926bf67da45a5d7b2261.tar.gz |
(turn-on-font-lock): Test window-system.
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r-- | lisp/font-lock.el | 5 |
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 () |