* 'find use of' a symbol
@ 2008-10-31 16:45 Rodrigo Canellas
2008-10-31 17:32 ` Paul R
0 siblings, 1 reply; 6+ messages in thread
From: Rodrigo Canellas @ 2008-10-31 16:45 UTC (permalink / raw
To: help-gnu-emacs
Hi,
Is there a 'find use of' function like in Emacs? I mean, a function that
finds all the places where a certain symbol is used, given a group of files?
I read I can use 'grep', but I wonder if there is another way.
Thanks!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 'find use of' a symbol
2008-10-31 16:45 Rodrigo Canellas
@ 2008-10-31 17:32 ` Paul R
0 siblings, 0 replies; 6+ messages in thread
From: Paul R @ 2008-10-31 17:32 UTC (permalink / raw
To: Rodrigo Canellas; +Cc: help-gnu-emacs
Rodrigo> I read I can use 'grep', but I wonder if there is another way.
I have never heard of such a command, but I'd recommand for this use
case to use emacs built-in M-x grep command, because it will allow to
visit places interactively. This is very efficient.
--
Paul
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 'find use of' a symbol
[not found] <mailman.2584.1225471551.25473.help-gnu-emacs@gnu.org>
@ 2008-10-31 18:46 ` Lowell Gilbert
2008-10-31 22:39 ` Xah
2008-11-01 12:11 ` harven
1 sibling, 1 reply; 6+ messages in thread
From: Lowell Gilbert @ 2008-10-31 18:46 UTC (permalink / raw
To: help-gnu-emacs
Rodrigo Canellas <rodrigo.canellas@tqtvd.com> writes:
> Is there a 'find use of' function like in Emacs? I mean, a function
> that finds all the places where a certain symbol is used, given a
> group of files?
>
> I read I can use 'grep', but I wonder if there is another way.
If you have the "ID Utilities" installed, you can use "gid".
There are also interfaces to use cscope, eclipse and a bunch of other tools.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 'find use of' a symbol
2008-10-31 18:46 ` 'find use of' a symbol Lowell Gilbert
@ 2008-10-31 22:39 ` Xah
2008-11-01 8:06 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Xah @ 2008-10-31 22:39 UTC (permalink / raw
To: help-gnu-emacs
On Oct 31, 11:46 am, Lowell Gilbert <lguse...@be-well.ilk.org> wrote:
> Rodrigo Canellas <rodrigo.canel...@tqtvd.com> writes:
> > Is there a 'find use of' function like in Emacs? I mean, a function
> > that finds all the places where a certain symbol is used, given a
> > group of files?
>
> > I read I can use 'grep', but I wonder if there is another way.
>
> If you have the "ID Utilities" installed, you can use "gid".
> There are also interfaces to use cscope, eclipse and a bunch of other tools.
do you want to find all locations where the symbol appears, or where
the symbol is called, or including where it is defined?
i suppose you just want all locations where it appears. Besides “Alt+x
grep”, which i use, a better solution is probably tags. Unfortunately
you'll have to set it up first. See emacs manual on Tags. (info
"(emacs)Tags")
i know there are few other solutions but i've never tried... some show
all functions in a panel ... like modern IDE...
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 'find use of' a symbol
2008-10-31 22:39 ` Xah
@ 2008-11-01 8:06 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2008-11-01 8:06 UTC (permalink / raw
To: help-gnu-emacs
> From: Xah <xahlee@gmail.com>
> Date: Fri, 31 Oct 2008 15:39:28 -0700 (PDT)
>
> do you want to find all locations where the symbol appears, or where
> the symbol is called, or including where it is defined?
>
> i suppose you just want all locations where it appears. Besides “Alt+x
> grep”, which i use, a better solution is probably tags.
Tags only finds the location where a symbol is defined. To find ALL
locations, ID Utils + the gid command is the way to go.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 'find use of' a symbol
[not found] <mailman.2584.1225471551.25473.help-gnu-emacs@gnu.org>
2008-10-31 18:46 ` 'find use of' a symbol Lowell Gilbert
@ 2008-11-01 12:11 ` harven
1 sibling, 0 replies; 6+ messages in thread
From: harven @ 2008-11-01 12:11 UTC (permalink / raw
To: help-gnu-emacs
Rodrigo Canellas <rodrigo.canellas@tqtvd.com> writes:
> Hi,
>
> Is there a 'find use of' function like in Emacs? I mean, a function
> that finds all the places where a certain symbol is used, given a
> group of files?
>
> I read I can use 'grep', but I wonder if there is another way.
>
>
> Thanks!
You can try M-x lgrep and M-x rgrep (recursive grep).
The interface is a bit more friendly than the barbone M-x grep.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-11-01 12:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.2584.1225471551.25473.help-gnu-emacs@gnu.org>
2008-10-31 18:46 ` 'find use of' a symbol Lowell Gilbert
2008-10-31 22:39 ` Xah
2008-11-01 8:06 ` Eli Zaretskii
2008-11-01 12:11 ` harven
2008-10-31 16:45 Rodrigo Canellas
2008-10-31 17:32 ` Paul R
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.