[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use etags-select
From: |
Rafal Kurcz |
Subject: |
Re: How to use etags-select |
Date: |
Tue, 24 Jul 2007 01:17:07 -0700 |
User-agent: |
G2/1.0 |
On 23 Lip, 15:23, Scott Frazer <frazer.sc...@gmail.com> wrote:
> Rafal Kurcz wrote:
> > Hello
> > I load TAGS table with "visit-tags-table"
> > Then place the cursor on a function name "Action()" in a C code and
> > execute:
> > etags-select-find-tag-at-point
>
> > I receive the following information at the bottom of the screen:
> > No exact match for tag "Action"
>
> > Of course there are many functions with "Action()" name in my source
> > code.
> > I expect etags-select to show the list where I can choose the proper
> > function definition to jump to.
> > Is it right ?
>
> > How to display such a list of function definitions to jump to, based
> > on the tag the cursor is currently placed on ?
>
> > Thank You for help
>
> It sounds like your TAGS file wasn't generated properly. What command
> did you use to create TAGS?
>
> Scott
Hello
I used the following to generate the TAGS:
find . -name "*.[ch]*" -print | etags - --language=c++ --members --
declarations
The contents of the TAGS file is as follows:
class.cpp,101
class CarCar3,21
void speed Car::speed6,43
void speed Car::speed7,83
void main(10,115
The source code is as follows:
class Car
{
public:
void speed (int a) { a=1; return; }
void speed () {return;}
};
void main()
{
Car car;
car.speed(10);
car.speed();
}