Re[1]: [cedet-semantic] semanticdb-find-nonterminal-by-function seems not to work correctly
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2003-06-03 01:55:46
|
>>> "Regina & Jens Rock" <jen...@as...> seems to think that: >Hi, > >I recently updated to semantic 1.4.4 and >still could not lookup of function or >type definitions with >semanticdb-find-nonterminal-by-function. > >I could break it down to >semanticdb-current-database-list always >returning nil regardless if any database >is loaded or not. >The reason seems to be that I have set >semanticdb-default-save-directory, but >semanticdb-current-database-list compares >the project's root directory to the FILE >slot of the databases instead of the >REFERENCE-DIRECTORY slot. Since the file >slot refers to the default save directory, >the databases are not recognized correctly. > >When line 563 of semanticdb.el is changed from > >(if (string-match regexp (oref (car adb) file)) > >to > >(if (string-match regexp (oref (car adb) reference-directory)) > >it works well for me. [ ... ] Thanks for investigating and discovering the solution. I did a quick scan for other references to the file slot, and didn't find any, so hopefully this is the only occurrence of this problem. I will check it into the CVS version of semantic after running with it for a little bit. (Strangely, the line you quoted is 365 instead of 563 in semantic 2.0's version of that file.) Thanks! Eric -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |