File: hmoccur.el.html

Modified by Bob Weiner to allow selection of a set of files within a single directory to search. By default, {M-x moccur RET} searches current buffers with files attached.

Date: 1 Aug 91 15:47:27 GMT From: mfx@cs.tu-berlin.de (Markus Freericks) Subject: moccur - multibuffer occurences

While editing some dozen or so files, i had the dire need for something like 'occur' that can cope with multiple buffers. This has probably been done before; but still, here is my try at it. It seems to be very useful.

How to use it: simple say
M-x moccur <regexp>
moccur then searches through *all buffers* currently existing that are bound to files and displays the occurences in a buffer that runs in Moccur-mode. Change to that buffer, scroll around, and say C-c C-c to jump to the occurrence. Quite simple.

Incompatibilites to Occur mode: a) it browses through *all* buffers that have a file name associated with them; those may or may not include the current buffer. Especially, while standard occur works on 'all lines following point', Moccur does not. b) there is no support for the 'NLINE' argument.

Usage: moccur <regexp> shows all occurences of <regexp> in all buffers currently existing that refer to files. the occurences are displayed in a buffer running in Moccur mode; C-c C-c gets you to the occurence

Defined variables (5)

moccur-mode-abbrev-tableAbbrev table for ‘moccur-mode’.
moccur-mode-hookHook run after entering ‘moccur-mode’.
moccur-mode-mapKeymap for ‘moccur-mode’.
moccur-mode-syntax-tableSyntax table for ‘moccur-mode’.
moccur-source-prefixString prefix for lines indicating the source of the matches.

Defined functions (6)

moccur(REGEXP &optional FILE-REGEXP NO-FOLD-SEARCH)
moccur-mode()
moccur-mode-display-occurrence()
moccur-mode-goto-occurrence()
moccur-noselect()
moccur-to()

Defined faces (0)