aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorRichard M. Stallman1994-12-27 03:41:48 +0000
committerRichard M. Stallman1994-12-27 03:41:48 +0000
commit0081c8a112491d07f9213aa8ca73fae0b6589c51 (patch)
tree4631f54eb1eda46fec25df2155201a769a24c1d9 /lisp/replace.el
parent3d23b9853efa648232f2d704092c3c15e4516bd7 (diff)
downloademacs-0081c8a112491d07f9213aa8ca73fae0b6589c51.tar.gz
emacs-0081c8a112491d07f9213aa8ca73fae0b6589c51.zip
(occur-mode-map): Bind C-m and `return' to occur-mode-goto-occurrence.
(occur-mode): Doc fix.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index eb947fd433e..21aa051ca7f 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -239,7 +239,9 @@ Applies to lines after point."
239 () 239 ()
240 (setq occur-mode-map (make-sparse-keymap)) 240 (setq occur-mode-map (make-sparse-keymap))
241 (define-key occur-mode-map [mouse-2] 'occur-mode-mouse-goto) 241 (define-key occur-mode-map [mouse-2] 'occur-mode-mouse-goto)
242 (define-key occur-mode-map "\C-c\C-c" 'occur-mode-goto-occurrence)) 242 (define-key occur-mode-map "\C-c\C-c" 'occur-mode-goto-occurrence)
243 (define-key occur-mode-map "\C-m" 'occur-mode-goto-occurrence)
244 (define-key occur-mode-map [return] 'occur-mode-goto-occurrence))
243 245
244(defvar occur-buffer nil) 246(defvar occur-buffer nil)
245(defvar occur-nlines nil) 247(defvar occur-nlines nil)
@@ -247,10 +249,10 @@ Applies to lines after point."
247 249
248(defun occur-mode () 250(defun occur-mode ()
249 "Major mode for output from \\[occur]. 251 "Major mode for output from \\[occur].
250Move point to one of the occurrences in this buffer, 252\\<occur-mode-map>Move point to one of the items in this buffer, then use
251then use \\[occur-mode-goto-occurrence] to go to the same occurrence 253\\[occur-mode-goto-occurrence] to go to the occurrence that the item refers to.
252in the buffer that the occurrences were found in. 254Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it.
253Or click \\<occur-mode-map>\\[occur-mode-mouse-goto] on an occurrence line. 255
254\\{occur-mode-map}" 256\\{occur-mode-map}"
255 (kill-all-local-variables) 257 (kill-all-local-variables)
256 (use-local-map occur-mode-map) 258 (use-local-map occur-mode-map)