all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Parker, Matthew" <MParker@seic.com>
To: "Christiano Farina Haesbaert" <christiano.fh@gmail.com>,
	<help-gnu-emacs@gnu.org>
Subject: RE: How to mark and search text in less keystrokes ?
Date: Thu, 2 Oct 2008 10:29:42 -0400	[thread overview]
Message-ID: <9E067A1AECCB154485D4CF7E4BEF4D8E0A15473B@post07.corp.seic.com> (raw)
In-Reply-To: <b595c130-e701-41f5-9e16-9f4d7072b03d@l62g2000hse.googlegroups.com>

With point just before a word

C-s C-w does a search on that word

Repeated C-s will step through matches

C-g will quit search and return point to where you started

Return/Enter will stop search and leave point at current match



Matthew Parker

SEI  | 1 Freedom Valley Drive | Oaks, PA 19456 | p: 610-676-1279 | f:
484-676-1279 | www.seic.com
-----Original Message-----
From: help-gnu-emacs-bounces+mparker=seic.com@gnu.org
[mailto:help-gnu-emacs-bounces+mparker=seic.com@gnu.org] On Behalf Of
Christiano Farina Haesbaert
Sent: Thursday, October 02, 2008 9:13 AM
To: help-gnu-emacs@gnu.org
Subject: How to mark and search text in less keystrokes ?

I saw my boss doing the following in vi the other day and it seemed
quite useful, suppose:

You are editing a buffer, and your pointer is at the word
myfunc(a,b),

How can I search for the occurences of the word myfunc at the same
buffer AND mark my position where I was, so I can iterate through the
results and get back to my original spot at any time.

For now I'm using C^s and "typing" the word ( I know it's lame ), and
when I want to get back I loop thought until I'm back at the original
spot.

Please if I didn't make myself clear I can try to explain better.

Another thing, is it possible to iterate through all function calls of
myfunc in a directory ?
Currently I gave a grep, that tries to match the patter of myfunc
call, but is kinda clumsy.

obs: As you can see I'm not an Emacs wizard, it's just my second
month.





  parent reply	other threads:[~2008-10-02 14:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-02 13:12 How to mark and search text in less keystrokes ? Christiano Farina Haesbaert
2008-10-02 14:07 ` Mathias Dahl
2008-10-02 14:28 ` Lennart Borgman (gmail)
2008-10-02 15:42   ` Drew Adams
2008-10-02 21:32     ` Nikolaj Schumacher
2008-10-02 21:46       ` Drew Adams
     [not found]   ` <mailman.53.1222962172.25473.help-gnu-emacs@gnu.org>
2008-10-02 17:31     ` Christiano Farina Haesbaert
2008-10-02 18:04       ` Christiano Farina Haesbaert
2008-10-02 14:29 ` Parker, Matthew [this message]
     [not found] ` <mailman.44.1222957709.25473.help-gnu-emacs@gnu.org>
2008-10-02 14:57   ` Christiano Farina Haesbaert
2008-10-02 15:41     ` Andreas Politz
2008-10-02 15:37 ` Drew Adams

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=9E067A1AECCB154485D4CF7E4BEF4D8E0A15473B@post07.corp.seic.com \
    --to=mparker@seic.com \
    --cc=christiano.fh@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.