1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(turn-on-font-lock): Test window-system.

This commit is contained in:
Richard M. Stallman 1996-01-24 05:40:21 +00:00
parent d1e7492185
commit 2346238d0a

View file

@ -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 ()