Commit 2346238d authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

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

parent d1e74921
......@@ -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 ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment