From 01b691481a6c45de50eb52b1c9653c7dd6980d28 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Mon, 24 Jan 2000 22:16:14 +0000 Subject: [PATCH] (turn-on-font-lock): Don't depend on window-system &c. --- lisp/font-lock.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/font-lock.el b/lisp/font-lock.el index c0dab76b0c8..cecc933b621 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -1,6 +1,7 @@ ;;; font-lock.el --- Electric font lock mode -;; Copyright (C) 1992-1999 Free Software Foundation, Inc. +;; Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999 +;; Free Software Foundation, Inc. ;; Author: jwz, then rms, then sm ;; Maintainer: FSF @@ -729,7 +730,7 @@ buffer local value for `font-lock-defaults', via its mode hook." (defun turn-on-font-lock () "Turn on Font Lock mode conditionally. Turn on only if the terminal can display it." - (when (and (not font-lock-mode) (or window-system (tty-display-color-p))) + (unless font-lock-mode (font-lock-mode))) ;;;###autoload -- 2.39.5