aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2002-09-10 16:44:17 +0000
committerRichard M. Stallman <[email protected]>2002-09-10 16:44:17 +0000
commitfbefbe33e043d689289d1d623000ea1353b84928 (patch)
treefab4c483a6e0bef034596ef0830cfbfbee92dd12 /lisp
parent67c9f58d7ecca6ac959201066cea60c167603d51 (diff)
(occur-mode): Add font-lock-defontify to change-major-mode-hook.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/replace.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 449d47e09b..544f10ada9 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -489,6 +489,7 @@ Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it.
(setq mode-name "Occur")
(set (make-local-variable 'revert-buffer-function) 'occur-revert-function)
(make-local-variable 'occur-revert-arguments)
+ (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)
(run-hooks 'occur-mode-hook))
(defun occur-revert-function (ignore1 ignore2)