From: Richard M. Stallman Date: Tue, 10 Sep 2002 16:44:17 +0000 (+0000) Subject: (occur-mode): Add font-lock-defontify to change-major-mode-hook. X-Git-Tag: ttn-vms-21-2-B4~13264 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fbefbe33e043d689289d1d623000ea1353b84928;p=emacs.git (occur-mode): Add font-lock-defontify to change-major-mode-hook. --- diff --git a/lisp/replace.el b/lisp/replace.el index 449d47e09b8..544f10ada91 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)