From: Nick Roberts <nickrob@snap.net.nz>
To: Rafal Kurcz <pawlaczus@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Search waht is under the cursor
Date: Mon, 30 Jul 2007 21:49:40 +1200 [thread overview]
Message-ID: <18093.46132.555841.206016@kahikatea.snap.net.nz> (raw)
In-Reply-To: <1185787814.921291.184680@w3g2000hsg.googlegroups.com>
> Hello
> I would like to search the string that is currently under the cursor.
> It should do something very similar to C-s and C-r but take the string
> that is currently under the cursor as a default search pattern.
The characters `C-w' and `C-y' can be used in incremental search to
grab text from the buffer into the search string. This makes it
convenient to search for another occurrence of text at point. `C-w'
copies the character or word after point as part of the search string,
advancing point over it. (The decision, whether to copy a character or
a word, is heuristic.) Another `C-s' to repeat the search will then
search for a string including that character or word.
Hopefully next time this will help you search the manual more effectively
first!
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2007-07-30 9:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-30 9:30 Search waht is under the cursor Rafal Kurcz
2007-07-30 9:46 ` Harald Hanche-Olsen
2007-07-30 9:49 ` Nick Roberts [this message]
2007-07-30 10:45 ` Nikolaj Schumacher
2007-07-30 10:49 ` 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=18093.46132.555841.206016@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=help-gnu-emacs@gnu.org \
--cc=pawlaczus@yahoo.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).