From: "Drew Adams" <drew.adams@oracle.com>
To: "'zismad'" <zismad@gmail.com>, <Help-gnu-emacs@gnu.org>
Subject: RE: one shortcut next occurrence search
Date: Thu, 23 Dec 2010 09:12:28 -0800 [thread overview]
Message-ID: <4E82207D3E62463AB6DD4A3C90A9D744@us.oracle.com> (raw)
In-Reply-To: <30519989.post@talk.nabble.com>
> >> I would like to have a new binding so that if im having the
> >> cursur on a word, one shortcut click (say f3) whould find
> >> the next occurrence of the word in the text and so one.
> >
> > What's wrong with ordinary `C-s C-w C-s C-s ...'?
>
> I want the the marked word to be found next when I hit f3.
> maybe you'll call me lazy but `C-s C-w' is too much for me ...
The `C-w' is only to "mark" the word, i.e. to say which word(s) you want to
visit. Thereafter, all you need is `C-s' for "the marked word to be found
next". And you can of course use any other key you like (e.g. f3) instead of
`C-s'.
So wrt laziness: hitting `f3' to visit each occurrence is no more difficult than
hitting `f3' to visit each occurrence. ;-)
> ex1-ex2 ex3
> ex1
> ex1-ex2
For that example, if you want to visit only the `ex1-ex2' occurrences, then
start by `C-s C-w C-w'.
Another alternative, besides `C-s' and the one Tassilo mentioned, is `occur'.
You can also access `occur' from `isearch' (`C-s').
And there are `occur' variants (enhancements) that provide other behavior.
Thierry Volpiatto's `ioccur' is one. Icicles's `C-'' is another
(`icicle-occur'). All of these (including vanilla `occur') let you not only
cycle among occurrences but also visit specific occurrences directly.
http://www.emacswiki.org/emacs/Icicles_-_Search_Commands%2c_Overview#toc2
http://www.emacswiki.org/emacs/OccurMode
next prev parent reply other threads:[~2010-12-23 17:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 8:20 one shortcut next occurrence search zismad
2010-12-23 3:03 ` Drew Adams
2010-12-23 7:22 ` zismad
2010-12-23 8:29 ` Tassilo Horn
2010-12-23 13:26 ` zismad
2010-12-23 13:50 ` Tassilo Horn
2010-12-23 9:17 ` Eli Zaretskii
2010-12-23 17:12 ` Drew Adams [this message]
[not found] ` <mailman.1.1293088974.1406.help-gnu-emacs@gnu.org>
2010-12-23 13:39 ` Vagn Johansen
[not found] ` <mailman.16.1293073448.15570.help-gnu-emacs@gnu.org>
2010-12-24 9:44 ` rusi
2010-12-24 10:18 ` Teemu Likonen
2010-12-24 10:36 ` Elena
2010-12-24 10:51 ` Tassilo Horn
2010-12-24 16:39 ` Drew Adams
[not found] ` <mailman.0.1293187918.15516.help-gnu-emacs@gnu.org>
2010-12-24 11:17 ` Elena
2010-12-24 11:27 ` Elena
2010-12-24 16:39 ` Drew Adams
2010-12-24 11:27 ` Richard Riley
2010-12-25 16:37 ` Bob Proulx
[not found] <mailman.10.1293068065.15570.help-gnu-emacs@gnu.org>
2010-12-23 9:31 ` Elena
2010-12-23 22:06 ` LanX
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=4E82207D3E62463AB6DD4A3C90A9D744@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=zismad@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.
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.