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: Lennart Borgman (gmail)
Subject: Re: How to mark and search text in less keystrokes ?
Date: Thu, 02 Oct 2008 16:28:04 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Christiano Farina Haesbaert wrote:
> 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.

Start with

  C-s C-w

and then to move use

  C-s

To go back use C-g

> 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.

Have you tested lgrep and rgrep in Emacs?

> 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]