# HG changeset patch # User Richard M. Stallman # Date 788499708 0 # Node ID a44beb55d3e11a8b44f5594ff32b097d02edc951 # Parent c53a70ec8d85fad2bc300567b8f08260e14eda16 (occur-mode-map): Bind C-m and `return' to occur-mode-goto-occurrence. (occur-mode): Doc fix. diff -r c53a70ec8d85 -r a44beb55d3e1 lisp/replace.el --- a/lisp/replace.el Mon Dec 26 23:48:27 1994 +0000 +++ b/lisp/replace.el Tue Dec 27 03:41:48 1994 +0000 @@ -239,7 +239,9 @@ () (setq occur-mode-map (make-sparse-keymap)) (define-key occur-mode-map [mouse-2] 'occur-mode-mouse-goto) - (define-key occur-mode-map "\C-c\C-c" 'occur-mode-goto-occurrence)) + (define-key occur-mode-map "\C-c\C-c" 'occur-mode-goto-occurrence) + (define-key occur-mode-map "\C-m" 'occur-mode-goto-occurrence) + (define-key occur-mode-map [return] 'occur-mode-goto-occurrence)) (defvar occur-buffer nil) (defvar occur-nlines nil) @@ -247,10 +249,10 @@ (defun occur-mode () "Major mode for output from \\[occur]. -Move point to one of the occurrences in this buffer, -then use \\[occur-mode-goto-occurrence] to go to the same occurrence -in the buffer that the occurrences were found in. -Or click \\\\[occur-mode-mouse-goto] on an occurrence line. +\\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)