On Thursday 29 May 2008 19:13, Rodrigo Canellas wrote:
> OK, I installed the 'tar.gz' from
Though it might be a bit more complicated, I would really advice you to get
cedet from CVS. There has happend a lot of fine tuning and bug fixing since
pre4 to make things (more) usable!
> In my ~/.emacs there is, for now:
> ;; * This enables some tools useful for coding, such as summary mode
> ;; imenu support, and the semantic navigator
I think this is not enough for completion to work.
This is my basic setup. May not be perfect, but works very well:
This is to let semantic find the right sources. For mor complex project, you
might want to setup up some simple ede projects (haven't done that myself yet
;; Enabling SEMANTIC minor modes. See semantic/INSTALL for more ideas.
That's basically what you need to get you going with completion.
> I would appreciate - very much - help to speed up configuration, in
> order to perform:
> - code completion
As far a actual completion goes, this is all a bit fuzzy to me as well. With
XEmacs the only convenient and working way I found is using hippie-expand and
; other expands
For GNU Emacs there are other options. As said I'm using XEmacs, which is a
bit limited in it's capabilities, so I can't use many of the cool feature
semantic provides, so take this with a grain of salt...
AFAICS the suggested method for completion on . or -> is:
(define-key c-mode-map "." 'semantic-complete-self-insert)
(define-key c-mode-map ">" 'semantic-complete-self-insert)
or to cite Eric "If you want to press a key to start completion, you can bind
whatever you like to `semantic-complete-analyze-inline'"
Then (AFIAK) you can configure the way completion is presented via
semantic-complete-inline-analyzer-displayor-class, which is also available
via Customize Senator->Options->Semantic... (though somehow I just can't find
it right now ...). Options are: traditional, ghost text, tooltip and menu,
Or you might have a look at this one (haven't tried it myself though):
> - where a symbol is declared
You can use semantic-ia-fast-jump to jump to the declaration of a symbol.
Whether there is a function to just print where it's declared, I don't
> - where a symbol is defined
Eric suggested to me C-c , J or C-c , j to jump to the definition, this
doesn't really work atm. though. For just printing .. see above.
> - where a symbol is used
Just yesterday, I though this I would love to have, as well :) No idea ... I
use igrep ;)
> - open a header file when the cursor is in between its name
I think this should work with CVS, I just didn't bother to find out how ...
You might have a look at the info pages or the list archives.
Hmm, I seems there is a lot I don't know myself, surprise .. though I'm using
everyday :) But maybe it helps a bit ...