changeset 39146:d1a5ac2a48eb

(toplevel): Require `jit-lock' only if font-lock-support-mode is set to jit-lock-mode.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 05 Sep 2001 13:36:29 +0000
parents 2ab6c0f4f537
children 1b05f1550efa
files lisp/font-lock.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Wed Sep 05 12:06:12 2001 +0000
+++ b/lisp/font-lock.el	Wed Sep 05 13:36:29 2001 +0000
@@ -2981,6 +2981,8 @@
 ;; Provide ourselves:
 
 (provide 'font-lock)
-(require 'jit-lock)
+
+(when (eq font-lock-support-mode 'jit-lock-mode)
+  (require 'jit-lock))
 
 ;;; font-lock.el ends here