From: "Drew Adams" <drew.adams@oracle.com>
To: "'cfelton'" <chris.felton@gmail.com>, <Help-gnu-emacs@gnu.org>
Subject: RE: How to search current word under cursor?
Date: Sat, 19 Jul 2008 09:24:48 -0700 [thread overview]
Message-ID: <001001c8e9bb$f6eccf50$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <18528933.post@talk.nabble.com>
> >> I want search this buffer of current word under cursor,
> >> how can I do it?
> >
> > C-s C-w
>
> How do you extend this to the occur function? I have a key
> binding mapped to the occur function, and I would like the
> word at the cursor (compete word foo_bar, not just foo) to be
> the default search when invoked?
http://www.emacswiki.org/cgi-bin/wiki/OccurFromIsearch
(Also, C-s C-w C-w... accumulates search text, so C-s C-w C-w will pick up
foo_bar as the search string.)
next prev parent reply other threads:[~2008-07-19 16:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-17 12:01 How to search current word under cursor? Jijun MA
2006-05-17 12:09 ` Bastien
2008-07-18 13:13 ` cfelton
2008-07-19 16:24 ` Drew Adams [this message]
[not found] ` <mailman.15011.1216429238.18990.help-gnu-emacs@gnu.org>
2008-07-19 19:27 ` Andreas Politz
2006-05-17 13:43 ` Peter Dyballa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001001c8e9bb$f6eccf50$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=chris.felton@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).