# HG changeset patch # User Richard M. Stallman # Date 1006298734 0 # Node ID 040cb763bd64740de0b0144eae273752b21e3b5b # Parent ce510b959c355df8dbd1d828aed286f0ceb6b406 (occur-mode): Undo 2001-5-20 change. diff -r ce510b959c35 -r 040cb763bd64 lisp/replace.el --- a/lisp/replace.el Tue Nov 20 23:17:45 2001 +0000 +++ b/lisp/replace.el Tue Nov 20 23:25:34 2001 +0000 @@ -445,17 +445,24 @@ (put 'occur-mode 'mode-class 'special) -(define-derived-mode occur-mode nil "Occur" +(defun occur-mode () "Major mode for output from \\[occur]. \\Move point to one of the items in this buffer, then use \\[occur-mode-goto-occurrence] to go to the occurrence that the item refers to. Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it. \\{occur-mode-map}" + (kill-all-local-variables) + (use-local-map occur-mode-map) + (setq major-mode 'occur-mode) + (setq mode-name "Occur") + (make-local-variable 'revert-buffer-function) + (setq revert-buffer-function 'occur-revert-function) (set (make-local-variable 'revert-buffer-function) 'occur-revert-function) (make-local-variable 'occur-buffer) (make-local-variable 'occur-nlines) - (make-local-variable 'occur-command-arguments)) + (make-local-variable 'occur-command-arguments) + (run-hooks 'occur-mode-hook)) (defun occur-revert-function (ignore1 ignore2) "Handle `revert-buffer' for *Occur* buffers."