>>> joakim@... seems to think that:
>"Eric M. Ludlam" <eric@...> writes:
>> Hi Joakim,
>> First, let me apologize for not getting into your unit tests yet.
>> I had camera crews for a TV show called "Man Moment Machine" at my
>> house on Monday filming one of my catapults, and all my spare time
>> these past month or so has been getting ready for that.
>Nice! Will the show be downloadable somewhere?
It will be on the History Channel. I don't know what their
distribution is. They'll have the video of us shooting cabbages with
video cameras in them on the web as "extras", so there will be some
good stuff to see even if you don't get their channel.
>> Anyway, a key piece is to add an omniscient database into the project
>> database list. The Emacs Lisp version (semanticdb-el.el) does this:
>> ;; Create the database, and add it to searchable databases for Emacs Lisp mode.
>> (defvar-mode-local emacs-lisp-mode semanticdb-project-system-databases
>> (semanticdb-project-database-emacs-lisp "Emacs"))
>> "Search Emacs core for symbols.")
>> ielm> (setq D (semanticdb-create-database
>> semanticdb-project-database-ebrowse "/some/place"))
>> ielm> (semanticdb-find-tags-by-name D "printf")
>I've tried the above. It's going so-so.
>I managed to get the database creation call working yesterday, but I'm
>unable to reproduce it today.
>When it did work, it parsed the ebrowse structure, and returned a
>string, the path that I enter.
>The search just returns nil, and doesnt seem to enter the methods in
>the Ebrowse class.
Use "M-x semanticdb-find-test-translate-path" to make sure the ebrowse
database is available for use.
>I find this kind of difficult to debug. For instance, now I get:
>Symbol's value as variable is void: filename
>when trying to create the database in a fresh emacs.
>The annoying thing is that the bactrace doesnt say me anything.
>is it possible to have the backtrace wind up in edebug or something instead?
I don't think edebug is useful when a signal is caught because you
can't advance anyway. Check the help for debug mode. There are a lot
of features, it's just harder to use.
>I also did this, similar to the elisp mode:
>(defvar-mode-local c++-mode semanticdb-find-default-throttle
> '(project omniscience)
> "Search project files, then search this omniscience database.
> It is not necessary to to system or recursive searching because of
> the omniscience database.")
> (defvar-mode-local c++-mode semanticdb-project-system-databases
> (semanticdb-project-database-ebrowse "Ebrowse"))
> "Search Ebrowse for symbols.")
[ ... ]
Good Plan. There are a lot of hooks to link these things in. If you
find something missing, add it to the semanticdb-skel.el file for the
The above should solve the problem for find-translate-path.
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