help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Occur lite


From: B. T. Raven
Subject: Re: Occur lite
Date: Sun, 15 Jul 2012 12:59:47 -0500
User-agent: Mozilla/5.0 (Windows NT 5.0; rv:9.0) Gecko/20111222 Thunderbird/9.0.1

> On 07/15/2012 06:12 PM, B. T. Raven wrote:
>> Thanks, Raffaele. The Emacs manual doesn't have a menu item for Occur
>> and I don't find it under the "Search" topics. Do you mean that this
>> capability is built in or does it require another package?
> 
> I mean that "C-h f occur RET" displays the documentation of occur, where
> you can find an example of how to capture function names in a Lisp file.
> It seems what you are looking for.
> 
> Cheers.

Thanks for the fast reply. On ver. 23.3 the function docs are these:
"
occur is an interactive compiled Lisp function in `replace.el'.

It is bound to M-s o.

(occur REGEXP &optional NLINES)

Show all lines in the current buffer containing a match for REGEXP.
This function can not handle matches that span more than one line.

Each line is displayed with NLINES lines before and after, or -NLINES
before if NLINES is negative.
NLINES defaults to `list-matching-lines-default-context-lines'.
Interactively it is the prefix arg.

The lines are shown in a buffer named `*Occur*'.
It serves as a menu to find any of the occurrences in this buffer.
C-h m in that buffer will explain how.

If REGEXP contains upper case characters (excluding those preceded by `\')
and `search-upper-case' is non-nil, the matching is case-sensitive.
"

In general I use Emacs for general text manipulation, not programming,
so, no, I'm not trying to get function names. Anyway, that code from
emacwiki seems to work and I can toggle-read-only on the buffer and use
rectangle to extract the matches only.

Ed




reply via email to

[Prev in Thread] Current Thread [Next in Thread]