summaryrefslogtreecommitdiff
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorColin Walters <walters@gnu.org>2002-06-09 00:17:17 +0000
committerColin Walters <walters@gnu.org>2002-06-09 00:17:17 +0000
commitf53f6a1e0c4162205725131bc15f3dcfecd41bb3 (patch)
tree012a0a7de3fe2a878b0d4999a6d8cc9ccc23bd61 /lisp/replace.el
parent63e0bf5e28f04a60f4767fa2388aa7b6882ae4cc (diff)
downloademacs-f53f6a1e0c4162205725131bc15f3dcfecd41bb3.tar.gz
(occur-mode): Do set `font-lock-defaults',
and be sure to set `font-lock-core-only'.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index a07c93e5c64..e5f87dc65a1 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -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))