all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Raffaele Ricciardi <rfflrccrd@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Occur lite
Date: Sun, 15 Jul 2012 17:41:21 +0100	[thread overview]
Message-ID: <a6ga52Fc1sU1@mid.individual.net> (raw)
In-Reply-To: <jtuip602i8s@news3.newsguy.com>

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.


  reply	other threads:[~2012-07-15 16:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-15 14:06 Occur lite B. T. Raven
2012-07-15 16:41 ` Raffaele Ricciardi [this message]
2012-07-15 16:45   ` Raffaele Ricciardi
2012-07-15 17:12     ` B. T. Raven
2012-07-15 17:30       ` Raffaele Ricciardi
2012-07-15 17:59         ` B. T. Raven
2012-07-15 18:44           ` Raffaele Ricciardi
2012-07-15 21:11             ` B. T. Raven
2012-07-15 22:55               ` Aurélien Aptel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a6ga52Fc1sU1@mid.individual.net \
    --to=rfflrccrd@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.