[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Occur lite
From: |
Raffaele Ricciardi |
Subject: |
Re: Occur lite |
Date: |
Sun, 15 Jul 2012 17:41:21 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
On 07/15/2012 03:06 PM, B. T. Raven wrote:> Ignutians:
>
> Is there an Emacs function that extracts only words matching a regexp
> and writes them to another buffer? This would work exactly like the
> "occur" function but would write only the words to the *Occur* buffer
> instead of the whole line. I have looked at the code for "occur" in
> replace.el but I'm afraid it's over my head to try and modify it into a
> custom function.
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.
- Occur lite, B. T. Raven, 2012/07/15
- Re: Occur lite,
Raffaele Ricciardi <=
- Re: Occur lite, Raffaele Ricciardi, 2012/07/15
- Re: Occur lite, B. T. Raven, 2012/07/15
- Re: Occur lite, Raffaele Ricciardi, 2012/07/15
- Re: Occur lite, B. T. Raven, 2012/07/15
- Re: Occur lite, Raffaele Ricciardi, 2012/07/15
- Re: Occur lite, B. T. Raven, 2012/07/15
- Re: Occur lite, Aurélien Aptel, 2012/07/15