diff options
| author | Richard M. Stallman | 2002-09-10 16:44:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-09-10 16:44:17 +0000 |
| commit | fbefbe33e043d689289d1d623000ea1353b84928 (patch) | |
| tree | fab4c483a6e0bef034596ef0830cfbfbee92dd12 | |
| parent | 67c9f58d7ecca6ac959201066cea60c167603d51 (diff) | |
| download | emacs-fbefbe33e043d689289d1d623000ea1353b84928.tar.gz emacs-fbefbe33e043d689289d1d623000ea1353b84928.zip | |
(occur-mode): Add font-lock-defontify to change-major-mode-hook.
| -rw-r--r-- | lisp/replace.el | 1 |
1 files changed, 1 insertions, 0 deletions
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. | |||
| 489 | (setq mode-name "Occur") | 489 | (setq mode-name "Occur") |
| 490 | (set (make-local-variable 'revert-buffer-function) 'occur-revert-function) | 490 | (set (make-local-variable 'revert-buffer-function) 'occur-revert-function) |
| 491 | (make-local-variable 'occur-revert-arguments) | 491 | (make-local-variable 'occur-revert-arguments) |
| 492 | (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) | ||
| 492 | (run-hooks 'occur-mode-hook)) | 493 | (run-hooks 'occur-mode-hook)) |
| 493 | 494 | ||
| 494 | (defun occur-revert-function (ignore1 ignore2) | 495 | (defun occur-revert-function (ignore1 ignore2) |