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

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

Re: How to find the definition of local variables in emacs?


From: Andreas Politz
Subject: Re: How to find the definition of local variables in emacs?
Date: Wed, 02 Dec 2009 18:19:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Kapuddi <Kapuddi@gmail.com> writes:

>> For example
>> int foo ()
>> {
>>   int x;
>>   int y;
>>   x = 1;
>>   y = 2;
>> }
>> 
>> If I press M-. in emacs under x, it can't find the tag name of x.
>> 
>> Only global variables can be find.
>> 
>> How can find the LOCAL definition of the variables?
>> 
>> Best regards
>
> Hey, Guys, 
> Did you hack it out?
> If you did, can you give me some advice?
>
Why would you need advice, if someone already ,,hacked it out'' ?

My advice is this idea : Use isearch to search backward and check with
some means, if you found the declaration or (if undeclared) the
beginning of fun.

Some means could be a regexp, cc-mode, semantic or something else.

-ap





reply via email to

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