help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to mark and search text in less keystrokes ?


From: Parker, Matthew
Subject: RE: How to mark and search text in less keystrokes ?
Date: Thu, 2 Oct 2008 10:29:42 -0400

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]