I am just starting with semantic bovinator... Basically, I'm trying
to have some more assistance when I write c++ code with emacs 21.
I am fruitlessly trying to have automatic completion. The problem is I
can't quite understand what semantic can and cannot do about
Could you please answer the following questions? It should be quick.
1) When I type the name of a struct or class or namespace, and press
the dot (.) or the arrow (->) or ::, I'd like a pop-up list to show
the possible completions (i.e. member functions, member variables,
constants...). Can semantic do that?
I tried to write the following:
but nothing shows up, neither on the speedbar nor in the message line.
I tried to invoke M-x semantic-analyze-possible-completions, but it
returns an error:
"no context of type function to advance in".
I also tried to type the first letters of a member, and to repeat the
call to semantic-analyze-possible-completions, but I get the same
error (and I can't figure out what it means).
2) In case Semantic can display possible completions: how does it
choose them? I mean, I should only see the public members if I'm
outside of the class; also the private ones if I'm inside; the
protected members if I am inside a derived class, and so on...
And what about static members, which should only be available in a static
Thanks a lot to any kind soul :-)
I have installed semantic, speedbar and eieio (via the rpms supplied
As the above doc required, I have added the following lines to my
(setq semantic-load-turn-useful-things-on t)
Now the speedbar shows the .h and .cc files, and the minibuffer shows
some info about the type of the variable under cursor. But nothing