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:12:23 -0500
User-agent: Mozilla/5.0 (Windows NT 5.0; rv:9.0) Gecko/20111222 Thunderbird/9.0.1

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? At

http://emacswiki.org/emacs/OccurMode#toc12

under "View matches only" there is code for an "occurences" function
that looks like it might work but I don't understand it and don't need
much of its functionality (text properties, etc.) but it would be nice
to retain the line number and colon and have the occurences printed one
per line. Anyway, I can try it if the line

(interactive (occur-read-primary-args))

means that I can invoke it as M-x occurences.

Thanks again,

Ed


> On 07/15/2012 05:41 PM, Raffaele Ricciardi wrote:
>> An indirect solution: run occur and then run a regexp over the *Occur*
>> buffer to capture each word. Something like:
>>
>> (call-interactively #'occur)
>> (switch-to-buffer "*Occur*") ;; Or with-current-buffer
>> (goto-char (point-min))
>> ;; etc.
> 
> I spoke too fast. RTFM, e.g. the documentation of occur provides exactly
> what you need.
> 
> 



reply via email to

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