comparison lisp/font-lock.el @ 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 83f275dcd93a
children ef148b168aad
comparison
equal deleted inserted replaced
14265:9bc9be522a4d 14266:a8bd2aaa0d8c
409 (font-lock-thing-lock-cleanup))) 409 (font-lock-thing-lock-cleanup)))
410 (force-mode-line-update))) 410 (force-mode-line-update)))
411 411
412 ;;;###autoload 412 ;;;###autoload
413 (defun turn-on-font-lock () 413 (defun turn-on-font-lock ()
414 "Unconditionally turn on Font Lock mode." 414 "Turn on Font Lock mode, if the terminal can display it."
415 (font-lock-mode 1)) 415 (if window-system
416 (font-lock-mode 1)))
416 417
417 ;;;###autoload 418 ;;;###autoload
418 (defun font-lock-fontify-buffer () 419 (defun font-lock-fontify-buffer ()
419 "Fontify the current buffer the way `font-lock-mode' would." 420 "Fontify the current buffer the way `font-lock-mode' would."
420 (interactive) 421 (interactive)