Apologies for a slow response.
>>> Perry Smith <pedz@...> seems to think that:
>I think I've asked this before but I'm digging keeping into this.
>So far, ECB and CEDET are working better for me this time around than
> The Ruby parser is o.k. I think it has some bugs but I am too
>unfamiliar with all this to be sure right now.
The ruby parser is a recent addition by Daniel Debertin in the contrib
area. I don't know much about it.
>Anyway, I have my semantic.cache files going to the same directory.
>(I want to change that soon but thats a future question.) I'm sure,
>in those files, the place where method foo is defined is kept. How do
>I tell "go to" that tag when it is in another file?
You can move the cache files by customizing
semanticdb-default-save-directory. In CVS, the new default is to put
all those files into ~/.semanticdb.
The minor mode "senator" that comes with semantic binds two keys. One
is C-c , j (local jump) and the other C-c , J (longer range jump). I
don't know how Ruby works, but if one files has to "include" some
other file, it will find the definition. If not, the ruby language
support may need some more support added.
>The other question I am less sure about (and, as I recall, the answer
>is "no" but want to be sure): can I get a list of all the places that
>foo is used? (If foo is a method?)
That would be "grep" or something like that. Semantic does not parse
nor store function bodies.
>Oh... another thing that would have helped today (which is basically
>the same as my first question). I was on a field (my cursor was on a
>field) like eg->eg_foo and my cursor was on the underscore for
>example. With ecb, on the left, things flashed and it could now tell
>me all the fields in the structure that eg_foo was in. pretty cool.
>But I wanted to go see that source code. I tried various clicks and
>pokes and got only that it was not in the same file so my request was
>being ignored. That might have been an ecb'ism. (The reason was I
>wanted to see the comments in the source file in this case.)
I'm not sure about the ECB clicks, so I CC'd Klaus. As I understand
it, ECB will fabricate an internal representation of a class and show
the members. The semantic part will make up references based on
prototypes it does know, but it may not know where the actual
Alternately, the Ruby parser may not store positional info, which
would make ECB unable to jump there.
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net