* How to find the definition of local variables in emacs?
@ 2009-06-10 14:40 Thinking
2009-12-02 12:27 ` Kapuddi
0 siblings, 1 reply; 3+ messages in thread
From: Thinking @ 2009-06-10 14:40 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to find the definition of local variables in emacs?
2009-06-10 14:40 How to find the definition of local variables in emacs? Thinking
@ 2009-12-02 12:27 ` Kapuddi
2009-12-02 17:19 ` Andreas Politz
0 siblings, 1 reply; 3+ messages in thread
From: Kapuddi @ 2009-12-02 12:27 UTC (permalink / raw)
To: help-gnu-emacs
> 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?
Thinking <zhihang.wang <at> gmail.com> writes:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to find the definition of local variables in emacs?
2009-12-02 12:27 ` Kapuddi
@ 2009-12-02 17:19 ` Andreas Politz
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Politz @ 2009-12-02 17:19 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-02 17:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-10 14:40 How to find the definition of local variables in emacs? Thinking
2009-12-02 12:27 ` Kapuddi
2009-12-02 17:19 ` Andreas Politz
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.