Re: How to use etags in emacs

From:

Giorgos Keramidas

Subject:

Re: How to use etags in emacs

Date:

Thu, 09 Jul 2009 14:14:45 +0300

User-agent:

Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix)

On Wed, 8 Jul 2009 21:30:41 -0700, n179911 <address@hidden> wrote:
>On Wed, Jul 8, 2009 at 6:01 PM,
>Giorgos Keramidas <address@hidden> wrote:
>>> But can you please tell me how can i
>>> * find the occurrence of the place calling a certain function
>>> * after i click 'M . find tag', it loads the .h file of that class.
>>> How can i load the .cpp of that class?
>>
>> Repeated `C-u M-.' commands will cycle through all the places marked
>> with the particular tag.
>
> Thanks. Is there anyway to list all the places which marked with the
> tag. And when you said 'marked with the particular tag'. does it
> include the place where it called that function and the place where
> that function is declared and implemented?
There is `M-x tags-search RET regexp RET'. This searches for tags
matching `regexp' and it can iterate through more than one tag table.
Once a single match is found you can find the next one with `M-,' and
repeat until you have finished going through all the matches, or you
have found what you were looking for.
The temporary buffers that have no matches are closed as tags-search
goes through the motions, so you are finally let with a buffer list
like (a sample from my iswitchb buffer list):
: MR Name Size Mode Filename/Process
: -- ---- ---- ---- ----------------
:[ Default ]
: setup.c 18454 C/l /work/foo/src/setup.c
: net.c 18077 C/l /work/foo/src/net.c
: % foo 2947 Dired by name /work/foo/
: * *Messages* 5070 Fundamental
The buffers under `/work/foo' are those that had at least one match.