diff options
author | Richard M. Stallman <rms@gnu.org> | 2001-11-20 23:28:57 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2001-11-20 23:28:57 +0000 |
commit | 505847d46117471a429df6ff483db0a029fbafb0 (patch) | |
tree | 6dfb9b6681826fbf8cefe647eaf2cded5bb047e5 /lisp/replace.el | |
parent | fc813ef63fc2ceccbc8b3c230491ac7fc9474b07 (diff) | |
download | emacs-505847d46117471a429df6ff483db0a029fbafb0.tar.gz emacs-505847d46117471a429df6ff483db0a029fbafb0.tar.bz2 emacs-505847d46117471a429df6ff483db0a029fbafb0.zip |
(occur-mode): Undo 2001-5-20 change.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r-- | lisp/replace.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 1082caadc7b..ee0c2ba7a85 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -445,17 +445,24 @@ end of the buffer." (put 'occur-mode 'mode-class 'special) -(define-derived-mode occur-mode nil "Occur" +(defun occur-mode () "Major mode for output from \\[occur]. \\<occur-mode-map>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." |