>>> Ville Vainio <vainio24@...> seems to think that:
>I need autocompletion, and following the guidelines (intellisense page) on
>the cedet webpage doesn't do what I need. What I need to do is:
>1. Create the database from 1e6+1 C++ header files in an SDK directory
>(i.e. parse all the .h files under one directory, recursively)
In semantic 1.4.x (the version currently in XEmacs) the only way to
do this is to pull up every file individually, and wait for Emacs to
parse the file.
In the beta version (recently released) there is a shell script that
will do it for you. (semanticdb.sh)
>2. Use this database for autocompletion in my own projects, i.e. when I
>And execute some semantic-show-possible-completions:ish command, I would
>get the list of methods and their signatures in speedbar or a new buffer.
>I don't really care about actually completing the method, typing is not a
>problem, remembering what the methods are is.
>If I type one letter, autocompletion tries to complete it. But I really
>have no use for this, since I possible don't even know what letter to
>type. If I don't type any letters after the period I get a zillion
>possible completions, most of which are not the methods of the class.
[ ... ]
There is no simple way to do this with semantic 1.4 without hacking
some lisp code.
In the beta version it is possible to create a "system" database
using M-x semanticdb-create-system-database. After creation (which
can be a bit slow) it will auto-load the database every time you restart
Emacs, and it will be included for all searches in files of that type
(such as C or C++ files.)
I do not know the current state of autocompletion stuff in the beta.
It should work, but I haven't evaluated it lately.
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org