help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: code completion


From: Richard G Riley
Subject: Re: code completion
Date: Wed, 12 Mar 2008 12:23:49 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Bastien <bzg@altern.org> writes:

> Alain Muls <alain.muls@gmail.com> writes:
>
>> I checked and tried several possibilities to have code completion in
>> c++ but none is working as I would like. I tried etags, global,
>> xrefactory. Which one can give me the possible (correct) completions
>> of a method in c++, eg.
>
> Maybe you can contact the developers/maintainers directly and ask them
> about the missing feature:
>
>      etags: Roland McGrath <roland@gnu.org>
> Xrefactory: vittek@xref-tech.com
>
> (I don't know global.)
>
>> if I press <tab> (preferably), I would like it to suggest
>>
>> getCartesian()
>> getGeodetic()
>
> Shouldn't be that hard to add this.

Have you tried? I would be interested in your solutions and the toolsets
you have tried for C/C++ code navigation as I'm still humming and
harring myself.

Last night a I spent a few hours downloading and installing and
configuring the latest cedet. After setting up project paths, c-paths
and turning on the semantic idle completion scheduler it works
reasonably well for C. Only things that did not complete were fields
protected by guard flags (to be expected), structs represented by
typedefs and structs defined in the c file as opposed to an h file - I'm
not sure if by design or not - but this is quite a subset.

I prepared a post yesterday that got "drafted" in a system reset but it
pretty much also recommended cscope as a wonderful C tool for emacs code
navigation - the linux kernel also comes with a cscope target in its
Makefile which is handy.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]