]> git.eshelyaron.com Git - emacs.git/commitdiff
(hi-lock-mode): Turning on Hi-Lock turns on Font-Lock.
authorRichard M. Stallman <rms@gnu.org>
Thu, 3 Feb 2005 06:49:18 +0000 (06:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 3 Feb 2005 06:49:18 +0000 (06:49 +0000)
lisp/hi-lock.el

index 99eeb6981713fba80c0d944919889fdbe06d7631..81c7296760f7ff0cb148a64ed0ee10cd64ed99f6 100644 (file)
@@ -294,6 +294,10 @@ is found. A mode is excluded if it's in the list `hi-lock-exclude-modes'."
     (when (and (not hi-lock-mode-prev) hi-lock-mode)
       (add-hook 'find-file-hooks 'hi-lock-find-file-hook)
       (add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook)
+      (when (eq nil font-lock-defaults)
+       (setq font-lock-defaults '(nil)))
+      (unless font-lock-mode
+       (font-lock-mode 1))
       (define-key-after menu-bar-edit-menu [hi-lock]
         (cons "Regexp Highlighting" hi-lock-menu))
       (dolist (buffer (buffer-list))