all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Occur lite
Date: Sun, 15 Jul 2012 12:12:23 -0500	[thread overview]
Message-ID: <jtutlm02uvu@news4.newsguy.com> (raw)
In-Reply-To: <a6gactFc1sU2@mid.individual.net>

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	other threads:[~2012-07-15 17:12 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
2012-07-15 16:45   ` Raffaele Ricciardi
2012-07-15 17:12     ` B. T. Raven [this message]
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=jtutlm02uvu@news4.newsguy.com \
    --to=btraven@nihilo.net \
    --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.