]> git.eshelyaron.com Git - emacs.git/commitdiff
(occur-mode): Do set `font-lock-defaults',
authorColin Walters <walters@gnu.org>
Sun, 9 Jun 2002 00:17:17 +0000 (00:17 +0000)
committerColin Walters <walters@gnu.org>
Sun, 9 Jun 2002 00:17:17 +0000 (00:17 +0000)
and be sure to set `font-lock-core-only'.

lisp/replace.el

index a07c93e5c64d612c9e90006cd3c5253dd334214a..e5f87dc65a1c239467102a94453617fe379744d6 100644 (file)
@@ -470,8 +470,9 @@ Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it.
   (use-local-map occur-mode-map)
   (setq major-mode 'occur-mode)
   (setq mode-name "Occur")
-  (make-local-variable 'revert-buffer-function)
   (set (make-local-variable 'revert-buffer-function) 'occur-revert-function)
+  (set (make-local-variable 'font-lock-defaults)
+       '(nil t nil nil nil (font-lock-core-only . t)))
   (make-local-variable 'occur-revert-arguments)
   (run-hooks 'occur-mode-hook))